From 8ac013ec37fc8adfb42fa65ed6c9cc15453298d1 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Wed, 4 Mar 2026 11:48:34 +0000 Subject: [PATCH 1/2] chore: delete nested SDK skills and regenerate workspace skills --- sdk/constructive-react/src/admin/README.md | 4 +- .../src/admin/hooks/README.md | 513 +- .../src/admin/hooks/index.ts | 2 +- .../src/admin/hooks/invalidation.ts | 218 +- .../src/admin/hooks/mutation-keys.ts | 101 +- .../src/admin/hooks/mutations/index.ts | 26 +- .../useCreateAppAchievementMutation.ts | 4 +- .../useCreateAppAdminGrantMutation.ts | 4 +- .../mutations/useCreateAppGrantMutation.ts | 4 +- .../mutations/useCreateAppLevelMutation.ts | 4 +- .../useCreateAppLevelRequirementMutation.ts | 4 +- .../useCreateAppLimitDefaultMutation.ts | 4 +- .../mutations/useCreateAppLimitMutation.ts | 4 +- .../useCreateAppMembershipDefaultMutation.ts | 4 +- .../useCreateAppMembershipMutation.ts | 4 +- .../useCreateAppOwnerGrantMutation.ts | 4 +- .../useCreateAppPermissionDefaultMutation.ts | 4 +- .../useCreateAppPermissionMutation.ts | 4 +- .../mutations/useCreateAppStepMutation.ts | 4 +- .../useCreateClaimedInviteMutation.ts | 4 +- .../mutations/useCreateInviteMutation.ts | 4 +- .../useCreateMembershipTypeMutation.ts | 4 +- .../useCreateOrgAdminGrantMutation.ts | 4 +- .../useCreateOrgChartEdgeGrantMutation.ts | 91 + .../useCreateOrgChartEdgeMutation.ts | 88 + .../useCreateOrgClaimedInviteMutation.ts | 4 +- .../useCreateOrgGetManagersRecordMutation.ts | 91 + ...eCreateOrgGetSubordinatesRecordMutation.ts | 91 + .../mutations/useCreateOrgGrantMutation.ts | 4 +- .../mutations/useCreateOrgInviteMutation.ts | 4 +- .../useCreateOrgLimitDefaultMutation.ts | 4 +- .../mutations/useCreateOrgLimitMutation.ts | 4 +- .../mutations/useCreateOrgMemberMutation.ts | 4 +- .../useCreateOrgMembershipDefaultMutation.ts | 4 +- .../useCreateOrgMembershipMutation.ts | 4 +- .../useCreateOrgOwnerGrantMutation.ts | 4 +- .../useCreateOrgPermissionDefaultMutation.ts | 4 +- .../useCreateOrgPermissionMutation.ts | 4 +- .../useDeleteAppAchievementMutation.ts | 4 +- .../useDeleteAppAdminGrantMutation.ts | 4 +- .../mutations/useDeleteAppGrantMutation.ts | 4 +- .../mutations/useDeleteAppLevelMutation.ts | 4 +- .../useDeleteAppLevelRequirementMutation.ts | 4 +- .../useDeleteAppLimitDefaultMutation.ts | 4 +- .../mutations/useDeleteAppLimitMutation.ts | 4 +- .../useDeleteAppMembershipDefaultMutation.ts | 4 +- .../useDeleteAppMembershipMutation.ts | 4 +- .../useDeleteAppOwnerGrantMutation.ts | 4 +- .../useDeleteAppPermissionDefaultMutation.ts | 4 +- .../useDeleteAppPermissionMutation.ts | 4 +- .../mutations/useDeleteAppStepMutation.ts | 4 +- .../useDeleteClaimedInviteMutation.ts | 4 +- .../mutations/useDeleteInviteMutation.ts | 4 +- .../useDeleteMembershipTypeMutation.ts | 4 +- .../useDeleteOrgAdminGrantMutation.ts | 4 +- .../useDeleteOrgChartEdgeGrantMutation.ts | 104 + .../useDeleteOrgChartEdgeMutation.ts} | 42 +- .../useDeleteOrgClaimedInviteMutation.ts | 4 +- .../mutations/useDeleteOrgGrantMutation.ts | 4 +- .../mutations/useDeleteOrgInviteMutation.ts | 4 +- .../useDeleteOrgLimitDefaultMutation.ts | 4 +- .../mutations/useDeleteOrgLimitMutation.ts | 4 +- .../mutations/useDeleteOrgMemberMutation.ts | 4 +- .../useDeleteOrgMembershipDefaultMutation.ts | 4 +- .../useDeleteOrgMembershipMutation.ts | 4 +- .../useDeleteOrgOwnerGrantMutation.ts | 4 +- .../useDeleteOrgPermissionDefaultMutation.ts | 4 +- .../useDeleteOrgPermissionMutation.ts | 4 +- .../useUpdateAppAchievementMutation.ts | 4 +- .../useUpdateAppAdminGrantMutation.ts | 4 +- .../mutations/useUpdateAppGrantMutation.ts | 4 +- .../mutations/useUpdateAppLevelMutation.ts | 4 +- .../useUpdateAppLevelRequirementMutation.ts | 4 +- .../useUpdateAppLimitDefaultMutation.ts | 4 +- .../mutations/useUpdateAppLimitMutation.ts | 4 +- .../useUpdateAppMembershipDefaultMutation.ts | 4 +- .../useUpdateAppMembershipMutation.ts | 4 +- .../useUpdateAppOwnerGrantMutation.ts | 4 +- .../useUpdateAppPermissionDefaultMutation.ts | 4 +- .../useUpdateAppPermissionMutation.ts | 4 +- .../mutations/useUpdateAppStepMutation.ts | 4 +- .../useUpdateClaimedInviteMutation.ts | 4 +- .../mutations/useUpdateInviteMutation.ts | 4 +- .../useUpdateMembershipTypeMutation.ts | 4 +- .../useUpdateOrgAdminGrantMutation.ts | 4 +- .../useUpdateOrgChartEdgeGrantMutation.ts | 116 + .../useUpdateOrgChartEdgeMutation.ts | 110 + .../useUpdateOrgClaimedInviteMutation.ts | 4 +- .../mutations/useUpdateOrgGrantMutation.ts | 4 +- .../mutations/useUpdateOrgInviteMutation.ts | 4 +- .../useUpdateOrgLimitDefaultMutation.ts | 4 +- .../mutations/useUpdateOrgLimitMutation.ts | 4 +- .../mutations/useUpdateOrgMemberMutation.ts | 4 +- .../useUpdateOrgMembershipDefaultMutation.ts | 4 +- .../useUpdateOrgMembershipMutation.ts | 4 +- .../useUpdateOrgOwnerGrantMutation.ts | 4 +- .../useUpdateOrgPermissionDefaultMutation.ts | 4 +- .../useUpdateOrgPermissionMutation.ts | 4 +- .../src/admin/hooks/queries/index.ts | 19 +- .../hooks/queries/useAppAchievementQuery.ts | 8 +- .../hooks/queries/useAppAchievementsQuery.ts | 8 +- .../hooks/queries/useAppAdminGrantQuery.ts | 8 +- .../hooks/queries/useAppAdminGrantsQuery.ts | 8 +- .../admin/hooks/queries/useAppGrantQuery.ts | 8 +- .../admin/hooks/queries/useAppGrantsQuery.ts | 8 +- .../admin/hooks/queries/useAppLevelQuery.ts | 8 +- .../queries/useAppLevelRequirementQuery.ts | 8 +- .../queries/useAppLevelRequirementsQuery.ts | 8 +- .../admin/hooks/queries/useAppLevelsQuery.ts | 8 +- .../hooks/queries/useAppLimitDefaultQuery.ts | 8 +- .../hooks/queries/useAppLimitDefaultsQuery.ts | 8 +- .../admin/hooks/queries/useAppLimitQuery.ts | 8 +- .../admin/hooks/queries/useAppLimitsQuery.ts | 8 +- .../queries/useAppMembershipDefaultQuery.ts | 8 +- .../queries/useAppMembershipDefaultsQuery.ts | 8 +- .../hooks/queries/useAppMembershipQuery.ts | 8 +- .../hooks/queries/useAppMembershipsQuery.ts | 8 +- .../hooks/queries/useAppOwnerGrantQuery.ts | 8 +- .../hooks/queries/useAppOwnerGrantsQuery.ts | 8 +- .../queries/useAppPermissionDefaultQuery.ts | 8 +- .../queries/useAppPermissionDefaultsQuery.ts | 8 +- .../hooks/queries/useAppPermissionQuery.ts | 8 +- .../hooks/queries/useAppPermissionsQuery.ts | 8 +- .../admin/hooks/queries/useAppStepQuery.ts | 8 +- .../admin/hooks/queries/useAppStepsQuery.ts | 8 +- .../hooks/queries/useClaimedInviteQuery.ts | 8 +- .../hooks/queries/useClaimedInvitesQuery.ts | 8 +- .../src/admin/hooks/queries/useInviteQuery.ts | 8 +- .../admin/hooks/queries/useInvitesQuery.ts | 8 +- .../hooks/queries/useMembershipTypeQuery.ts | 8 +- .../hooks/queries/useMembershipTypesQuery.ts | 8 +- .../hooks/queries/useOrgAdminGrantQuery.ts | 8 +- .../hooks/queries/useOrgAdminGrantsQuery.ts | 8 +- .../queries/useOrgChartEdgeGrantQuery.ts | 144 + .../queries/useOrgChartEdgeGrantsQuery.ts | 163 + .../hooks/queries/useOrgChartEdgeQuery.ts | 138 + .../hooks/queries/useOrgChartEdgesQuery.ts | 145 + .../hooks/queries/useOrgClaimedInviteQuery.ts | 8 +- .../queries/useOrgClaimedInvitesQuery.ts | 8 +- .../hooks/queries/useOrgGetManagersQuery.ts | 172 + .../queries/useOrgGetSubordinatesQuery.ts | 178 + .../admin/hooks/queries/useOrgGrantQuery.ts | 8 +- .../admin/hooks/queries/useOrgGrantsQuery.ts | 8 +- .../admin/hooks/queries/useOrgInviteQuery.ts | 8 +- .../admin/hooks/queries/useOrgInvitesQuery.ts | 8 +- .../hooks/queries/useOrgIsManagerOfQuery.ts | 105 + .../hooks/queries/useOrgLimitDefaultQuery.ts | 8 +- .../hooks/queries/useOrgLimitDefaultsQuery.ts | 8 +- .../admin/hooks/queries/useOrgLimitQuery.ts | 8 +- .../admin/hooks/queries/useOrgLimitsQuery.ts | 8 +- .../admin/hooks/queries/useOrgMemberQuery.ts | 8 +- .../admin/hooks/queries/useOrgMembersQuery.ts | 8 +- .../queries/useOrgMembershipDefaultQuery.ts | 8 +- .../queries/useOrgMembershipDefaultsQuery.ts | 8 +- .../hooks/queries/useOrgMembershipQuery.ts | 8 +- .../hooks/queries/useOrgMembershipsQuery.ts | 8 +- .../hooks/queries/useOrgOwnerGrantQuery.ts | 8 +- .../hooks/queries/useOrgOwnerGrantsQuery.ts | 8 +- .../queries/useOrgPermissionDefaultQuery.ts | 8 +- .../queries/useOrgPermissionDefaultsQuery.ts | 8 +- .../hooks/queries/useOrgPermissionQuery.ts | 8 +- .../hooks/queries/useOrgPermissionsQuery.ts | 8 +- .../src/admin/hooks/query-keys.ts | 102 +- .../src/admin/orm/README.md | 321 +- sdk/constructive-react/src/admin/orm/index.ts | 20 +- .../src/admin/orm/input-types.ts | 1350 ++-- .../src/admin/orm/models/index.ts | 10 +- .../src/admin/orm/models/orgChartEdge.ts} | 150 +- .../src/admin/orm/models/orgChartEdgeGrant.ts | 236 + .../admin/orm/models/orgGetManagersRecord.ts | 127 + .../orm/models/orgGetSubordinatesRecord.ts | 129 + .../src/admin/orm/query/index.ts | 47 + .../src/admin/orm/skills/appAdminGrant.md | 34 - .../src/admin/orm/skills/appGrant.md | 34 - .../src/admin/orm/skills/appLevel.md | 34 - .../admin/orm/skills/appLevelRequirement.md | 34 - .../src/admin/orm/skills/appLimit.md | 34 - .../orm/skills/appPermissionsGetByMask.md | 19 - .../src/admin/orm/skills/appStep.md | 34 - .../src/admin/orm/skills/invite.md | 34 - .../src/admin/orm/skills/orgClaimedInvite.md | 34 - .../src/admin/orm/skills/orgGrant.md | 34 - .../src/admin/orm/skills/orgInvite.md | 34 - .../src/admin/orm/skills/orgLimit.md | 34 - .../src/admin/orm/skills/orgPermission.md | 34 - .../orm/skills/orgPermissionsGetByMask.md | 19 - .../admin/orm/skills/orgPermissionsGetMask.md | 19 - .../skills/orgPermissionsGetMaskByNames.md | 19 - .../orm/skills/orgPermissionsGetPaddedMask.md | 19 - .../src/admin/orm/skills/stepsRequired.md | 19 - .../src/admin/orm/skills/submitInviteCode.md | 19 - .../src/admin/schema-types.ts | 1260 +++- sdk/constructive-react/src/admin/types.ts | 69 +- .../src/auth/hooks/README.md | 90 +- .../src/auth/hooks/index.ts | 2 +- .../src/auth/hooks/invalidation.ts | 38 +- .../src/auth/hooks/mutation-keys.ts | 18 +- .../src/auth/hooks/mutations/index.ts | 6 +- .../mutations/useCreateAuditLogMutation.ts | 4 +- .../useCreateConnectedAccountMutation.ts | 4 +- .../useCreateCryptoAddressMutation.ts | 4 +- .../hooks/mutations/useCreateEmailMutation.ts | 4 +- .../mutations/useCreatePhoneNumberMutation.ts | 4 +- .../mutations/useDeleteAuditLogMutation.ts | 4 +- .../useDeleteConnectedAccountMutation.ts | 4 +- .../useDeleteCryptoAddressMutation.ts | 4 +- .../hooks/mutations/useDeleteEmailMutation.ts | 4 +- .../mutations/useDeletePhoneNumberMutation.ts | 4 +- .../mutations/useUpdateAuditLogMutation.ts | 4 +- .../useUpdateConnectedAccountMutation.ts | 4 +- .../useUpdateCryptoAddressMutation.ts | 4 +- .../hooks/mutations/useUpdateEmailMutation.ts | 4 +- .../mutations/useUpdatePhoneNumberMutation.ts | 4 +- .../src/auth/hooks/queries/index.ts | 4 +- .../auth/hooks/queries/useAuditLogQuery.ts | 8 +- .../auth/hooks/queries/useAuditLogsQuery.ts | 8 +- .../hooks/queries/useConnectedAccountQuery.ts | 8 +- .../queries/useConnectedAccountsQuery.ts | 8 +- .../hooks/queries/useCryptoAddressQuery.ts | 8 +- .../hooks/queries/useCryptoAddressesQuery.ts | 8 +- .../src/auth/hooks/queries/useEmailQuery.ts | 8 +- .../src/auth/hooks/queries/useEmailsQuery.ts | 8 +- .../auth/hooks/queries/usePhoneNumberQuery.ts | 8 +- .../hooks/queries/usePhoneNumbersQuery.ts | 8 +- .../src/auth/hooks/query-keys.ts | 20 +- sdk/constructive-react/src/auth/orm/README.md | 56 +- sdk/constructive-react/src/auth/orm/index.ts | 4 +- .../src/auth/orm/input-types.ts | 325 +- .../src/auth/orm/models/index.ts | 2 +- .../src/auth/orm/skills/cryptoAddress.md | 34 - .../src/auth/orm/skills/currentIpAddress.md | 19 - .../src/auth/orm/skills/currentUserAgent.md | 19 - .../src/auth/orm/skills/extendTokenExpires.md | 19 - .../src/auth/orm/skills/forgotPassword.md | 19 - .../src/auth/orm/skills/oneTimeToken.md | 19 - .../src/auth/orm/skills/phoneNumber.md | 34 - .../src/auth/orm/skills/resetPassword.md | 19 - .../orm/skills/sendAccountDeletionEmail.md | 19 - .../auth/orm/skills/sendVerificationEmail.md | 19 - .../src/auth/orm/skills/setPassword.md | 19 - .../src/auth/orm/skills/signInOneTimeToken.md | 19 - .../src/auth/orm/skills/signUp.md | 19 - .../src/auth/orm/skills/verifyEmail.md | 19 - .../src/auth/orm/skills/verifyPassword.md | 19 - .../src/auth/orm/skills/verifyTotp.md | 19 - .../src/auth/schema-types.ts | 430 +- sdk/constructive-react/src/auth/types.ts | 18 +- .../orm/skills/getAllObjectsFromRoot.md | 19 - .../src/objects/orm/skills/getObjectAtPath.md | 19 - .../orm/skills/getPathObjectsFromRoot.md | 19 - .../src/objects/orm/skills/initEmptyRepo.md | 19 - .../src/objects/orm/skills/revParse.md | 19 - .../src/objects/orm/skills/setAndCommit.md | 19 - .../objects/orm/skills/setPropsAndCommit.md | 19 - .../src/objects/orm/skills/store.md | 34 - sdk/constructive-react/src/public/README.md | 4 +- .../src/public/hooks/README.md | 950 +-- .../src/public/hooks/index.ts | 2 +- .../src/public/hooks/invalidation.ts | 483 +- .../src/public/hooks/mutation-keys.ts | 206 +- .../src/public/hooks/mutations/index.ts | 59 +- .../mutations/useCreateApiModuleMutation.ts | 4 +- .../hooks/mutations/useCreateApiMutation.ts | 4 +- .../mutations/useCreateApiSchemaMutation.ts | 4 +- .../useCreateAppAchievementMutation.ts | 4 +- .../useCreateAppAdminGrantMutation.ts | 4 +- .../mutations/useCreateAppGrantMutation.ts | 4 +- .../mutations/useCreateAppLevelMutation.ts | 4 +- .../useCreateAppLevelRequirementMutation.ts | 4 +- .../useCreateAppLimitDefaultMutation.ts | 4 +- .../mutations/useCreateAppLimitMutation.ts | 4 +- .../useCreateAppMembershipDefaultMutation.ts | 4 +- .../useCreateAppMembershipMutation.ts | 4 +- .../hooks/mutations/useCreateAppMutation.ts | 4 +- .../useCreateAppOwnerGrantMutation.ts | 4 +- .../useCreateAppPermissionDefaultMutation.ts | 4 +- .../useCreateAppPermissionMutation.ts | 4 +- .../mutations/useCreateAppStepMutation.ts | 4 +- .../mutations/useCreateAuditLogMutation.ts | 4 +- .../useCreateClaimedInviteMutation.ts | 4 +- .../useCreateConnectedAccountMutation.ts | 4 +- .../useCreateCryptoAddressMutation.ts | 4 +- .../useCreateDefaultPrivilegeMutation.ts | 91 + .../mutations/useCreateDomainMutation.ts | 4 +- .../hooks/mutations/useCreateEmailMutation.ts | 4 +- .../mutations/useCreateInviteMutation.ts | 4 +- .../useCreateLimitFunctionMutation.ts | 88 - .../useCreateMembershipTypeMutation.ts | 4 +- .../useCreateOrgAdminGrantMutation.ts | 4 +- .../useCreateOrgChartEdgeGrantMutation.ts | 91 + .../useCreateOrgChartEdgeMutation.ts | 88 + .../useCreateOrgClaimedInviteMutation.ts | 4 +- .../useCreateOrgGetManagersRecordMutation.ts | 91 + ...eCreateOrgGetSubordinatesRecordMutation.ts | 91 + .../mutations/useCreateOrgGrantMutation.ts | 4 +- .../mutations/useCreateOrgInviteMutation.ts | 4 +- .../useCreateOrgLimitDefaultMutation.ts | 4 +- .../mutations/useCreateOrgLimitMutation.ts | 4 +- .../mutations/useCreateOrgMemberMutation.ts | 4 +- .../useCreateOrgMembershipDefaultMutation.ts | 4 +- .../useCreateOrgMembershipMutation.ts | 4 +- .../useCreateOrgOwnerGrantMutation.ts | 4 +- .../useCreateOrgPermissionDefaultMutation.ts | 4 +- .../useCreateOrgPermissionMutation.ts | 4 +- .../mutations/useCreatePhoneNumberMutation.ts | 4 +- .../mutations/useCreateProcedureMutation.ts | 88 - .../useCreateRelationProvisionMutation.ts | 105 + .../useCreateSecureTableProvisionMutation.ts | 91 + .../useCreateSiteMetadatumMutation.ts | 4 +- .../mutations/useCreateSiteModuleMutation.ts | 4 +- .../hooks/mutations/useCreateSiteMutation.ts | 4 +- .../mutations/useCreateSiteThemeMutation.ts | 4 +- .../mutations/useDeleteApiModuleMutation.ts | 4 +- .../hooks/mutations/useDeleteApiMutation.ts | 4 +- .../mutations/useDeleteApiSchemaMutation.ts | 4 +- .../useDeleteAppAchievementMutation.ts | 4 +- .../useDeleteAppAdminGrantMutation.ts | 4 +- .../mutations/useDeleteAppGrantMutation.ts | 4 +- .../mutations/useDeleteAppLevelMutation.ts | 4 +- .../useDeleteAppLevelRequirementMutation.ts | 4 +- .../useDeleteAppLimitDefaultMutation.ts | 4 +- .../mutations/useDeleteAppLimitMutation.ts | 4 +- .../useDeleteAppMembershipDefaultMutation.ts | 4 +- .../useDeleteAppMembershipMutation.ts | 4 +- .../hooks/mutations/useDeleteAppMutation.ts | 4 +- .../useDeleteAppOwnerGrantMutation.ts | 4 +- .../useDeleteAppPermissionDefaultMutation.ts | 4 +- .../useDeleteAppPermissionMutation.ts | 4 +- .../mutations/useDeleteAppStepMutation.ts | 4 +- .../mutations/useDeleteAuditLogMutation.ts | 4 +- .../useDeleteClaimedInviteMutation.ts | 4 +- .../useDeleteConnectedAccountMutation.ts | 4 +- .../useDeleteCryptoAddressMutation.ts | 4 +- ...s => useDeleteDefaultPrivilegeMutation.ts} | 42 +- .../mutations/useDeleteDomainMutation.ts | 4 +- .../hooks/mutations/useDeleteEmailMutation.ts | 4 +- .../mutations/useDeleteInviteMutation.ts | 4 +- .../useDeleteMembershipTypeMutation.ts | 4 +- .../useDeleteOrgAdminGrantMutation.ts | 4 +- .../useDeleteOrgChartEdgeGrantMutation.ts | 104 + .../useDeleteOrgChartEdgeMutation.ts | 98 + .../useDeleteOrgClaimedInviteMutation.ts | 4 +- .../mutations/useDeleteOrgGrantMutation.ts | 4 +- .../mutations/useDeleteOrgInviteMutation.ts | 4 +- .../useDeleteOrgLimitDefaultMutation.ts | 4 +- .../mutations/useDeleteOrgLimitMutation.ts | 4 +- .../mutations/useDeleteOrgMemberMutation.ts | 4 +- .../useDeleteOrgMembershipDefaultMutation.ts | 4 +- .../useDeleteOrgMembershipMutation.ts | 4 +- .../useDeleteOrgOwnerGrantMutation.ts | 4 +- .../useDeleteOrgPermissionDefaultMutation.ts | 4 +- .../useDeleteOrgPermissionMutation.ts | 4 +- .../mutations/useDeletePhoneNumberMutation.ts | 4 +- .../useDeleteRelationProvisionMutation.ts | 118 + .../useDeleteSecureTableProvisionMutation.ts | 104 + .../useDeleteSiteMetadatumMutation.ts | 4 +- .../mutations/useDeleteSiteModuleMutation.ts | 4 +- .../hooks/mutations/useDeleteSiteMutation.ts | 4 +- .../mutations/useDeleteSiteThemeMutation.ts | 4 +- .../mutations/useUpdateApiModuleMutation.ts | 4 +- .../hooks/mutations/useUpdateApiMutation.ts | 4 +- .../mutations/useUpdateApiSchemaMutation.ts | 4 +- .../useUpdateAppAchievementMutation.ts | 4 +- .../useUpdateAppAdminGrantMutation.ts | 4 +- .../mutations/useUpdateAppGrantMutation.ts | 4 +- .../mutations/useUpdateAppLevelMutation.ts | 4 +- .../useUpdateAppLevelRequirementMutation.ts | 4 +- .../useUpdateAppLimitDefaultMutation.ts | 4 +- .../mutations/useUpdateAppLimitMutation.ts | 4 +- .../useUpdateAppMembershipDefaultMutation.ts | 4 +- .../useUpdateAppMembershipMutation.ts | 4 +- .../hooks/mutations/useUpdateAppMutation.ts | 4 +- .../useUpdateAppOwnerGrantMutation.ts | 4 +- .../useUpdateAppPermissionDefaultMutation.ts | 4 +- .../useUpdateAppPermissionMutation.ts | 4 +- .../mutations/useUpdateAppStepMutation.ts | 4 +- .../mutations/useUpdateAuditLogMutation.ts | 4 +- .../useUpdateClaimedInviteMutation.ts | 4 +- .../useUpdateConnectedAccountMutation.ts | 4 +- .../useUpdateCryptoAddressMutation.ts | 4 +- .../useUpdateDefaultPrivilegeMutation.ts | 116 + .../mutations/useUpdateDomainMutation.ts | 4 +- .../hooks/mutations/useUpdateEmailMutation.ts | 4 +- .../mutations/useUpdateInviteMutation.ts | 4 +- .../useUpdateLimitFunctionMutation.ts | 116 - .../useUpdateMembershipTypeMutation.ts | 4 +- .../useUpdateOrgAdminGrantMutation.ts | 4 +- .../useUpdateOrgChartEdgeGrantMutation.ts | 116 + .../useUpdateOrgChartEdgeMutation.ts | 110 + .../useUpdateOrgClaimedInviteMutation.ts | 4 +- .../mutations/useUpdateOrgGrantMutation.ts | 4 +- .../mutations/useUpdateOrgInviteMutation.ts | 4 +- .../useUpdateOrgLimitDefaultMutation.ts | 4 +- .../mutations/useUpdateOrgLimitMutation.ts | 4 +- .../mutations/useUpdateOrgMemberMutation.ts | 4 +- .../useUpdateOrgMembershipDefaultMutation.ts | 4 +- .../useUpdateOrgMembershipMutation.ts | 4 +- .../useUpdateOrgOwnerGrantMutation.ts | 4 +- .../useUpdateOrgPermissionDefaultMutation.ts | 4 +- .../useUpdateOrgPermissionMutation.ts | 4 +- .../mutations/useUpdatePhoneNumberMutation.ts | 4 +- .../mutations/useUpdateProcedureMutation.ts | 110 - .../useUpdateRelationProvisionMutation.ts | 130 + .../useUpdateSecureTableProvisionMutation.ts | 116 + .../useUpdateSiteMetadatumMutation.ts | 4 +- .../mutations/useUpdateSiteModuleMutation.ts | 4 +- .../hooks/mutations/useUpdateSiteMutation.ts | 4 +- .../mutations/useUpdateSiteThemeMutation.ts | 4 +- .../src/public/hooks/queries/index.ts | 41 +- .../public/hooks/queries/useApiModuleQuery.ts | 8 +- .../hooks/queries/useApiModulesQuery.ts | 8 +- .../src/public/hooks/queries/useApiQuery.ts | 8 +- .../public/hooks/queries/useApiSchemaQuery.ts | 8 +- .../hooks/queries/useApiSchemasQuery.ts | 8 +- .../src/public/hooks/queries/useApisQuery.ts | 8 +- .../hooks/queries/useAppAchievementQuery.ts | 8 +- .../hooks/queries/useAppAchievementsQuery.ts | 8 +- .../hooks/queries/useAppAdminGrantQuery.ts | 8 +- .../hooks/queries/useAppAdminGrantsQuery.ts | 8 +- .../public/hooks/queries/useAppGrantQuery.ts | 8 +- .../public/hooks/queries/useAppGrantsQuery.ts | 8 +- .../public/hooks/queries/useAppLevelQuery.ts | 8 +- .../queries/useAppLevelRequirementQuery.ts | 8 +- .../queries/useAppLevelRequirementsQuery.ts | 8 +- .../public/hooks/queries/useAppLevelsQuery.ts | 8 +- .../hooks/queries/useAppLimitDefaultQuery.ts | 8 +- .../hooks/queries/useAppLimitDefaultsQuery.ts | 8 +- .../public/hooks/queries/useAppLimitQuery.ts | 8 +- .../public/hooks/queries/useAppLimitsQuery.ts | 8 +- .../queries/useAppMembershipDefaultQuery.ts | 8 +- .../queries/useAppMembershipDefaultsQuery.ts | 8 +- .../hooks/queries/useAppMembershipQuery.ts | 8 +- .../hooks/queries/useAppMembershipsQuery.ts | 8 +- .../hooks/queries/useAppOwnerGrantQuery.ts | 8 +- .../hooks/queries/useAppOwnerGrantsQuery.ts | 8 +- .../queries/useAppPermissionDefaultQuery.ts | 8 +- .../queries/useAppPermissionDefaultsQuery.ts | 8 +- .../hooks/queries/useAppPermissionQuery.ts | 8 +- .../hooks/queries/useAppPermissionsQuery.ts | 8 +- .../src/public/hooks/queries/useAppQuery.ts | 8 +- .../public/hooks/queries/useAppStepQuery.ts | 8 +- .../public/hooks/queries/useAppStepsQuery.ts | 8 +- .../src/public/hooks/queries/useAppsQuery.ts | 8 +- .../public/hooks/queries/useAuditLogQuery.ts | 8 +- .../public/hooks/queries/useAuditLogsQuery.ts | 8 +- .../hooks/queries/useClaimedInviteQuery.ts | 8 +- .../hooks/queries/useClaimedInvitesQuery.ts | 8 +- .../hooks/queries/useConnectedAccountQuery.ts | 8 +- .../queries/useConnectedAccountsQuery.ts | 8 +- .../hooks/queries/useCryptoAddressQuery.ts | 8 +- .../hooks/queries/useCryptoAddressesQuery.ts | 8 +- .../hooks/queries/useDefaultPrivilegeQuery.ts | 138 + .../queries/useDefaultPrivilegesQuery.ts | 163 + .../public/hooks/queries/useDomainQuery.ts | 8 +- .../public/hooks/queries/useDomainsQuery.ts | 8 +- .../src/public/hooks/queries/useEmailQuery.ts | 8 +- .../public/hooks/queries/useEmailsQuery.ts | 8 +- .../public/hooks/queries/useInviteQuery.ts | 8 +- .../public/hooks/queries/useInvitesQuery.ts | 8 +- .../hooks/queries/useLimitFunctionQuery.ts | 138 - .../hooks/queries/useLimitFunctionsQuery.ts | 151 - .../hooks/queries/useMembershipTypeQuery.ts | 8 +- .../hooks/queries/useMembershipTypesQuery.ts | 8 +- .../hooks/queries/useOrgAdminGrantQuery.ts | 8 +- .../hooks/queries/useOrgAdminGrantsQuery.ts | 8 +- .../queries/useOrgChartEdgeGrantQuery.ts | 144 + .../queries/useOrgChartEdgeGrantsQuery.ts | 163 + .../hooks/queries/useOrgChartEdgeQuery.ts | 138 + .../hooks/queries/useOrgChartEdgesQuery.ts | 145 + .../hooks/queries/useOrgClaimedInviteQuery.ts | 8 +- .../queries/useOrgClaimedInvitesQuery.ts | 8 +- .../hooks/queries/useOrgGetManagersQuery.ts | 172 + .../queries/useOrgGetSubordinatesQuery.ts | 178 + .../public/hooks/queries/useOrgGrantQuery.ts | 8 +- .../public/hooks/queries/useOrgGrantsQuery.ts | 8 +- .../public/hooks/queries/useOrgInviteQuery.ts | 8 +- .../hooks/queries/useOrgInvitesQuery.ts | 8 +- .../hooks/queries/useOrgIsManagerOfQuery.ts | 105 + .../hooks/queries/useOrgLimitDefaultQuery.ts | 8 +- .../hooks/queries/useOrgLimitDefaultsQuery.ts | 8 +- .../public/hooks/queries/useOrgLimitQuery.ts | 8 +- .../public/hooks/queries/useOrgLimitsQuery.ts | 8 +- .../public/hooks/queries/useOrgMemberQuery.ts | 8 +- .../hooks/queries/useOrgMembersQuery.ts | 8 +- .../queries/useOrgMembershipDefaultQuery.ts | 8 +- .../queries/useOrgMembershipDefaultsQuery.ts | 8 +- .../hooks/queries/useOrgMembershipQuery.ts | 8 +- .../hooks/queries/useOrgMembershipsQuery.ts | 8 +- .../hooks/queries/useOrgOwnerGrantQuery.ts | 8 +- .../hooks/queries/useOrgOwnerGrantsQuery.ts | 8 +- .../queries/useOrgPermissionDefaultQuery.ts | 8 +- .../queries/useOrgPermissionDefaultsQuery.ts | 8 +- .../hooks/queries/useOrgPermissionQuery.ts | 8 +- .../hooks/queries/useOrgPermissionsQuery.ts | 8 +- .../hooks/queries/usePhoneNumberQuery.ts | 8 +- .../hooks/queries/usePhoneNumbersQuery.ts | 8 +- .../public/hooks/queries/useProcedureQuery.ts | 138 - .../hooks/queries/useProceduresQuery.ts | 145 - .../queries/useRelationProvisionQuery.ts | 172 + .../queries/useRelationProvisionsQuery.ts | 191 + .../queries/useSecureTableProvisionQuery.ts | 144 + .../queries/useSecureTableProvisionsQuery.ts | 178 + .../hooks/queries/useSiteMetadataQuery.ts | 8 +- .../hooks/queries/useSiteMetadatumQuery.ts | 8 +- .../hooks/queries/useSiteModuleQuery.ts | 8 +- .../hooks/queries/useSiteModulesQuery.ts | 8 +- .../src/public/hooks/queries/useSiteQuery.ts | 8 +- .../public/hooks/queries/useSiteThemeQuery.ts | 8 +- .../hooks/queries/useSiteThemesQuery.ts | 8 +- .../src/public/hooks/queries/useSitesQuery.ts | 8 +- .../src/public/hooks/query-keys.ts | 206 +- .../src/public/hooks/skills/limitFunction.md | 34 - .../src/public/hooks/skills/policy.md | 34 - .../src/public/hooks/skills/procedure.md | 34 - .../src/public/hooks/skills/tableModule.md | 34 - .../src/public/orm/README.md | 794 ++- .../src/public/orm/index.ts | 42 +- .../src/public/orm/input-types.ts | 3808 +++++++---- .../src/public/orm/models/defaultPrivilege.ts | 236 + .../src/public/orm/models/index.ts | 21 +- .../models/{procedure.ts => orgChartEdge.ts} | 150 +- .../public/orm/models/orgChartEdgeGrant.ts | 236 + .../public/orm/models/orgGetManagersRecord.ts | 127 + .../orm/models/orgGetSubordinatesRecord.ts | 129 + .../public/orm/models/relationProvision.ts | 236 + .../public/orm/models/secureTableProvision.ts | 238 + .../src/public/orm/query/index.ts | 47 + .../src/public/orm/skills/apiModule.md | 34 - .../src/public/orm/skills/apiSchema.md | 34 - .../src/public/orm/skills/app.md | 34 - .../src/public/orm/skills/appAchievement.md | 34 - .../public/orm/skills/appMembershipDefault.md | 34 - .../src/public/orm/skills/appOwnerGrant.md | 34 - .../src/public/orm/skills/appPermission.md | 34 - .../public/orm/skills/appPermissionDefault.md | 34 - .../src/public/orm/skills/applyRls.md | 19 - .../orm/skills/databaseProvisionModule.md | 34 - .../src/public/orm/skills/domain.md | 34 - .../src/public/orm/skills/email.md | 34 - .../src/public/orm/skills/emailsModule.md | 34 - .../src/public/orm/skills/field.md | 34 - .../src/public/orm/skills/fieldModule.md | 34 - .../public/orm/skills/foreignKeyConstraint.md | 34 - .../src/public/orm/skills/forgotPassword.md | 19 - .../src/public/orm/skills/fullTextSearch.md | 34 - .../src/public/orm/skills/index.md | 34 - .../src/public/orm/skills/invitesModule.md | 34 - .../src/public/orm/skills/limitFunction.md | 34 - .../src/public/orm/skills/limitsModule.md | 34 - .../src/public/orm/skills/membershipType.md | 34 - .../orm/skills/membershipTypesModule.md | 34 - .../public/orm/skills/membershipsModule.md | 34 - .../src/public/orm/skills/nodeTypeRegistry.md | 34 - .../src/public/orm/skills/orgAdminGrant.md | 34 - .../src/public/orm/skills/orgClaimedInvite.md | 34 - .../src/public/orm/skills/orgGrant.md | 34 - .../src/public/orm/skills/orgLimit.md | 34 - .../src/public/orm/skills/orgLimitDefault.md | 34 - .../src/public/orm/skills/orgMembership.md | 34 - .../public/orm/skills/orgMembershipDefault.md | 34 - .../src/public/orm/skills/orgOwnerGrant.md | 34 - .../public/orm/skills/orgPermissionDefault.md | 34 - .../skills/orgPermissionsGetMaskByNames.md | 19 - .../orm/skills/orgPermissionsGetPaddedMask.md | 19 - .../public/orm/skills/permissionsModule.md | 34 - .../public/orm/skills/phoneNumbersModule.md | 34 - .../src/public/orm/skills/policy.md | 34 - .../public/orm/skills/primaryKeyConstraint.md | 34 - .../src/public/orm/skills/procedure.md | 34 - .../src/public/orm/skills/profilesModule.md | 34 - .../src/public/orm/skills/ref.md | 34 - .../src/public/orm/skills/rlsModule.md | 34 - .../src/public/orm/skills/roleType.md | 34 - .../src/public/orm/skills/schema.md | 34 - .../src/public/orm/skills/secretsModule.md | 34 - .../src/public/orm/skills/signUp.md | 19 - .../src/public/orm/skills/siteMetadatum.md | 34 - .../src/public/orm/skills/siteModule.md | 34 - .../src/public/orm/skills/sqlMigration.md | 34 - .../src/public/orm/skills/stepsAchieved.md | 19 - .../src/public/orm/skills/stepsRequired.md | 19 - .../src/public/orm/skills/tableModule.md | 34 - .../src/public/orm/skills/user.md | 34 - .../src/public/orm/skills/userAuthModule.md | 34 - .../src/public/orm/skills/usersModule.md | 34 - .../src/public/orm/skills/viewRule.md | 34 - .../src/public/schema-types.ts | 5981 ++++++++++------- sdk/constructive-react/src/public/types.ts | 221 +- sdk/constructive-sdk/src/admin/README.md | 4 +- sdk/constructive-sdk/src/admin/orm/README.md | 321 +- sdk/constructive-sdk/src/admin/orm/index.ts | 20 +- .../src/admin/orm/input-types.ts | 1350 ++-- .../src/admin/orm/models/index.ts | 10 +- .../src/admin/orm/models/orgChartEdge.ts} | 150 +- .../src/admin/orm/models/orgChartEdgeGrant.ts | 236 + .../admin/orm/models/orgGetManagersRecord.ts | 127 + .../orm/models/orgGetSubordinatesRecord.ts | 129 + .../src/admin/orm/query/index.ts | 47 + .../src/admin/orm/skills/appLimitDefault.md | 34 - .../src/admin/orm/skills/appMembership.md | 34 - .../admin/orm/skills/appPermissionsGetMask.md | 19 - .../skills/appPermissionsGetMaskByNames.md | 19 - .../orm/skills/appPermissionsGetPaddedMask.md | 19 - .../src/admin/orm/skills/claimedInvite.md | 34 - .../src/admin/orm/skills/orgMember.md | 34 - .../admin/orm/skills/submitOrgInviteCode.md | 19 - sdk/constructive-sdk/src/auth/orm/README.md | 56 +- sdk/constructive-sdk/src/auth/orm/index.ts | 4 +- .../src/auth/orm/input-types.ts | 325 +- .../src/auth/orm/models/index.ts | 2 +- .../src/auth/orm/skills/auditLog.md | 34 - .../src/auth/orm/skills/checkPassword.md | 19 - .../auth/orm/skills/confirmDeleteAccount.md | 19 - .../src/auth/orm/skills/connectedAccount.md | 34 - .../src/auth/orm/skills/currentUser.md | 19 - .../src/auth/orm/skills/currentUserId.md | 19 - .../src/auth/orm/skills/phoneNumber.md | 34 - .../src/auth/orm/skills/signIn.md | 19 - .../src/auth/orm/skills/signOut.md | 19 - .../src/objects/orm/skills/commit.md | 34 - .../src/objects/orm/skills/freezeObjects.md | 19 - .../src/objects/orm/skills/getAllRecord.md | 34 - .../objects/orm/skills/insertNodeAtPath.md | 19 - .../src/objects/orm/skills/object.md | 34 - .../objects/orm/skills/removeNodeAtPath.md | 19 - .../src/objects/orm/skills/setDataAtPath.md | 19 - .../objects/orm/skills/updateNodeAtPath.md | 19 - sdk/constructive-sdk/src/public/README.md | 4 +- sdk/constructive-sdk/src/public/orm/README.md | 794 ++- sdk/constructive-sdk/src/public/orm/index.ts | 42 +- .../src/public/orm/input-types.ts | 3808 +++++++---- .../src/public/orm/models/defaultPrivilege.ts | 236 + .../src/public/orm/models/index.ts | 21 +- .../{limitFunction.ts => orgChartEdge.ts} | 150 +- .../public/orm/models/orgChartEdgeGrant.ts | 236 + .../public/orm/models/orgGetManagersRecord.ts | 127 + .../orm/models/orgGetSubordinatesRecord.ts | 129 + .../public/orm/models/relationProvision.ts | 236 + .../public/orm/models/secureTableProvision.ts | 238 + .../src/public/orm/query/index.ts | 47 + .../src/public/orm/skills/api.md | 34 - .../src/public/orm/skills/appAchievement.md | 34 - .../src/public/orm/skills/appAdminGrant.md | 34 - .../src/public/orm/skills/appGrant.md | 34 - .../src/public/orm/skills/appLevel.md | 34 - .../public/orm/skills/appLevelRequirement.md | 34 - .../src/public/orm/skills/appLimit.md | 34 - .../src/public/orm/skills/appLimitDefault.md | 34 - .../src/public/orm/skills/appMembership.md | 34 - .../public/orm/skills/appMembershipDefault.md | 34 - .../src/public/orm/skills/appOwnerGrant.md | 34 - .../src/public/orm/skills/appPermission.md | 34 - .../public/orm/skills/appPermissionDefault.md | 34 - .../orm/skills/appPermissionsGetByMask.md | 19 - .../orm/skills/appPermissionsGetMask.md | 19 - .../skills/appPermissionsGetMaskByNames.md | 19 - .../orm/skills/appPermissionsGetPaddedMask.md | 19 - .../src/public/orm/skills/appStep.md | 34 - .../src/public/orm/skills/astMigration.md | 34 - .../src/public/orm/skills/auditLog.md | 34 - .../src/public/orm/skills/bootstrapUser.md | 19 - .../src/public/orm/skills/checkConstraint.md | 34 - .../src/public/orm/skills/checkPassword.md | 19 - .../src/public/orm/skills/claimedInvite.md | 34 - .../src/public/orm/skills/commit.md | 34 - .../public/orm/skills/confirmDeleteAccount.md | 19 - .../src/public/orm/skills/connectedAccount.md | 34 - .../orm/skills/connectedAccountsModule.md | 34 - .../public/orm/skills/createUserDatabase.md | 35 - .../src/public/orm/skills/cryptoAddress.md | 34 - .../orm/skills/cryptoAddressesModule.md | 34 - .../src/public/orm/skills/cryptoAuthModule.md | 34 - .../src/public/orm/skills/currentIpAddress.md | 19 - .../src/public/orm/skills/currentUser.md | 19 - .../src/public/orm/skills/currentUserAgent.md | 19 - .../src/public/orm/skills/currentUserId.md | 19 - .../src/public/orm/skills/database.md | 34 - .../src/public/orm/skills/defaultIdsModule.md | 34 - .../orm/skills/denormalizedTableField.md | 34 - .../src/public/orm/skills/email.md | 34 - .../orm/skills/encryptedSecretsModule.md | 34 - .../public/orm/skills/extendTokenExpires.md | 19 - .../src/public/orm/skills/freezeObjects.md | 19 - .../orm/skills/getAllObjectsFromRoot.md | 19 - .../src/public/orm/skills/getAllRecord.md | 34 - .../src/public/orm/skills/getObjectAtPath.md | 19 - .../orm/skills/getPathObjectsFromRoot.md | 19 - .../src/public/orm/skills/hierarchyModule.md | 34 - .../src/public/orm/skills/initEmptyRepo.md | 19 - .../src/public/orm/skills/insertNodeAtPath.md | 19 - .../src/public/orm/skills/invite.md | 34 - .../src/public/orm/skills/levelsModule.md | 34 - .../src/public/orm/skills/limitFunction.md | 34 - .../src/public/orm/skills/membershipType.md | 34 - .../src/public/orm/skills/object.md | 34 - .../src/public/orm/skills/oneTimeToken.md | 19 - .../src/public/orm/skills/orgAdminGrant.md | 34 - .../src/public/orm/skills/orgInvite.md | 34 - .../src/public/orm/skills/orgLimitDefault.md | 34 - .../src/public/orm/skills/orgMember.md | 34 - .../src/public/orm/skills/orgMembership.md | 34 - .../public/orm/skills/orgMembershipDefault.md | 34 - .../src/public/orm/skills/orgOwnerGrant.md | 34 - .../src/public/orm/skills/orgPermission.md | 34 - .../public/orm/skills/orgPermissionDefault.md | 34 - .../orm/skills/orgPermissionsGetByMask.md | 19 - .../orm/skills/orgPermissionsGetMask.md | 19 - .../src/public/orm/skills/procedure.md | 34 - .../orm/skills/provisionDatabaseWithUser.md | 19 - .../src/public/orm/skills/ref.md | 34 - .../src/public/orm/skills/removeNodeAtPath.md | 19 - .../src/public/orm/skills/resetPassword.md | 19 - .../src/public/orm/skills/revParse.md | 19 - .../src/public/orm/skills/roleType.md | 34 - .../src/public/orm/skills/schemaGrant.md | 34 - .../orm/skills/sendAccountDeletionEmail.md | 19 - .../orm/skills/sendVerificationEmail.md | 19 - .../src/public/orm/skills/sessionsModule.md | 34 - .../src/public/orm/skills/setAndCommit.md | 19 - .../src/public/orm/skills/setDataAtPath.md | 19 - .../src/public/orm/skills/setFieldOrder.md | 19 - .../src/public/orm/skills/setPassword.md | 19 - .../public/orm/skills/setPropsAndCommit.md | 19 - .../src/public/orm/skills/signIn.md | 19 - .../public/orm/skills/signInOneTimeToken.md | 19 - .../src/public/orm/skills/signOut.md | 19 - .../src/public/orm/skills/site.md | 34 - .../src/public/orm/skills/siteTheme.md | 34 - .../src/public/orm/skills/stepsAchieved.md | 19 - .../src/public/orm/skills/store.md | 34 - .../src/public/orm/skills/submitInviteCode.md | 19 - .../public/orm/skills/submitOrgInviteCode.md | 19 - .../src/public/orm/skills/table.md | 34 - .../src/public/orm/skills/tableGrant.md | 34 - .../public/orm/skills/tableTemplateModule.md | 34 - .../src/public/orm/skills/trigger.md | 34 - .../src/public/orm/skills/triggerFunction.md | 34 - .../src/public/orm/skills/uniqueConstraint.md | 34 - .../src/public/orm/skills/updateNodeAtPath.md | 19 - .../src/public/orm/skills/user.md | 34 - .../src/public/orm/skills/uuidModule.md | 34 - .../src/public/orm/skills/verifyEmail.md | 19 - .../src/public/orm/skills/verifyPassword.md | 19 - .../src/public/orm/skills/verifyTotp.md | 19 - .../src/public/orm/skills/view.md | 34 - .../src/public/orm/skills/viewGrant.md | 34 - .../src/public/orm/skills/viewTable.md | 34 - .../hooks-admin-app-achievement/SKILL.md | 9 +- .../hooks-admin-app-admin-grant/SKILL.md | 9 +- .../hooks-admin-app-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-admin-app-level/SKILL.md | 9 +- .../hooks-admin-app-limit-default/SKILL.md | 9 +- .../hooks-admin-app-limit/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-admin-app-membership/SKILL.md | 17 +- .../hooks-admin-app-owner-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-admin-app-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-admin-app-step/SKILL.md | 9 +- .../hooks-admin-claimed-invite/SKILL.md | 9 +- .../hooks-admin-invite/SKILL.md | 9 +- .../hooks-admin-membership-type/SKILL.md | 9 +- .../hooks-admin-org-admin-grant/SKILL.md | 9 +- .../hooks-admin-org-chart-edge-grant/SKILL.md | 39 + skills/hooks-admin-org-chart-edge/SKILL.md | 39 + .../hooks-admin-org-claimed-invite/SKILL.md | 9 +- .../SKILL.md | 36 + .../SKILL.md | 36 + .../hooks-admin-org-grant/SKILL.md | 9 +- .../hooks-admin-org-invite/SKILL.md | 9 +- skills/hooks-admin-org-is-manager-of/SKILL.md | 24 + .../hooks-admin-org-limit-default/SKILL.md | 9 +- .../hooks-admin-org-limit/SKILL.md | 9 +- .../hooks-admin-org-member/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-admin-org-membership/SKILL.md | 17 +- .../hooks-admin-org-owner-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-admin-org-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-admin-steps-achieved/SKILL.md | 7 +- .../hooks-admin-steps-required/SKILL.md | 7 +- .../hooks-admin-submit-invite-code/SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-auth-audit-log/SKILL.md | 9 +- .../hooks-auth-check-password/SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-auth-connected-account/SKILL.md | 9 +- .../hooks-auth-crypto-address/SKILL.md | 9 +- .../hooks-auth-current-ip-address/SKILL.md | 7 +- .../hooks-auth-current-user-agent/SKILL.md | 7 +- .../hooks-auth-current-user-id/SKILL.md | 7 +- .../hooks-auth-current-user/SKILL.md | 7 +- .../hooks-auth-email/SKILL.md | 9 +- .../hooks-auth-extend-token-expires/SKILL.md | 7 +- .../hooks-auth-forgot-password/SKILL.md | 7 +- .../hooks-auth-one-time-token/SKILL.md | 7 +- .../hooks-auth-phone-number/SKILL.md | 9 +- .../hooks-auth-reset-password/SKILL.md | 7 +- .../hooks-auth-role-type/SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-auth-set-password/SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-auth-sign-in/SKILL.md | 7 +- .../hooks-auth-sign-out/SKILL.md | 7 +- .../hooks-auth-sign-up/SKILL.md | 7 +- .../hooks-auth-user/SKILL.md | 7 +- .../hooks-auth-verify-email/SKILL.md | 7 +- .../hooks-auth-verify-password/SKILL.md | 7 +- .../hooks-auth-verify-totp/SKILL.md | 7 +- skills/hooks-objects-commit/SKILL.md | 39 + skills/hooks-objects-freeze-objects/SKILL.md | 25 + .../SKILL.md | 24 + skills/hooks-objects-get-all-record/SKILL.md | 36 + .../hooks-objects-get-object-at-path/SKILL.md | 24 + .../SKILL.md | 24 + skills/hooks-objects-init-empty-repo/SKILL.md | 25 + .../SKILL.md | 25 + skills/hooks-objects-object/SKILL.md | 39 + skills/hooks-objects-ref/SKILL.md | 39 + .../SKILL.md | 25 + skills/hooks-objects-rev-parse/SKILL.md | 24 + skills/hooks-objects-set-and-commit/SKILL.md | 25 + .../hooks-objects-set-data-at-path/SKILL.md | 25 + .../SKILL.md | 25 + skills/hooks-objects-store/SKILL.md | 39 + .../SKILL.md | 25 + .../hooks-public-api-module/SKILL.md | 9 +- .../hooks-public-api-schema/SKILL.md | 9 +- .../hooks-public-api/SKILL.md | 9 +- .../hooks-public-app-achievement/SKILL.md | 9 +- .../hooks-public-app-admin-grant/SKILL.md | 9 +- .../hooks-public-app-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-public-app-level/SKILL.md | 9 +- .../hooks-public-app-limit-default/SKILL.md | 9 +- .../hooks-public-app-limit/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-public-app-membership/SKILL.md | 17 +- .../hooks-public-app-owner-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-public-app-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-public-app-step/SKILL.md | 9 +- .../hooks-public-app/SKILL.md | 9 +- .../hooks-public-apply-rls/SKILL.md | 7 +- .../hooks-public-ast-migration/SKILL.md | 7 +- skills/hooks-public-audit-log/SKILL.md | 39 + .../hooks-public-bootstrap-user/SKILL.md | 7 +- .../hooks-public-check-constraint/SKILL.md | 7 +- skills/hooks-public-check-password/SKILL.md | 25 + .../hooks-public-claimed-invite/SKILL.md | 9 +- .../hooks-public-commit/SKILL.md | 7 +- .../SKILL.md | 25 + .../hooks-public-connected-account/SKILL.md | 39 + .../SKILL.md | 7 +- .../SKILL.md | 23 +- skills/hooks-public-crypto-address/SKILL.md | 39 + .../SKILL.md | 7 +- .../hooks-public-crypto-auth-module/SKILL.md | 7 +- .../hooks-public-current-ip-address/SKILL.md | 24 + .../hooks-public-current-user-agent/SKILL.md | 24 + skills/hooks-public-current-user-id/SKILL.md | 24 + skills/hooks-public-current-user/SKILL.md | 24 + .../SKILL.md | 7 +- .../hooks-public-database/SKILL.md | 7 +- .../hooks-public-default-ids-module/SKILL.md | 7 +- .../hooks-public-default-privilege/SKILL.md | 39 + .../SKILL.md | 7 +- .../hooks-public-domain/SKILL.md | 9 +- skills/hooks-public-email/SKILL.md | 39 + .../hooks-public-emails-module/SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 25 + .../hooks-public-field-module/SKILL.md | 7 +- .../hooks-public-field/SKILL.md | 7 +- .../SKILL.md | 7 +- skills/hooks-public-forgot-password/SKILL.md | 25 + .../hooks-public-freeze-objects/SKILL.md | 7 +- .../hooks-public-full-text-search/SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-public-get-all-record/SKILL.md | 7 +- .../hooks-public-get-object-at-path/SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-public-hierarchy-module/SKILL.md | 7 +- .../hooks-public-index/SKILL.md | 7 +- .../hooks-public-init-empty-repo/SKILL.md | 7 +- .../hooks-public-insert-node-at-path/SKILL.md | 7 +- .../hooks-public-invite/SKILL.md | 9 +- .../hooks-public-invites-module/SKILL.md | 7 +- .../hooks-public-levels-module/SKILL.md | 7 +- .../hooks-public-limits-module/SKILL.md | 7 +- .../hooks-public-membership-type/SKILL.md | 9 +- .../SKILL.md | 7 +- .../hooks-public-memberships-module/SKILL.md | 7 +- .../hooks-public-node-type-registry/SKILL.md | 7 +- .../hooks-public-object/SKILL.md | 7 +- skills/hooks-public-one-time-token/SKILL.md | 25 + .../hooks-public-org-admin-grant/SKILL.md | 9 +- .../SKILL.md | 39 + skills/hooks-public-org-chart-edge/SKILL.md | 39 + .../hooks-public-org-claimed-invite/SKILL.md | 9 +- .../SKILL.md | 36 + .../SKILL.md | 36 + .../hooks-public-org-grant/SKILL.md | 9 +- .../hooks-public-org-invite/SKILL.md | 9 +- .../hooks-public-org-is-manager-of/SKILL.md | 24 + .../hooks-public-org-limit-default/SKILL.md | 9 +- .../hooks-public-org-limit/SKILL.md | 9 +- .../hooks-public-org-member/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-public-org-membership/SKILL.md | 17 +- .../hooks-public-org-owner-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../hooks-public-org-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-public-permissions-module/SKILL.md | 7 +- skills/hooks-public-phone-number/SKILL.md | 39 + .../SKILL.md | 7 +- skills/hooks-public-policy/SKILL.md | 39 + .../SKILL.md | 7 +- .../hooks-public-profiles-module/SKILL.md | 15 +- .../SKILL.md | 7 +- .../hooks-public-ref/SKILL.md | 7 +- .../hooks-public-relation-provision/SKILL.md | 53 + .../hooks-public-remove-node-at-path/SKILL.md | 7 +- skills/hooks-public-reset-password/SKILL.md | 25 + .../hooks-public-rev-parse/SKILL.md | 7 +- .../hooks-public-rls-module/SKILL.md | 7 +- skills/hooks-public-role-type/SKILL.md | 39 + .../hooks-public-schema-grant/SKILL.md | 7 +- .../hooks-public-schema/SKILL.md | 7 +- .../hooks-public-secrets-module/SKILL.md | 7 +- .../SKILL.md | 39 + .../SKILL.md | 25 + .../SKILL.md | 25 + .../hooks-public-sessions-module/SKILL.md | 7 +- .../hooks-public-set-and-commit/SKILL.md | 7 +- .../hooks-public-set-data-at-path/SKILL.md | 7 +- .../hooks-public-set-field-order/SKILL.md | 7 +- skills/hooks-public-set-password/SKILL.md | 25 + .../SKILL.md | 7 +- .../SKILL.md | 25 + skills/hooks-public-sign-in/SKILL.md | 25 + skills/hooks-public-sign-out/SKILL.md | 25 + skills/hooks-public-sign-up/SKILL.md | 25 + .../hooks-public-site-metadatum/SKILL.md | 9 +- .../hooks-public-site-module/SKILL.md | 9 +- .../hooks-public-site-theme/SKILL.md | 9 +- .../hooks-public-site/SKILL.md | 9 +- .../hooks-public-sql-migration/SKILL.md | 7 +- .../hooks-public-steps-achieved/SKILL.md | 7 +- .../hooks-public-steps-required/SKILL.md | 7 +- .../hooks-public-store/SKILL.md | 7 +- .../hooks-public-submit-invite-code/SKILL.md | 7 +- .../SKILL.md | 7 +- .../hooks-public-table-grant/SKILL.md | 15 +- skills/hooks-public-table-module/SKILL.md | 39 + .../SKILL.md | 7 +- .../hooks-public-table/SKILL.md | 7 +- .../hooks-public-trigger-function/SKILL.md | 7 +- .../hooks-public-trigger/SKILL.md | 7 +- .../hooks-public-unique-constraint/SKILL.md | 7 +- .../hooks-public-update-node-at-path/SKILL.md | 7 +- .../hooks-public-user-auth-module/SKILL.md | 7 +- skills/hooks-public-user/SKILL.md | 39 + .../hooks-public-users-module/SKILL.md | 7 +- .../hooks-public-uuid-module/SKILL.md | 7 +- skills/hooks-public-verify-email/SKILL.md | 25 + skills/hooks-public-verify-password/SKILL.md | 25 + skills/hooks-public-verify-totp/SKILL.md | 25 + .../hooks-public-view-grant/SKILL.md | 15 +- .../hooks-public-view-rule/SKILL.md | 7 +- .../hooks-public-view-table/SKILL.md | 7 +- .../hooks-public-view/SKILL.md | 7 +- .../orm-admin-app-achievement/SKILL.md | 9 +- .../orm-admin-app-admin-grant/SKILL.md | 9 +- .../orm-admin-app-grant/SKILL.md | 9 +- .../orm-admin-app-level-requirement/SKILL.md | 9 +- .../orm-admin-app-level/SKILL.md | 9 +- .../orm-admin-app-limit-default/SKILL.md | 9 +- .../orm-admin-app-limit/SKILL.md | 9 +- .../orm-admin-app-membership-default/SKILL.md | 9 +- .../orm-admin-app-membership/SKILL.md | 13 +- .../orm-admin-app-owner-grant/SKILL.md | 9 +- .../orm-admin-app-permission-default/SKILL.md | 9 +- .../orm-admin-app-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-admin-app-step/SKILL.md | 9 +- .../orm-admin-claimed-invite/SKILL.md | 9 +- .../orm-admin-invite/SKILL.md | 9 +- .../orm-admin-membership-type/SKILL.md | 9 +- .../orm-admin-org-admin-grant/SKILL.md | 9 +- .../orm-admin-org-chart-edge-grant/SKILL.md | 39 + skills/orm-admin-org-chart-edge/SKILL.md | 39 + .../orm-admin-org-claimed-invite/SKILL.md | 9 +- .../SKILL.md | 39 + .../SKILL.md | 39 + .../orm-admin-org-grant/SKILL.md | 9 +- .../orm-admin-org-invite/SKILL.md | 9 +- skills/orm-admin-org-is-manager-of/SKILL.md | 24 + .../orm-admin-org-limit-default/SKILL.md | 9 +- .../orm-admin-org-limit/SKILL.md | 9 +- .../orm-admin-org-member/SKILL.md | 9 +- .../orm-admin-org-membership-default/SKILL.md | 9 +- .../orm-admin-org-membership/SKILL.md | 13 +- .../orm-admin-org-owner-grant/SKILL.md | 9 +- .../orm-admin-org-permission-default/SKILL.md | 9 +- .../orm-admin-org-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-admin-steps-achieved/SKILL.md | 7 +- .../orm-admin-steps-required/SKILL.md | 7 +- .../orm-admin-submit-invite-code/SKILL.md | 7 +- .../orm-admin-submit-org-invite-code/SKILL.md | 7 +- .../orm-auth-audit-log/SKILL.md | 9 +- .../orm-auth-check-password/SKILL.md | 7 +- .../orm-auth-confirm-delete-account/SKILL.md | 7 +- .../orm-auth-connected-account/SKILL.md | 9 +- .../orm-auth-crypto-address/SKILL.md | 9 +- .../orm-auth-current-ip-address/SKILL.md | 7 +- .../orm-auth-current-user-agent/SKILL.md | 7 +- .../orm-auth-current-user-id/SKILL.md | 7 +- .../orm-auth-current-user/SKILL.md | 7 +- .../orm-auth-email/SKILL.md | 9 +- .../orm-auth-extend-token-expires/SKILL.md | 7 +- .../orm-auth-forgot-password/SKILL.md | 7 +- .../orm-auth-one-time-token/SKILL.md | 7 +- .../orm-auth-phone-number/SKILL.md | 9 +- .../orm-auth-reset-password/SKILL.md | 7 +- .../orm-auth-role-type/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-auth-send-verification-email/SKILL.md | 7 +- .../orm-auth-set-password/SKILL.md | 7 +- .../orm-auth-sign-in-one-time-token/SKILL.md | 7 +- .../orm-auth-sign-in/SKILL.md | 7 +- .../orm-auth-sign-out/SKILL.md | 7 +- .../orm-auth-sign-up/SKILL.md | 7 +- .../user.md => skills/orm-auth-user/SKILL.md | 7 +- .../orm-auth-verify-email/SKILL.md | 7 +- .../orm-auth-verify-password/SKILL.md | 7 +- .../orm-auth-verify-totp/SKILL.md | 7 +- .../orm-objects-commit/SKILL.md | 7 +- .../orm-objects-freeze-objects/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-objects-get-all-record/SKILL.md | 7 +- .../orm-objects-get-object-at-path/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-objects-init-empty-repo/SKILL.md | 7 +- .../orm-objects-insert-node-at-path/SKILL.md | 7 +- .../orm-objects-object/SKILL.md | 7 +- .../ref.md => skills/orm-objects-ref/SKILL.md | 7 +- .../orm-objects-remove-node-at-path/SKILL.md | 7 +- .../orm-objects-rev-parse/SKILL.md | 7 +- .../orm-objects-set-and-commit/SKILL.md | 7 +- .../orm-objects-set-data-at-path/SKILL.md | 7 +- .../orm-objects-set-props-and-commit/SKILL.md | 7 +- .../orm-objects-store/SKILL.md | 7 +- .../orm-objects-update-node-at-path/SKILL.md | 7 +- .../orm-public-api-module/SKILL.md | 9 +- .../orm-public-api-schema/SKILL.md | 9 +- .../api.md => skills/orm-public-api/SKILL.md | 9 +- .../orm-public-app-achievement/SKILL.md | 9 +- .../orm-public-app-admin-grant/SKILL.md | 9 +- .../orm-public-app-grant/SKILL.md | 9 +- .../orm-public-app-level-requirement/SKILL.md | 9 +- .../orm-public-app-level/SKILL.md | 9 +- .../orm-public-app-limit-default/SKILL.md | 9 +- .../orm-public-app-limit/SKILL.md | 9 +- .../SKILL.md | 9 +- .../orm-public-app-membership/SKILL.md | 13 +- .../orm-public-app-owner-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../orm-public-app-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-app-step/SKILL.md | 9 +- .../app.md => skills/orm-public-app/SKILL.md | 9 +- .../orm-public-apply-rls/SKILL.md | 7 +- .../orm-public-ast-migration/SKILL.md | 7 +- .../orm-public-audit-log/SKILL.md | 9 +- .../orm-public-bootstrap-user/SKILL.md | 7 +- .../orm-public-check-constraint/SKILL.md | 7 +- .../orm-public-check-password/SKILL.md | 7 +- .../orm-public-claimed-invite/SKILL.md | 9 +- .../orm-public-commit/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-connected-account/SKILL.md | 9 +- .../SKILL.md | 7 +- .../orm-public-create-user-database/SKILL.md | 23 +- .../orm-public-crypto-address/SKILL.md | 9 +- .../SKILL.md | 7 +- .../orm-public-crypto-auth-module/SKILL.md | 7 +- .../orm-public-current-ip-address/SKILL.md | 7 +- .../orm-public-current-user-agent/SKILL.md | 7 +- .../orm-public-current-user-id/SKILL.md | 7 +- .../orm-public-current-user/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-database/SKILL.md | 7 +- .../orm-public-default-ids-module/SKILL.md | 7 +- skills/orm-public-default-privilege/SKILL.md | 39 + .../SKILL.md | 7 +- .../orm-public-domain/SKILL.md | 9 +- .../orm-public-email/SKILL.md | 9 +- .../orm-public-emails-module/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-extend-token-expires/SKILL.md | 7 +- .../orm-public-field-module/SKILL.md | 7 +- .../orm-public-field/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-forgot-password/SKILL.md | 7 +- .../orm-public-freeze-objects/SKILL.md | 7 +- .../orm-public-full-text-search/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-get-all-record/SKILL.md | 7 +- .../orm-public-get-object-at-path/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-hierarchy-module/SKILL.md | 7 +- .../orm-public-index/SKILL.md | 7 +- .../orm-public-init-empty-repo/SKILL.md | 7 +- .../orm-public-insert-node-at-path/SKILL.md | 7 +- .../orm-public-invite/SKILL.md | 9 +- .../orm-public-invites-module/SKILL.md | 7 +- .../orm-public-levels-module/SKILL.md | 7 +- .../orm-public-limits-module/SKILL.md | 7 +- .../orm-public-membership-type/SKILL.md | 9 +- .../SKILL.md | 7 +- .../orm-public-memberships-module/SKILL.md | 7 +- .../orm-public-node-type-registry/SKILL.md | 7 +- .../orm-public-object/SKILL.md | 7 +- .../orm-public-one-time-token/SKILL.md | 7 +- .../orm-public-org-admin-grant/SKILL.md | 9 +- .../orm-public-org-chart-edge-grant/SKILL.md | 39 + skills/orm-public-org-chart-edge/SKILL.md | 39 + .../orm-public-org-claimed-invite/SKILL.md | 9 +- .../SKILL.md | 39 + .../SKILL.md | 39 + .../orm-public-org-grant/SKILL.md | 9 +- .../orm-public-org-invite/SKILL.md | 9 +- skills/orm-public-org-is-manager-of/SKILL.md | 24 + .../orm-public-org-limit-default/SKILL.md | 9 +- .../orm-public-org-limit/SKILL.md | 9 +- .../orm-public-org-member/SKILL.md | 9 +- .../SKILL.md | 9 +- .../orm-public-org-membership/SKILL.md | 13 +- .../orm-public-org-owner-grant/SKILL.md | 9 +- .../SKILL.md | 9 +- .../orm-public-org-permission/SKILL.md | 9 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-permissions-module/SKILL.md | 7 +- .../orm-public-phone-number/SKILL.md | 9 +- .../orm-public-phone-numbers-module/SKILL.md | 7 +- .../orm-public-policy/SKILL.md | 11 +- .../SKILL.md | 7 +- .../orm-public-profiles-module/SKILL.md | 11 +- .../SKILL.md | 7 +- .../ref.md => skills/orm-public-ref/SKILL.md | 7 +- skills/orm-public-relation-provision/SKILL.md | 53 + .../orm-public-remove-node-at-path/SKILL.md | 7 +- .../orm-public-reset-password/SKILL.md | 7 +- .../orm-public-rev-parse/SKILL.md | 7 +- .../orm-public-rls-module/SKILL.md | 7 +- .../orm-public-role-type/SKILL.md | 7 +- .../orm-public-schema-grant/SKILL.md | 7 +- .../orm-public-schema/SKILL.md | 7 +- .../orm-public-secrets-module/SKILL.md | 7 +- .../SKILL.md | 39 + .../SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-sessions-module/SKILL.md | 7 +- .../orm-public-set-and-commit/SKILL.md | 7 +- .../orm-public-set-data-at-path/SKILL.md | 7 +- .../orm-public-set-field-order/SKILL.md | 7 +- .../orm-public-set-password/SKILL.md | 7 +- .../orm-public-set-props-and-commit/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-sign-in/SKILL.md | 7 +- .../orm-public-sign-out/SKILL.md | 7 +- .../orm-public-sign-up/SKILL.md | 7 +- .../orm-public-site-metadatum/SKILL.md | 9 +- .../orm-public-site-module/SKILL.md | 9 +- .../orm-public-site-theme/SKILL.md | 9 +- .../orm-public-site/SKILL.md | 9 +- .../orm-public-sql-migration/SKILL.md | 7 +- .../orm-public-steps-achieved/SKILL.md | 7 +- .../orm-public-steps-required/SKILL.md | 7 +- .../orm-public-store/SKILL.md | 7 +- .../orm-public-submit-invite-code/SKILL.md | 7 +- .../SKILL.md | 7 +- .../orm-public-table-grant/SKILL.md | 11 +- .../orm-public-table-module/SKILL.md | 11 +- .../orm-public-table-template-module/SKILL.md | 7 +- .../orm-public-table/SKILL.md | 7 +- .../orm-public-trigger-function/SKILL.md | 7 +- .../orm-public-trigger/SKILL.md | 7 +- .../orm-public-unique-constraint/SKILL.md | 7 +- .../orm-public-update-node-at-path/SKILL.md | 7 +- .../orm-public-user-auth-module/SKILL.md | 7 +- .../orm-public-user/SKILL.md | 7 +- .../orm-public-users-module/SKILL.md | 7 +- .../orm-public-uuid-module/SKILL.md | 7 +- .../orm-public-verify-email/SKILL.md | 7 +- .../orm-public-verify-password/SKILL.md | 7 +- .../orm-public-verify-totp/SKILL.md | 7 +- .../orm-public-view-grant/SKILL.md | 11 +- .../orm-public-view-rule/SKILL.md | 7 +- .../orm-public-view-table/SKILL.md | 7 +- .../orm-public-view/SKILL.md | 7 +- 1233 files changed, 31354 insertions(+), 18344 deletions(-) create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts rename sdk/constructive-react/src/{public/hooks/mutations/useDeleteProcedureMutation.ts => admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts} (53%) create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts rename sdk/{constructive-sdk/src/public/orm/models/procedure.ts => constructive-react/src/admin/orm/models/orgChartEdge.ts} (53%) create mode 100644 sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appGrant.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appLevel.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appLimit.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/appStep.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/invite.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgGrant.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgInvite.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgLimit.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermission.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/stepsRequired.md delete mode 100644 sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/forgotPassword.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/phoneNumber.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/resetPassword.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/setPassword.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/signUp.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/verifyEmail.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/verifyPassword.md delete mode 100644 sdk/constructive-react/src/auth/orm/skills/verifyTotp.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/revParse.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/setAndCommit.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md delete mode 100644 sdk/constructive-react/src/objects/orm/skills/store.md create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts rename sdk/constructive-react/src/public/hooks/mutations/{useDeleteLimitFunctionMutation.ts => useDeleteDefaultPrivilegeMutation.ts} (53%) create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/skills/limitFunction.md delete mode 100644 sdk/constructive-react/src/public/hooks/skills/policy.md delete mode 100644 sdk/constructive-react/src/public/hooks/skills/procedure.md delete mode 100644 sdk/constructive-react/src/public/hooks/skills/tableModule.md create mode 100644 sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts rename sdk/constructive-react/src/public/orm/models/{procedure.ts => orgChartEdge.ts} (53%) create mode 100644 sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts create mode 100644 sdk/constructive-react/src/public/orm/models/relationProvision.ts create mode 100644 sdk/constructive-react/src/public/orm/models/secureTableProvision.ts delete mode 100644 sdk/constructive-react/src/public/orm/skills/apiModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/apiSchema.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/app.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/appAchievement.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/appPermission.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/applyRls.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/domain.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/email.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/emailsModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/field.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/fieldModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/forgotPassword.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/fullTextSearch.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/index.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/invitesModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/limitFunction.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/limitsModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/membershipType.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/membershipsModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgGrant.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgLimit.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgMembership.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/permissionsModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/policy.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/procedure.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/profilesModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/ref.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/rlsModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/roleType.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/schema.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/secretsModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/signUp.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/siteMetadatum.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/siteModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/sqlMigration.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/stepsAchieved.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/stepsRequired.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/tableModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/user.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/userAuthModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/usersModule.md delete mode 100644 sdk/constructive-react/src/public/orm/skills/viewRule.md rename sdk/{constructive-react/src/public/orm/models/limitFunction.ts => constructive-sdk/src/admin/orm/models/orgChartEdge.ts} (52%) create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appMembership.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgMember.md delete mode 100644 sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/auditLog.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/currentUser.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/signIn.md delete mode 100644 sdk/constructive-sdk/src/auth/orm/skills/signOut.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/commit.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/object.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md delete mode 100644 sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md create mode 100644 sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts rename sdk/constructive-sdk/src/public/orm/models/{limitFunction.ts => orgChartEdge.ts} (52%) create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/relationProvision.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/api.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appAchievement.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLevel.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLimit.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appMembership.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermission.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/appStep.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/astMigration.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/auditLog.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/checkPassword.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/commit.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentUser.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentUserId.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/database.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/email.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/invite.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/levelsModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/limitFunction.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/membershipType.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/object.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgInvite.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgMember.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgMembership.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermission.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/procedure.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/ref.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/resetPassword.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/revParse.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/roleType.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/setPassword.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/signIn.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/signOut.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/site.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/siteTheme.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/store.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/table.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/tableGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/trigger.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/user.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/uuidModule.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/view.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/viewGrant.md delete mode 100644 sdk/constructive-sdk/src/public/orm/skills/viewTable.md rename sdk/constructive-react/src/admin/hooks/skills/appAchievement.md => skills/hooks-admin-app-achievement/SKILL.md (74%) rename sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md => skills/hooks-admin-app-admin-grant/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/appGrant.md => skills/hooks-admin-app-grant/SKILL.md (81%) rename sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md => skills/hooks-admin-app-level-requirement/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/appLevel.md => skills/hooks-admin-app-level/SKILL.md (82%) rename sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md => skills/hooks-admin-app-limit-default/SKILL.md (76%) rename sdk/constructive-react/src/admin/hooks/skills/appLimit.md => skills/hooks-admin-app-limit/SKILL.md (81%) rename sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md => skills/hooks-admin-app-membership-default/SKILL.md (78%) rename sdk/constructive-react/src/admin/hooks/skills/appMembership.md => skills/hooks-admin-app-membership/SKILL.md (75%) rename sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md => skills/hooks-admin-app-owner-grant/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md => skills/hooks-admin-app-permission-default/SKILL.md (77%) rename sdk/constructive-react/src/public/hooks/skills/appPermission.md => skills/hooks-admin-app-permission/SKILL.md (76%) rename sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md => skills/hooks-admin-app-permissions-get-by-mask/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md => skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md (67%) rename sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md => skills/hooks-admin-app-permissions-get-mask/SKILL.md (68%) rename sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md => skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md (67%) rename sdk/constructive-react/src/admin/hooks/skills/appStep.md => skills/hooks-admin-app-step/SKILL.md (77%) rename sdk/constructive-react/src/public/hooks/skills/claimedInvite.md => skills/hooks-admin-claimed-invite/SKILL.md (81%) rename sdk/constructive-react/src/public/hooks/skills/invite.md => skills/hooks-admin-invite/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/membershipType.md => skills/hooks-admin-membership-type/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md => skills/hooks-admin-org-admin-grant/SKILL.md (84%) create mode 100644 skills/hooks-admin-org-chart-edge-grant/SKILL.md create mode 100644 skills/hooks-admin-org-chart-edge/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md => skills/hooks-admin-org-claimed-invite/SKILL.md (82%) create mode 100644 skills/hooks-admin-org-get-managers-record/SKILL.md create mode 100644 skills/hooks-admin-org-get-subordinates-record/SKILL.md rename sdk/constructive-react/src/admin/hooks/skills/orgGrant.md => skills/hooks-admin-org-grant/SKILL.md (82%) rename sdk/constructive-react/src/admin/hooks/skills/orgInvite.md => skills/hooks-admin-org-invite/SKILL.md (85%) create mode 100644 skills/hooks-admin-org-is-manager-of/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md => skills/hooks-admin-org-limit-default/SKILL.md (76%) rename sdk/constructive-react/src/admin/hooks/skills/orgLimit.md => skills/hooks-admin-org-limit/SKILL.md (82%) rename sdk/constructive-react/src/public/hooks/skills/orgMember.md => skills/hooks-admin-org-member/SKILL.md (76%) rename sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md => skills/hooks-admin-org-membership-default/SKILL.md (82%) rename sdk/constructive-react/src/admin/hooks/skills/orgMembership.md => skills/hooks-admin-org-membership/SKILL.md (75%) rename sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md => skills/hooks-admin-org-owner-grant/SKILL.md (84%) rename sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md => skills/hooks-admin-org-permission-default/SKILL.md (78%) rename sdk/constructive-react/src/admin/hooks/skills/orgPermission.md => skills/hooks-admin-org-permission/SKILL.md (76%) rename sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md => skills/hooks-admin-org-permissions-get-by-mask/SKILL.md (73%) rename sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md => skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md (67%) rename sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md => skills/hooks-admin-org-permissions-get-mask/SKILL.md (68%) rename sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md => skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md (67%) rename sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md => skills/hooks-admin-steps-achieved/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/stepsRequired.md => skills/hooks-admin-steps-required/SKILL.md (76%) rename sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md => skills/hooks-admin-submit-invite-code/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md => skills/hooks-admin-submit-org-invite-code/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/auditLog.md => skills/hooks-auth-audit-log/SKILL.md (81%) rename sdk/constructive-react/src/public/hooks/skills/checkPassword.md => skills/hooks-auth-check-password/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md => skills/hooks-auth-confirm-delete-account/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/connectedAccount.md => skills/hooks-auth-connected-account/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md => skills/hooks-auth-crypto-address/SKILL.md (79%) rename sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md => skills/hooks-auth-current-ip-address/SKILL.md (67%) rename sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md => skills/hooks-auth-current-user-agent/SKILL.md (67%) rename sdk/constructive-react/src/public/hooks/skills/currentUserId.md => skills/hooks-auth-current-user-id/SKILL.md (68%) rename sdk/constructive-react/src/public/hooks/skills/currentUser.md => skills/hooks-auth-current-user/SKILL.md (68%) rename sdk/constructive-react/src/public/hooks/skills/email.md => skills/hooks-auth-email/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md => skills/hooks-auth-extend-token-expires/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/forgotPassword.md => skills/hooks-auth-forgot-password/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md => skills/hooks-auth-one-time-token/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/phoneNumber.md => skills/hooks-auth-phone-number/SKILL.md (82%) rename sdk/constructive-react/src/public/hooks/skills/resetPassword.md => skills/hooks-auth-reset-password/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/roleType.md => skills/hooks-auth-role-type/SKILL.md (86%) rename sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md => skills/hooks-auth-send-account-deletion-email/SKILL.md (71%) rename sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md => skills/hooks-auth-send-verification-email/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/setPassword.md => skills/hooks-auth-set-password/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md => skills/hooks-auth-sign-in-one-time-token/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/signIn.md => skills/hooks-auth-sign-in/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/signOut.md => skills/hooks-auth-sign-out/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/signUp.md => skills/hooks-auth-sign-up/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/user.md => skills/hooks-auth-user/SKILL.md (92%) rename sdk/constructive-react/src/public/hooks/skills/verifyEmail.md => skills/hooks-auth-verify-email/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/verifyPassword.md => skills/hooks-auth-verify-password/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/verifyTotp.md => skills/hooks-auth-verify-totp/SKILL.md (74%) create mode 100644 skills/hooks-objects-commit/SKILL.md create mode 100644 skills/hooks-objects-freeze-objects/SKILL.md create mode 100644 skills/hooks-objects-get-all-objects-from-root/SKILL.md create mode 100644 skills/hooks-objects-get-all-record/SKILL.md create mode 100644 skills/hooks-objects-get-object-at-path/SKILL.md create mode 100644 skills/hooks-objects-get-path-objects-from-root/SKILL.md create mode 100644 skills/hooks-objects-init-empty-repo/SKILL.md create mode 100644 skills/hooks-objects-insert-node-at-path/SKILL.md create mode 100644 skills/hooks-objects-object/SKILL.md create mode 100644 skills/hooks-objects-ref/SKILL.md create mode 100644 skills/hooks-objects-remove-node-at-path/SKILL.md create mode 100644 skills/hooks-objects-rev-parse/SKILL.md create mode 100644 skills/hooks-objects-set-and-commit/SKILL.md create mode 100644 skills/hooks-objects-set-data-at-path/SKILL.md create mode 100644 skills/hooks-objects-set-props-and-commit/SKILL.md create mode 100644 skills/hooks-objects-store/SKILL.md create mode 100644 skills/hooks-objects-update-node-at-path/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/apiModule.md => skills/hooks-public-api-module/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/apiSchema.md => skills/hooks-public-api-schema/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/api.md => skills/hooks-public-api/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/appAchievement.md => skills/hooks-public-app-achievement/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md => skills/hooks-public-app-admin-grant/SKILL.md (82%) rename sdk/constructive-react/src/admin/hooks/skills/appGrant.md => skills/hooks-public-app-grant/SKILL.md (81%) rename sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md => skills/hooks-public-app-level-requirement/SKILL.md (83%) rename sdk/constructive-react/src/admin/hooks/skills/appLevel.md => skills/hooks-public-app-level/SKILL.md (82%) rename sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md => skills/hooks-public-app-limit-default/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/appLimit.md => skills/hooks-public-app-limit/SKILL.md (81%) rename sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md => skills/hooks-public-app-membership-default/SKILL.md (78%) rename sdk/constructive-react/src/public/hooks/skills/appMembership.md => skills/hooks-public-app-membership/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md => skills/hooks-public-app-owner-grant/SKILL.md (83%) rename sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md => skills/hooks-public-app-permission-default/SKILL.md (77%) rename sdk/constructive-react/src/admin/hooks/skills/appPermission.md => skills/hooks-public-app-permission/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md => skills/hooks-public-app-permissions-get-by-mask/SKILL.md (72%) rename sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md => skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md (67%) rename sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md => skills/hooks-public-app-permissions-get-mask/SKILL.md (68%) rename sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md => skills/hooks-public-app-permissions-get-padded-mask/SKILL.md (67%) rename sdk/constructive-react/src/public/hooks/skills/appStep.md => skills/hooks-public-app-step/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/app.md => skills/hooks-public-app/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/applyRls.md => skills/hooks-public-apply-rls/SKILL.md (74%) rename sdk/constructive-react/src/public/hooks/skills/astMigration.md => skills/hooks-public-ast-migration/SKILL.md (91%) create mode 100644 skills/hooks-public-audit-log/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md => skills/hooks-public-bootstrap-user/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/checkConstraint.md => skills/hooks-public-check-constraint/SKILL.md (91%) create mode 100644 skills/hooks-public-check-password/SKILL.md rename sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md => skills/hooks-public-claimed-invite/SKILL.md (81%) rename sdk/constructive-react/src/public/hooks/skills/commit.md => skills/hooks-public-commit/SKILL.md (91%) create mode 100644 skills/hooks-public-confirm-delete-account/SKILL.md create mode 100644 skills/hooks-public-connected-account/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md => skills/hooks-public-connected-accounts-module/SKILL.md (88%) rename sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md => skills/hooks-public-create-user-database/SKILL.md (55%) create mode 100644 skills/hooks-public-crypto-address/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md => skills/hooks-public-crypto-addresses-module/SKILL.md (89%) rename sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md => skills/hooks-public-crypto-auth-module/SKILL.md (93%) create mode 100644 skills/hooks-public-current-ip-address/SKILL.md create mode 100644 skills/hooks-public-current-user-agent/SKILL.md create mode 100644 skills/hooks-public-current-user-id/SKILL.md create mode 100644 skills/hooks-public-current-user/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md => skills/hooks-public-database-provision-module/SKILL.md (87%) rename sdk/constructive-react/src/public/hooks/skills/database.md => skills/hooks-public-database/SKILL.md (90%) rename sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md => skills/hooks-public-default-ids-module/SKILL.md (85%) create mode 100644 skills/hooks-public-default-privilege/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md => skills/hooks-public-denormalized-table-field/SKILL.md (90%) rename sdk/constructive-react/src/public/hooks/skills/domain.md => skills/hooks-public-domain/SKILL.md (80%) create mode 100644 skills/hooks-public-email/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/emailsModule.md => skills/hooks-public-emails-module/SKILL.md (90%) rename sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md => skills/hooks-public-encrypted-secrets-module/SKILL.md (87%) create mode 100644 skills/hooks-public-extend-token-expires/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/fieldModule.md => skills/hooks-public-field-module/SKILL.md (90%) rename sdk/constructive-react/src/public/hooks/skills/field.md => skills/hooks-public-field/SKILL.md (95%) rename sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md => skills/hooks-public-foreign-key-constraint/SKILL.md (92%) create mode 100644 skills/hooks-public-forgot-password/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/freezeObjects.md => skills/hooks-public-freeze-objects/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md => skills/hooks-public-full-text-search/SKILL.md (89%) rename sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md => skills/hooks-public-get-all-objects-from-root/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/getAllRecord.md => skills/hooks-public-get-all-record/SKILL.md (81%) rename sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md => skills/hooks-public-get-object-at-path/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md => skills/hooks-public-get-path-objects-from-root/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md => skills/hooks-public-hierarchy-module/SKILL.md (94%) rename sdk/constructive-react/src/public/hooks/skills/index.md => skills/hooks-public-index/SKILL.md (94%) rename sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md => skills/hooks-public-init-empty-repo/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md => skills/hooks-public-insert-node-at-path/SKILL.md (72%) rename sdk/constructive-react/src/admin/hooks/skills/invite.md => skills/hooks-public-invite/SKILL.md (83%) rename sdk/constructive-react/src/public/hooks/skills/invitesModule.md => skills/hooks-public-invites-module/SKILL.md (93%) rename sdk/constructive-react/src/public/hooks/skills/levelsModule.md => skills/hooks-public-levels-module/SKILL.md (96%) rename sdk/constructive-react/src/public/hooks/skills/limitsModule.md => skills/hooks-public-limits-module/SKILL.md (94%) rename sdk/constructive-react/src/admin/hooks/skills/membershipType.md => skills/hooks-public-membership-type/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md => skills/hooks-public-membership-types-module/SKILL.md (87%) rename sdk/constructive-react/src/public/hooks/skills/membershipsModule.md => skills/hooks-public-memberships-module/SKILL.md (96%) rename sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md => skills/hooks-public-node-type-registry/SKILL.md (85%) rename sdk/constructive-react/src/public/hooks/skills/object.md => skills/hooks-public-object/SKILL.md (90%) create mode 100644 skills/hooks-public-one-time-token/SKILL.md rename sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md => skills/hooks-public-org-admin-grant/SKILL.md (83%) create mode 100644 skills/hooks-public-org-chart-edge-grant/SKILL.md create mode 100644 skills/hooks-public-org-chart-edge/SKILL.md rename sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md => skills/hooks-public-org-claimed-invite/SKILL.md (82%) create mode 100644 skills/hooks-public-org-get-managers-record/SKILL.md create mode 100644 skills/hooks-public-org-get-subordinates-record/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/orgGrant.md => skills/hooks-public-org-grant/SKILL.md (82%) rename sdk/constructive-react/src/public/hooks/skills/orgInvite.md => skills/hooks-public-org-invite/SKILL.md (84%) create mode 100644 skills/hooks-public-org-is-manager-of/SKILL.md rename sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md => skills/hooks-public-org-limit-default/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/orgLimit.md => skills/hooks-public-org-limit/SKILL.md (82%) rename sdk/constructive-react/src/admin/hooks/skills/orgMember.md => skills/hooks-public-org-member/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md => skills/hooks-public-org-membership-default/SKILL.md (82%) rename sdk/constructive-react/src/public/hooks/skills/orgMembership.md => skills/hooks-public-org-membership/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md => skills/hooks-public-org-owner-grant/SKILL.md (84%) rename sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md => skills/hooks-public-org-permission-default/SKILL.md (78%) rename sdk/constructive-react/src/public/hooks/skills/orgPermission.md => skills/hooks-public-org-permission/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md => skills/hooks-public-org-permissions-get-by-mask/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md => skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md (67%) rename sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md => skills/hooks-public-org-permissions-get-mask/SKILL.md (68%) rename sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md => skills/hooks-public-org-permissions-get-padded-mask/SKILL.md (67%) rename sdk/constructive-react/src/public/hooks/skills/permissionsModule.md => skills/hooks-public-permissions-module/SKILL.md (93%) create mode 100644 skills/hooks-public-phone-number/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md => skills/hooks-public-phone-numbers-module/SKILL.md (89%) create mode 100644 skills/hooks-public-policy/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md => skills/hooks-public-primary-key-constraint/SKILL.md (90%) rename sdk/constructive-react/src/public/hooks/skills/profilesModule.md => skills/hooks-public-profiles-module/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md => skills/hooks-public-provision-database-with-user/SKILL.md (70%) rename sdk/constructive-react/src/public/hooks/skills/ref.md => skills/hooks-public-ref/SKILL.md (89%) create mode 100644 skills/hooks-public-relation-provision/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md => skills/hooks-public-remove-node-at-path/SKILL.md (72%) create mode 100644 skills/hooks-public-reset-password/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/revParse.md => skills/hooks-public-rev-parse/SKILL.md (76%) rename sdk/constructive-react/src/public/hooks/skills/rlsModule.md => skills/hooks-public-rls-module/SKILL.md (93%) create mode 100644 skills/hooks-public-role-type/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/schemaGrant.md => skills/hooks-public-schema-grant/SKILL.md (89%) rename sdk/constructive-react/src/public/hooks/skills/schema.md => skills/hooks-public-schema/SKILL.md (93%) rename sdk/constructive-react/src/public/hooks/skills/secretsModule.md => skills/hooks-public-secrets-module/SKILL.md (88%) create mode 100644 skills/hooks-public-secure-table-provision/SKILL.md create mode 100644 skills/hooks-public-send-account-deletion-email/SKILL.md create mode 100644 skills/hooks-public-send-verification-email/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/sessionsModule.md => skills/hooks-public-sessions-module/SKILL.md (92%) rename sdk/constructive-react/src/public/hooks/skills/setAndCommit.md => skills/hooks-public-set-and-commit/SKILL.md (73%) rename sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md => skills/hooks-public-set-data-at-path/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md => skills/hooks-public-set-field-order/SKILL.md (73%) create mode 100644 skills/hooks-public-set-password/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md => skills/hooks-public-set-props-and-commit/SKILL.md (72%) create mode 100644 skills/hooks-public-sign-in-one-time-token/SKILL.md create mode 100644 skills/hooks-public-sign-in/SKILL.md create mode 100644 skills/hooks-public-sign-out/SKILL.md create mode 100644 skills/hooks-public-sign-up/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md => skills/hooks-public-site-metadatum/SKILL.md (79%) rename sdk/constructive-react/src/public/hooks/skills/siteModule.md => skills/hooks-public-site-module/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/siteTheme.md => skills/hooks-public-site-theme/SKILL.md (77%) rename sdk/constructive-react/src/public/hooks/skills/site.md => skills/hooks-public-site/SKILL.md (82%) rename sdk/constructive-react/src/public/hooks/skills/sqlMigration.md => skills/hooks-public-sql-migration/SKILL.md (91%) rename sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md => skills/hooks-public-steps-achieved/SKILL.md (73%) rename sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md => skills/hooks-public-steps-required/SKILL.md (75%) rename sdk/constructive-react/src/public/hooks/skills/store.md => skills/hooks-public-store/SKILL.md (87%) rename sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md => skills/hooks-public-submit-invite-code/SKILL.md (72%) rename sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md => skills/hooks-public-submit-org-invite-code/SKILL.md (71%) rename sdk/constructive-react/src/public/hooks/skills/tableGrant.md => skills/hooks-public-table-grant/SKILL.md (57%) create mode 100644 skills/hooks-public-table-module/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md => skills/hooks-public-table-template-module/SKILL.md (89%) rename sdk/constructive-react/src/public/hooks/skills/table.md => skills/hooks-public-table/SKILL.md (94%) rename sdk/constructive-react/src/public/hooks/skills/triggerFunction.md => skills/hooks-public-trigger-function/SKILL.md (88%) rename sdk/constructive-react/src/public/hooks/skills/trigger.md => skills/hooks-public-trigger/SKILL.md (92%) rename sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md => skills/hooks-public-unique-constraint/SKILL.md (91%) rename sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md => skills/hooks-public-update-node-at-path/SKILL.md (72%) rename sdk/constructive-react/src/public/hooks/skills/userAuthModule.md => skills/hooks-public-user-auth-module/SKILL.md (96%) create mode 100644 skills/hooks-public-user/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/usersModule.md => skills/hooks-public-users-module/SKILL.md (90%) rename sdk/constructive-react/src/public/hooks/skills/uuidModule.md => skills/hooks-public-uuid-module/SKILL.md (88%) create mode 100644 skills/hooks-public-verify-email/SKILL.md create mode 100644 skills/hooks-public-verify-password/SKILL.md create mode 100644 skills/hooks-public-verify-totp/SKILL.md rename sdk/constructive-react/src/public/hooks/skills/viewGrant.md => skills/hooks-public-view-grant/SKILL.md (56%) rename sdk/constructive-react/src/public/hooks/skills/viewRule.md => skills/hooks-public-view-rule/SKILL.md (88%) rename sdk/constructive-react/src/public/hooks/skills/viewTable.md => skills/hooks-public-view-table/SKILL.md (86%) rename sdk/constructive-react/src/public/hooks/skills/view.md => skills/hooks-public-view/SKILL.md (94%) rename sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md => skills/orm-admin-app-achievement/SKILL.md (72%) rename sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md => skills/orm-admin-app-admin-grant/SKILL.md (81%) rename sdk/constructive-react/src/public/orm/skills/appGrant.md => skills/orm-admin-app-grant/SKILL.md (79%) rename sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md => skills/orm-admin-app-level-requirement/SKILL.md (81%) rename sdk/constructive-react/src/public/orm/skills/appLevel.md => skills/orm-admin-app-level/SKILL.md (80%) rename sdk/constructive-react/src/public/orm/skills/appLimitDefault.md => skills/orm-admin-app-limit-default/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/appLimit.md => skills/orm-admin-app-limit/SKILL.md (80%) rename sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md => skills/orm-admin-app-membership-default/SKILL.md (76%) rename sdk/constructive-react/src/admin/orm/skills/appMembership.md => skills/orm-admin-app-membership/SKILL.md (71%) rename sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md => skills/orm-admin-app-owner-grant/SKILL.md (81%) rename sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md => skills/orm-admin-app-permission-default/SKILL.md (78%) rename sdk/constructive-react/src/admin/orm/skills/appPermission.md => skills/orm-admin-app-permission/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md => skills/orm-admin-app-permissions-get-by-mask/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md => skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md (68%) rename sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md => skills/orm-admin-app-permissions-get-mask/SKILL.md (70%) rename sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md => skills/orm-admin-app-permissions-get-padded-mask/SKILL.md (69%) rename sdk/constructive-sdk/src/admin/orm/skills/appStep.md => skills/orm-admin-app-step/SKILL.md (75%) rename sdk/constructive-react/src/public/orm/skills/claimedInvite.md => skills/orm-admin-claimed-invite/SKILL.md (79%) rename sdk/constructive-sdk/src/admin/orm/skills/invite.md => skills/orm-admin-invite/SKILL.md (80%) rename sdk/constructive-react/src/admin/orm/skills/membershipType.md => skills/orm-admin-membership-type/SKILL.md (76%) rename sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md => skills/orm-admin-org-admin-grant/SKILL.md (82%) create mode 100644 skills/orm-admin-org-chart-edge-grant/SKILL.md create mode 100644 skills/orm-admin-org-chart-edge/SKILL.md rename sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md => skills/orm-admin-org-claimed-invite/SKILL.md (80%) create mode 100644 skills/orm-admin-org-get-managers-record/SKILL.md create mode 100644 skills/orm-admin-org-get-subordinates-record/SKILL.md rename sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md => skills/orm-admin-org-grant/SKILL.md (80%) rename sdk/constructive-react/src/public/orm/skills/orgInvite.md => skills/orm-admin-org-invite/SKILL.md (81%) create mode 100644 skills/orm-admin-org-is-manager-of/SKILL.md rename sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md => skills/orm-admin-org-limit-default/SKILL.md (76%) rename sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md => skills/orm-admin-org-limit/SKILL.md (81%) rename sdk/constructive-react/src/public/orm/skills/orgMember.md => skills/orm-admin-org-member/SKILL.md (76%) rename sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md => skills/orm-admin-org-membership-default/SKILL.md (78%) rename sdk/constructive-react/src/admin/orm/skills/orgMembership.md => skills/orm-admin-org-membership/SKILL.md (71%) rename sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md => skills/orm-admin-org-owner-grant/SKILL.md (82%) rename sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md => skills/orm-admin-org-permission-default/SKILL.md (79%) rename sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md => skills/orm-admin-org-permission/SKILL.md (76%) rename sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md => skills/orm-admin-org-permissions-get-by-mask/SKILL.md (73%) rename sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md => skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md (68%) rename sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md => skills/orm-admin-org-permissions-get-mask/SKILL.md (70%) rename sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md => skills/orm-admin-org-permissions-get-padded-mask/SKILL.md (69%) rename sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md => skills/orm-admin-steps-achieved/SKILL.md (75%) rename sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md => skills/orm-admin-steps-required/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/submitInviteCode.md => skills/orm-admin-submit-invite-code/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md => skills/orm-admin-submit-org-invite-code/SKILL.md (71%) rename sdk/constructive-react/src/auth/orm/skills/auditLog.md => skills/orm-auth-audit-log/SKILL.md (79%) rename sdk/constructive-react/src/public/orm/skills/checkPassword.md => skills/orm-auth-check-password/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md => skills/orm-auth-confirm-delete-account/SKILL.md (71%) rename sdk/constructive-react/src/auth/orm/skills/connectedAccount.md => skills/orm-auth-connected-account/SKILL.md (80%) rename sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md => skills/orm-auth-crypto-address/SKILL.md (77%) rename sdk/constructive-react/src/public/orm/skills/currentIpAddress.md => skills/orm-auth-current-ip-address/SKILL.md (69%) rename sdk/constructive-react/src/public/orm/skills/currentUserAgent.md => skills/orm-auth-current-user-agent/SKILL.md (69%) rename sdk/constructive-react/src/public/orm/skills/currentUserId.md => skills/orm-auth-current-user-id/SKILL.md (70%) rename sdk/constructive-react/src/auth/orm/skills/currentUser.md => skills/orm-auth-current-user/SKILL.md (71%) rename sdk/constructive-sdk/src/auth/orm/skills/email.md => skills/orm-auth-email/SKILL.md (81%) rename sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md => skills/orm-auth-extend-token-expires/SKILL.md (72%) rename sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md => skills/orm-auth-forgot-password/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/oneTimeToken.md => skills/orm-auth-one-time-token/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/phoneNumber.md => skills/orm-auth-phone-number/SKILL.md (80%) rename sdk/constructive-react/src/public/orm/skills/resetPassword.md => skills/orm-auth-reset-password/SKILL.md (73%) rename sdk/constructive-sdk/src/auth/orm/skills/roleType.md => skills/orm-auth-role-type/SKILL.md (88%) rename sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md => skills/orm-auth-send-account-deletion-email/SKILL.md (70%) rename sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md => skills/orm-auth-send-verification-email/SKILL.md (71%) rename sdk/constructive-react/src/public/orm/skills/setPassword.md => skills/orm-auth-set-password/SKILL.md (74%) rename sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md => skills/orm-auth-sign-in-one-time-token/SKILL.md (71%) rename sdk/constructive-react/src/public/orm/skills/signIn.md => skills/orm-auth-sign-in/SKILL.md (75%) rename sdk/constructive-react/src/public/orm/skills/signOut.md => skills/orm-auth-sign-out/SKILL.md (75%) rename sdk/constructive-sdk/src/auth/orm/skills/signUp.md => skills/orm-auth-sign-up/SKILL.md (75%) rename sdk/constructive-react/src/auth/orm/skills/user.md => skills/orm-auth-user/SKILL.md (91%) rename sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md => skills/orm-auth-verify-email/SKILL.md (74%) rename sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md => skills/orm-auth-verify-password/SKILL.md (73%) rename sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md => skills/orm-auth-verify-totp/SKILL.md (74%) rename sdk/constructive-react/src/objects/orm/skills/commit.md => skills/orm-objects-commit/SKILL.md (90%) rename sdk/constructive-react/src/public/orm/skills/freezeObjects.md => skills/orm-objects-freeze-objects/SKILL.md (72%) rename sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md => skills/orm-objects-get-all-objects-from-root/SKILL.md (75%) rename sdk/constructive-react/src/objects/orm/skills/getAllRecord.md => skills/orm-objects-get-all-record/SKILL.md (87%) rename sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md => skills/orm-objects-get-object-at-path/SKILL.md (77%) rename sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md => skills/orm-objects-get-path-objects-from-root/SKILL.md (76%) rename sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md => skills/orm-objects-init-empty-repo/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md => skills/orm-objects-insert-node-at-path/SKILL.md (71%) rename sdk/constructive-react/src/objects/orm/skills/object.md => skills/orm-objects-object/SKILL.md (90%) rename sdk/constructive-sdk/src/objects/orm/skills/ref.md => skills/orm-objects-ref/SKILL.md (88%) rename sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md => skills/orm-objects-remove-node-at-path/SKILL.md (71%) rename sdk/constructive-sdk/src/objects/orm/skills/revParse.md => skills/orm-objects-rev-parse/SKILL.md (78%) rename sdk/constructive-react/src/public/orm/skills/setAndCommit.md => skills/orm-objects-set-and-commit/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/setDataAtPath.md => skills/orm-objects-set-data-at-path/SKILL.md (71%) rename sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md => skills/orm-objects-set-props-and-commit/SKILL.md (71%) rename sdk/constructive-sdk/src/objects/orm/skills/store.md => skills/orm-objects-store/SKILL.md (86%) rename sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md => skills/orm-objects-update-node-at-path/SKILL.md (71%) rename sdk/constructive-sdk/src/public/orm/skills/apiModule.md => skills/orm-public-api-module/SKILL.md (73%) rename sdk/constructive-sdk/src/public/orm/skills/apiSchema.md => skills/orm-public-api-schema/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/api.md => skills/orm-public-api/SKILL.md (74%) rename sdk/constructive-react/src/admin/orm/skills/appAchievement.md => skills/orm-public-app-achievement/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/appAdminGrant.md => skills/orm-public-app-admin-grant/SKILL.md (81%) rename sdk/constructive-sdk/src/admin/orm/skills/appGrant.md => skills/orm-public-app-grant/SKILL.md (79%) rename sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md => skills/orm-public-app-level-requirement/SKILL.md (81%) rename sdk/constructive-sdk/src/admin/orm/skills/appLevel.md => skills/orm-public-app-level/SKILL.md (79%) rename sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md => skills/orm-public-app-limit-default/SKILL.md (76%) rename sdk/constructive-sdk/src/admin/orm/skills/appLimit.md => skills/orm-public-app-limit/SKILL.md (80%) rename sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md => skills/orm-public-app-membership-default/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/appMembership.md => skills/orm-public-app-membership/SKILL.md (71%) rename sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md => skills/orm-public-app-owner-grant/SKILL.md (81%) rename sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md => skills/orm-public-app-permission-default/SKILL.md (78%) rename sdk/constructive-sdk/src/admin/orm/skills/appPermission.md => skills/orm-public-app-permission/SKILL.md (76%) rename sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md => skills/orm-public-app-permissions-get-by-mask/SKILL.md (73%) rename sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md => skills/orm-public-app-permissions-get-mask-by-names/SKILL.md (68%) rename sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md => skills/orm-public-app-permissions-get-mask/SKILL.md (70%) rename sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md => skills/orm-public-app-permissions-get-padded-mask/SKILL.md (68%) rename sdk/constructive-react/src/public/orm/skills/appStep.md => skills/orm-public-app-step/SKILL.md (74%) rename sdk/constructive-sdk/src/public/orm/skills/app.md => skills/orm-public-app/SKILL.md (80%) rename sdk/constructive-sdk/src/public/orm/skills/applyRls.md => skills/orm-public-apply-rls/SKILL.md (74%) rename sdk/constructive-react/src/public/orm/skills/astMigration.md => skills/orm-public-ast-migration/SKILL.md (91%) rename sdk/constructive-react/src/public/orm/skills/auditLog.md => skills/orm-public-audit-log/SKILL.md (79%) rename sdk/constructive-react/src/public/orm/skills/bootstrapUser.md => skills/orm-public-bootstrap-user/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/checkConstraint.md => skills/orm-public-check-constraint/SKILL.md (90%) rename sdk/constructive-react/src/auth/orm/skills/checkPassword.md => skills/orm-public-check-password/SKILL.md (72%) rename sdk/constructive-react/src/admin/orm/skills/claimedInvite.md => skills/orm-public-claimed-invite/SKILL.md (79%) rename sdk/constructive-react/src/public/orm/skills/commit.md => skills/orm-public-commit/SKILL.md (90%) rename sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md => skills/orm-public-confirm-delete-account/SKILL.md (71%) rename sdk/constructive-react/src/public/orm/skills/connectedAccount.md => skills/orm-public-connected-account/SKILL.md (80%) rename sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md => skills/orm-public-connected-accounts-module/SKILL.md (88%) rename sdk/constructive-react/src/public/orm/skills/createUserDatabase.md => skills/orm-public-create-user-database/SKILL.md (54%) rename sdk/constructive-react/src/public/orm/skills/cryptoAddress.md => skills/orm-public-crypto-address/SKILL.md (77%) rename sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md => skills/orm-public-crypto-addresses-module/SKILL.md (89%) rename sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md => skills/orm-public-crypto-auth-module/SKILL.md (92%) rename sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md => skills/orm-public-current-ip-address/SKILL.md (68%) rename sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md => skills/orm-public-current-user-agent/SKILL.md (68%) rename sdk/constructive-react/src/auth/orm/skills/currentUserId.md => skills/orm-public-current-user-id/SKILL.md (69%) rename sdk/constructive-react/src/public/orm/skills/currentUser.md => skills/orm-public-current-user/SKILL.md (70%) rename sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md => skills/orm-public-database-provision-module/SKILL.md (85%) rename sdk/constructive-react/src/public/orm/skills/database.md => skills/orm-public-database/SKILL.md (89%) rename sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md => skills/orm-public-default-ids-module/SKILL.md (87%) create mode 100644 skills/orm-public-default-privilege/SKILL.md rename sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md => skills/orm-public-denormalized-table-field/SKILL.md (90%) rename sdk/constructive-sdk/src/public/orm/skills/domain.md => skills/orm-public-domain/SKILL.md (81%) rename sdk/constructive-react/src/auth/orm/skills/email.md => skills/orm-public-email/SKILL.md (81%) rename sdk/constructive-sdk/src/public/orm/skills/emailsModule.md => skills/orm-public-emails-module/SKILL.md (90%) rename sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md => skills/orm-public-encrypted-secrets-module/SKILL.md (87%) rename sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md => skills/orm-public-extend-token-expires/SKILL.md (71%) rename sdk/constructive-sdk/src/public/orm/skills/fieldModule.md => skills/orm-public-field-module/SKILL.md (90%) rename sdk/constructive-sdk/src/public/orm/skills/field.md => skills/orm-public-field/SKILL.md (94%) rename sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md => skills/orm-public-foreign-key-constraint/SKILL.md (91%) rename sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md => skills/orm-public-forgot-password/SKILL.md (72%) rename sdk/constructive-react/src/objects/orm/skills/freezeObjects.md => skills/orm-public-freeze-objects/SKILL.md (72%) rename sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md => skills/orm-public-full-text-search/SKILL.md (89%) rename sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md => skills/orm-public-get-all-objects-from-root/SKILL.md (75%) rename sdk/constructive-react/src/public/orm/skills/getAllRecord.md => skills/orm-public-get-all-record/SKILL.md (87%) rename sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md => skills/orm-public-get-object-at-path/SKILL.md (77%) rename sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md => skills/orm-public-get-path-objects-from-root/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/hierarchyModule.md => skills/orm-public-hierarchy-module/SKILL.md (93%) rename sdk/constructive-sdk/src/public/orm/skills/index.md => skills/orm-public-index/SKILL.md (93%) rename sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md => skills/orm-public-init-empty-repo/SKILL.md (72%) rename sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md => skills/orm-public-insert-node-at-path/SKILL.md (71%) rename sdk/constructive-react/src/public/orm/skills/invite.md => skills/orm-public-invite/SKILL.md (80%) rename sdk/constructive-sdk/src/public/orm/skills/invitesModule.md => skills/orm-public-invites-module/SKILL.md (92%) rename sdk/constructive-react/src/public/orm/skills/levelsModule.md => skills/orm-public-levels-module/SKILL.md (94%) rename sdk/constructive-sdk/src/public/orm/skills/limitsModule.md => skills/orm-public-limits-module/SKILL.md (93%) rename sdk/constructive-sdk/src/admin/orm/skills/membershipType.md => skills/orm-public-membership-type/SKILL.md (76%) rename sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md => skills/orm-public-membership-types-module/SKILL.md (87%) rename sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md => skills/orm-public-memberships-module/SKILL.md (94%) rename sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md => skills/orm-public-node-type-registry/SKILL.md (83%) rename sdk/constructive-react/src/public/orm/skills/object.md => skills/orm-public-object/SKILL.md (90%) rename sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md => skills/orm-public-one-time-token/SKILL.md (72%) rename sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md => skills/orm-public-org-admin-grant/SKILL.md (82%) create mode 100644 skills/orm-public-org-chart-edge-grant/SKILL.md create mode 100644 skills/orm-public-org-chart-edge/SKILL.md rename sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md => skills/orm-public-org-claimed-invite/SKILL.md (80%) create mode 100644 skills/orm-public-org-get-managers-record/SKILL.md create mode 100644 skills/orm-public-org-get-subordinates-record/SKILL.md rename sdk/constructive-sdk/src/public/orm/skills/orgGrant.md => skills/orm-public-org-grant/SKILL.md (80%) rename sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md => skills/orm-public-org-invite/SKILL.md (81%) create mode 100644 skills/orm-public-org-is-manager-of/SKILL.md rename sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md => skills/orm-public-org-limit-default/SKILL.md (76%) rename sdk/constructive-sdk/src/public/orm/skills/orgLimit.md => skills/orm-public-org-limit/SKILL.md (81%) rename sdk/constructive-react/src/admin/orm/skills/orgMember.md => skills/orm-public-org-member/SKILL.md (76%) rename sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md => skills/orm-public-org-membership-default/SKILL.md (78%) rename sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md => skills/orm-public-org-membership/SKILL.md (71%) rename sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md => skills/orm-public-org-owner-grant/SKILL.md (82%) rename sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md => skills/orm-public-org-permission-default/SKILL.md (79%) rename sdk/constructive-react/src/public/orm/skills/orgPermission.md => skills/orm-public-org-permission/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md => skills/orm-public-org-permissions-get-by-mask/SKILL.md (73%) rename sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md => skills/orm-public-org-permissions-get-mask-by-names/SKILL.md (68%) rename sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md => skills/orm-public-org-permissions-get-mask/SKILL.md (70%) rename sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md => skills/orm-public-org-permissions-get-padded-mask/SKILL.md (68%) rename sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md => skills/orm-public-permissions-module/SKILL.md (92%) rename sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md => skills/orm-public-phone-number/SKILL.md (79%) rename sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md => skills/orm-public-phone-numbers-module/SKILL.md (89%) rename sdk/constructive-sdk/src/public/orm/skills/policy.md => skills/orm-public-policy/SKILL.md (57%) rename sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md => skills/orm-public-primary-key-constraint/SKILL.md (89%) rename sdk/constructive-sdk/src/public/orm/skills/profilesModule.md => skills/orm-public-profiles-module/SKILL.md (71%) rename sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md => skills/orm-public-provision-database-with-user/SKILL.md (69%) rename sdk/constructive-react/src/objects/orm/skills/ref.md => skills/orm-public-ref/SKILL.md (88%) create mode 100644 skills/orm-public-relation-provision/SKILL.md rename sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md => skills/orm-public-remove-node-at-path/SKILL.md (71%) rename sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md => skills/orm-public-reset-password/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/revParse.md => skills/orm-public-rev-parse/SKILL.md (78%) rename sdk/constructive-sdk/src/public/orm/skills/rlsModule.md => skills/orm-public-rls-module/SKILL.md (92%) rename sdk/constructive-react/src/auth/orm/skills/roleType.md => skills/orm-public-role-type/SKILL.md (88%) rename sdk/constructive-react/src/public/orm/skills/schemaGrant.md => skills/orm-public-schema-grant/SKILL.md (88%) rename sdk/constructive-sdk/src/public/orm/skills/schema.md => skills/orm-public-schema/SKILL.md (92%) rename sdk/constructive-sdk/src/public/orm/skills/secretsModule.md => skills/orm-public-secrets-module/SKILL.md (88%) create mode 100644 skills/orm-public-secure-table-provision/SKILL.md rename sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md => skills/orm-public-send-account-deletion-email/SKILL.md (69%) rename sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md => skills/orm-public-send-verification-email/SKILL.md (70%) rename sdk/constructive-react/src/public/orm/skills/sessionsModule.md => skills/orm-public-sessions-module/SKILL.md (91%) rename sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md => skills/orm-public-set-and-commit/SKILL.md (72%) rename sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md => skills/orm-public-set-data-at-path/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/setFieldOrder.md => skills/orm-public-set-field-order/SKILL.md (72%) rename sdk/constructive-sdk/src/auth/orm/skills/setPassword.md => skills/orm-public-set-password/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md => skills/orm-public-set-props-and-commit/SKILL.md (71%) rename sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md => skills/orm-public-sign-in-one-time-token/SKILL.md (70%) rename sdk/constructive-react/src/auth/orm/skills/signIn.md => skills/orm-public-sign-in/SKILL.md (74%) rename sdk/constructive-react/src/auth/orm/skills/signOut.md => skills/orm-public-sign-out/SKILL.md (74%) rename sdk/constructive-sdk/src/public/orm/skills/signUp.md => skills/orm-public-sign-up/SKILL.md (74%) rename sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md => skills/orm-public-site-metadatum/SKILL.md (79%) rename sdk/constructive-sdk/src/public/orm/skills/siteModule.md => skills/orm-public-site-module/SKILL.md (74%) rename sdk/constructive-react/src/public/orm/skills/siteTheme.md => skills/orm-public-site-theme/SKILL.md (77%) rename sdk/constructive-react/src/public/orm/skills/site.md => skills/orm-public-site/SKILL.md (80%) rename sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md => skills/orm-public-sql-migration/SKILL.md (90%) rename sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md => skills/orm-public-steps-achieved/SKILL.md (75%) rename sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md => skills/orm-public-steps-required/SKILL.md (76%) rename sdk/constructive-react/src/public/orm/skills/store.md => skills/orm-public-store/SKILL.md (86%) rename sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md => skills/orm-public-submit-invite-code/SKILL.md (71%) rename sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md => skills/orm-public-submit-org-invite-code/SKILL.md (70%) rename sdk/constructive-react/src/public/orm/skills/tableGrant.md => skills/orm-public-table-grant/SKILL.md (73%) rename sdk/constructive-sdk/src/public/orm/skills/tableModule.md => skills/orm-public-table-module/SKILL.md (59%) rename sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md => skills/orm-public-table-template-module/SKILL.md (89%) rename sdk/constructive-react/src/public/orm/skills/table.md => skills/orm-public-table/SKILL.md (93%) rename sdk/constructive-react/src/public/orm/skills/triggerFunction.md => skills/orm-public-trigger-function/SKILL.md (88%) rename sdk/constructive-react/src/public/orm/skills/trigger.md => skills/orm-public-trigger/SKILL.md (91%) rename sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md => skills/orm-public-unique-constraint/SKILL.md (90%) rename sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md => skills/orm-public-update-node-at-path/SKILL.md (71%) rename sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md => skills/orm-public-user-auth-module/SKILL.md (94%) rename sdk/constructive-sdk/src/auth/orm/skills/user.md => skills/orm-public-user/SKILL.md (91%) rename sdk/constructive-sdk/src/public/orm/skills/usersModule.md => skills/orm-public-users-module/SKILL.md (90%) rename sdk/constructive-react/src/public/orm/skills/uuidModule.md => skills/orm-public-uuid-module/SKILL.md (89%) rename sdk/constructive-react/src/public/orm/skills/verifyEmail.md => skills/orm-public-verify-email/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/verifyPassword.md => skills/orm-public-verify-password/SKILL.md (72%) rename sdk/constructive-react/src/public/orm/skills/verifyTotp.md => skills/orm-public-verify-totp/SKILL.md (73%) rename sdk/constructive-react/src/public/orm/skills/viewGrant.md => skills/orm-public-view-grant/SKILL.md (66%) rename sdk/constructive-sdk/src/public/orm/skills/viewRule.md => skills/orm-public-view-rule/SKILL.md (88%) rename sdk/constructive-react/src/public/orm/skills/viewTable.md => skills/orm-public-view-table/SKILL.md (86%) rename sdk/constructive-react/src/public/orm/skills/view.md => skills/orm-public-view/SKILL.md (93%) diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index b5c432743..39496581d 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 28 -- **Custom queries:** 10 +- **Tables:** 32 +- **Custom queries:** 11 - **Custom mutations:** 2 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index f73146cc4..3e0c146a3 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -32,148 +32,163 @@ function App() { | Hook | Type | Description | |------|------|-------------| -| `useAppPermissionsQuery` | Query | List all appPermissions | -| `useAppPermissionQuery` | Query | Get one appPermission | -| `useCreateAppPermissionMutation` | Mutation | Create a appPermission | -| `useUpdateAppPermissionMutation` | Mutation | Update a appPermission | -| `useDeleteAppPermissionMutation` | Mutation | Delete a appPermission | -| `useOrgPermissionsQuery` | Query | List all orgPermissions | -| `useOrgPermissionQuery` | Query | Get one orgPermission | -| `useCreateOrgPermissionMutation` | Mutation | Create a orgPermission | -| `useUpdateOrgPermissionMutation` | Mutation | Update a orgPermission | -| `useDeleteOrgPermissionMutation` | Mutation | Delete a orgPermission | -| `useAppLevelRequirementsQuery` | Query | Requirements to achieve a level | -| `useAppLevelRequirementQuery` | Query | Requirements to achieve a level | -| `useCreateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useUpdateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useDeleteAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useOrgMembersQuery` | Query | List all orgMembers | -| `useOrgMemberQuery` | Query | Get one orgMember | -| `useCreateOrgMemberMutation` | Mutation | Create a orgMember | -| `useUpdateOrgMemberMutation` | Mutation | Update a orgMember | -| `useDeleteOrgMemberMutation` | Mutation | Delete a orgMember | -| `useAppPermissionDefaultsQuery` | Query | List all appPermissionDefaults | -| `useAppPermissionDefaultQuery` | Query | Get one appPermissionDefault | -| `useCreateAppPermissionDefaultMutation` | Mutation | Create a appPermissionDefault | -| `useUpdateAppPermissionDefaultMutation` | Mutation | Update a appPermissionDefault | -| `useDeleteAppPermissionDefaultMutation` | Mutation | Delete a appPermissionDefault | -| `useOrgPermissionDefaultsQuery` | Query | List all orgPermissionDefaults | -| `useOrgPermissionDefaultQuery` | Query | Get one orgPermissionDefault | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Create a orgPermissionDefault | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Update a orgPermissionDefault | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Delete a orgPermissionDefault | -| `useAppAdminGrantsQuery` | Query | List all appAdminGrants | -| `useAppAdminGrantQuery` | Query | Get one appAdminGrant | -| `useCreateAppAdminGrantMutation` | Mutation | Create a appAdminGrant | -| `useUpdateAppAdminGrantMutation` | Mutation | Update a appAdminGrant | -| `useDeleteAppAdminGrantMutation` | Mutation | Delete a appAdminGrant | -| `useAppOwnerGrantsQuery` | Query | List all appOwnerGrants | -| `useAppOwnerGrantQuery` | Query | Get one appOwnerGrant | -| `useCreateAppOwnerGrantMutation` | Mutation | Create a appOwnerGrant | -| `useUpdateAppOwnerGrantMutation` | Mutation | Update a appOwnerGrant | -| `useDeleteAppOwnerGrantMutation` | Mutation | Delete a appOwnerGrant | -| `useAppLimitDefaultsQuery` | Query | List all appLimitDefaults | -| `useAppLimitDefaultQuery` | Query | Get one appLimitDefault | -| `useCreateAppLimitDefaultMutation` | Mutation | Create a appLimitDefault | -| `useUpdateAppLimitDefaultMutation` | Mutation | Update a appLimitDefault | -| `useDeleteAppLimitDefaultMutation` | Mutation | Delete a appLimitDefault | -| `useOrgLimitDefaultsQuery` | Query | List all orgLimitDefaults | -| `useOrgLimitDefaultQuery` | Query | Get one orgLimitDefault | -| `useCreateOrgLimitDefaultMutation` | Mutation | Create a orgLimitDefault | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Update a orgLimitDefault | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Delete a orgLimitDefault | -| `useOrgAdminGrantsQuery` | Query | List all orgAdminGrants | -| `useOrgAdminGrantQuery` | Query | Get one orgAdminGrant | -| `useCreateOrgAdminGrantMutation` | Mutation | Create a orgAdminGrant | -| `useUpdateOrgAdminGrantMutation` | Mutation | Update a orgAdminGrant | -| `useDeleteOrgAdminGrantMutation` | Mutation | Delete a orgAdminGrant | -| `useOrgOwnerGrantsQuery` | Query | List all orgOwnerGrants | -| `useOrgOwnerGrantQuery` | Query | Get one orgOwnerGrant | -| `useCreateOrgOwnerGrantMutation` | Mutation | Create a orgOwnerGrant | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Update a orgOwnerGrant | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Delete a orgOwnerGrant | -| `useMembershipTypesQuery` | Query | List all membershipTypes | -| `useMembershipTypeQuery` | Query | Get one membershipType | -| `useCreateMembershipTypeMutation` | Mutation | Create a membershipType | -| `useUpdateMembershipTypeMutation` | Mutation | Update a membershipType | -| `useDeleteMembershipTypeMutation` | Mutation | Delete a membershipType | -| `useAppLimitsQuery` | Query | List all appLimits | -| `useAppLimitQuery` | Query | Get one appLimit | -| `useCreateAppLimitMutation` | Mutation | Create a appLimit | -| `useUpdateAppLimitMutation` | Mutation | Update a appLimit | -| `useDeleteAppLimitMutation` | Mutation | Delete a appLimit | -| `useAppAchievementsQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useAppAchievementQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useCreateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useUpdateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useDeleteAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useAppStepsQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useAppStepQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useCreateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useUpdateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useDeleteAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useClaimedInvitesQuery` | Query | List all claimedInvites | -| `useClaimedInviteQuery` | Query | Get one claimedInvite | -| `useCreateClaimedInviteMutation` | Mutation | Create a claimedInvite | -| `useUpdateClaimedInviteMutation` | Mutation | Update a claimedInvite | -| `useDeleteClaimedInviteMutation` | Mutation | Delete a claimedInvite | -| `useAppGrantsQuery` | Query | List all appGrants | -| `useAppGrantQuery` | Query | Get one appGrant | -| `useCreateAppGrantMutation` | Mutation | Create a appGrant | -| `useUpdateAppGrantMutation` | Mutation | Update a appGrant | -| `useDeleteAppGrantMutation` | Mutation | Delete a appGrant | -| `useAppMembershipDefaultsQuery` | Query | List all appMembershipDefaults | -| `useAppMembershipDefaultQuery` | Query | Get one appMembershipDefault | -| `useCreateAppMembershipDefaultMutation` | Mutation | Create a appMembershipDefault | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Update a appMembershipDefault | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Delete a appMembershipDefault | -| `useOrgLimitsQuery` | Query | List all orgLimits | -| `useOrgLimitQuery` | Query | Get one orgLimit | -| `useCreateOrgLimitMutation` | Mutation | Create a orgLimit | -| `useUpdateOrgLimitMutation` | Mutation | Update a orgLimit | -| `useDeleteOrgLimitMutation` | Mutation | Delete a orgLimit | -| `useOrgClaimedInvitesQuery` | Query | List all orgClaimedInvites | -| `useOrgClaimedInviteQuery` | Query | Get one orgClaimedInvite | -| `useCreateOrgClaimedInviteMutation` | Mutation | Create a orgClaimedInvite | -| `useUpdateOrgClaimedInviteMutation` | Mutation | Update a orgClaimedInvite | -| `useDeleteOrgClaimedInviteMutation` | Mutation | Delete a orgClaimedInvite | -| `useOrgGrantsQuery` | Query | List all orgGrants | -| `useOrgGrantQuery` | Query | Get one orgGrant | -| `useCreateOrgGrantMutation` | Mutation | Create a orgGrant | -| `useUpdateOrgGrantMutation` | Mutation | Update a orgGrant | -| `useDeleteOrgGrantMutation` | Mutation | Delete a orgGrant | -| `useOrgMembershipDefaultsQuery` | Query | List all orgMembershipDefaults | -| `useOrgMembershipDefaultQuery` | Query | Get one orgMembershipDefault | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Create a orgMembershipDefault | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Update a orgMembershipDefault | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Delete a orgMembershipDefault | -| `useAppLevelsQuery` | Query | Levels for achievement | -| `useAppLevelQuery` | Query | Levels for achievement | -| `useCreateAppLevelMutation` | Mutation | Levels for achievement | -| `useUpdateAppLevelMutation` | Mutation | Levels for achievement | -| `useDeleteAppLevelMutation` | Mutation | Levels for achievement | -| `useInvitesQuery` | Query | List all invites | -| `useInviteQuery` | Query | Get one invite | -| `useCreateInviteMutation` | Mutation | Create a invite | -| `useUpdateInviteMutation` | Mutation | Update a invite | -| `useDeleteInviteMutation` | Mutation | Delete a invite | -| `useAppMembershipsQuery` | Query | List all appMemberships | -| `useAppMembershipQuery` | Query | Get one appMembership | -| `useCreateAppMembershipMutation` | Mutation | Create a appMembership | -| `useUpdateAppMembershipMutation` | Mutation | Update a appMembership | -| `useDeleteAppMembershipMutation` | Mutation | Delete a appMembership | -| `useOrgMembershipsQuery` | Query | List all orgMemberships | -| `useOrgMembershipQuery` | Query | Get one orgMembership | -| `useCreateOrgMembershipMutation` | Mutation | Create a orgMembership | -| `useUpdateOrgMembershipMutation` | Mutation | Update a orgMembership | -| `useDeleteOrgMembershipMutation` | Mutation | Delete a orgMembership | -| `useOrgInvitesQuery` | Query | List all orgInvites | -| `useOrgInviteQuery` | Query | Get one orgInvite | -| `useCreateOrgInviteMutation` | Mutation | Create a orgInvite | -| `useUpdateOrgInviteMutation` | Mutation | Update a orgInvite | -| `useDeleteOrgInviteMutation` | Mutation | Delete a orgInvite | +| `useOrgGetManagersQuery` | Query | List all orgGetManagers | +| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | +| `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | +| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | +| `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `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 | +| `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 | +| `useAppLevelRequirementsQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useAppLevelRequirementQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useCreateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useUpdateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useDeleteAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `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 | +| `useUpdateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useDeleteOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `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 | +| `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 | +| `useUpdateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useAppOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useAppOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useAppAchievementsQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppAchievementQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useCreateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useUpdateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useDeleteAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppStepsQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useAppStepQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useCreateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useUpdateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useDeleteAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `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 | +| `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 | +| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `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 | +| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | | `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | +| `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | | `useStepsAchievedQuery` | Query | stepsAchieved | | `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | | `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | @@ -187,6 +202,36 @@ function App() { ## Table Hooks +### OrgGetManagersRecord + +```typescript +// List all orgGetManagers +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetManagersRecord +const { mutate: create } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + +### OrgGetSubordinatesRecord + +```typescript +// List all orgGetSubordinates +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetSubordinatesRecord +const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + ### AppPermission ```typescript @@ -355,88 +400,88 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ isGrant: '', actorId: '', grantorId: '' }); ``` -### AppLimitDefault +### OrgAdminGrant ```typescript -// List all appLimitDefaults -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all orgAdminGrants +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one appLimitDefault -const { data: item } = useAppLimitDefaultQuery({ +// Get one orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a appLimitDefault -const { mutate: create } = useCreateAppLimitDefaultMutation({ +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgLimitDefault +### OrgOwnerGrant ```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all orgOwnerGrants +const { data, isLoading } = useOrgOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ +// Get one orgOwnerGrant +const { data: item } = useOrgOwnerGrantQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ +// Create a orgOwnerGrant +const { mutate: create } = useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgAdminGrant +### AppLimitDefault ```typescript -// List all orgAdminGrants -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgAdminGrant -const { data: item } = useOrgAdminGrantQuery({ +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgAdminGrant -const { mutate: create } = useCreateOrgAdminGrantMutation({ +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', max: '' }); ``` -### OrgOwnerGrant +### OrgLimitDefault ```typescript -// List all orgOwnerGrants -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgOwnerGrant -const { data: item } = useOrgOwnerGrantQuery({ +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgOwnerGrant -const { mutate: create } = useCreateOrgOwnerGrantMutation({ +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', max: '' }); ``` ### MembershipType @@ -460,6 +505,27 @@ const { mutate: create } = useCreateMembershipTypeMutation({ create({ name: '', description: '', prefix: '' }); ``` +### OrgChartEdgeGrant + +```typescript +// List all orgChartEdgeGrants +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Get one orgChartEdgeGrant +const { data: item } = useOrgChartEdgeGrantQuery({ + id: '', + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Create a orgChartEdgeGrant +const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` + ### AppLimit ```typescript @@ -649,46 +715,46 @@ const { mutate: create } = useCreateOrgGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgMembershipDefault +### OrgChartEdge ```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, +// List all orgChartEdges +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ +// Get one orgChartEdge +const { data: item } = useOrgChartEdgeQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` -### AppLevel +### OrgMembershipDefault ```typescript -// List all appLevels -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, }); -// Get one appLevel -const { data: item } = useAppLevelQuery({ +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, }); -// Create a appLevel -const { mutate: create } = useCreateAppLevelMutation({ +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', image: '', ownerId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); ``` ### Invite @@ -712,25 +778,46 @@ const { mutate: create } = useCreateInviteMutation({ create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); ``` +### AppLevel + +```typescript +// List all appLevels +const { data, isLoading } = useAppLevelsQuery({ + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appLevel +const { data: item } = useAppLevelQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appLevel +const { mutate: create } = useCreateAppLevelMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', description: '', image: '', ownerId: '' }); +``` + ### AppMembership ```typescript // List all appMemberships const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Get one appMembership const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Create a appMembership const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### OrgMembership @@ -738,20 +825,20 @@ create({ createdBy: '', updatedBy: '', isApproved: '', isBa ```typescript // List all orgMemberships const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Get one orgMembership const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Create a orgMembership const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` ### OrgInvite @@ -799,6 +886,20 @@ orgPermissionsGetPaddedMask |----------|------| | `mask` | BitString | +### `useOrgIsManagerOfQuery` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + ### `useStepsAchievedQuery` stepsAchieved diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index 25c7a8f3f..6a8186143 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: AppPermission, OrgPermission, AppLevelRequirement, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, AppLimitDefault, OrgLimitDefault, OrgAdminGrant, OrgOwnerGrant, MembershipType, AppLimit, AppAchievement, AppStep, ClaimedInvite, AppGrant, AppMembershipDefault, OrgLimit, OrgClaimedInvite, OrgGrant, OrgMembershipDefault, AppLevel, Invite, AppMembership, OrgMembership, OrgInvite + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLevelRequirement, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgAdminGrant, OrgOwnerGrant, AppLimitDefault, OrgLimitDefault, MembershipType, OrgChartEdgeGrant, AppLimit, AppAchievement, AppStep, ClaimedInvite, AppGrant, AppMembershipDefault, OrgLimit, OrgClaimedInvite, OrgGrant, OrgChartEdge, OrgMembershipDefault, Invite, AppLevel, AppMembership, OrgMembership, OrgInvite * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index 5358dc6b0..4566d1c2e 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -15,6 +15,8 @@ import type { QueryClient } from '@tanstack/react-query'; import { + orgGetManagersRecordKeys, + orgGetSubordinatesRecordKeys, appPermissionKeys, orgPermissionKeys, appLevelRequirementKeys, @@ -23,11 +25,12 @@ import { orgPermissionDefaultKeys, appAdminGrantKeys, appOwnerGrantKeys, - appLimitDefaultKeys, - orgLimitDefaultKeys, orgAdminGrantKeys, orgOwnerGrantKeys, + appLimitDefaultKeys, + orgLimitDefaultKeys, membershipTypeKeys, + orgChartEdgeGrantKeys, appLimitKeys, appAchievementKeys, appStepKeys, @@ -37,9 +40,10 @@ import { orgLimitKeys, orgClaimedInviteKeys, orgGrantKeys, + orgChartEdgeKeys, orgMembershipDefaultKeys, - appLevelKeys, inviteKeys, + appLevelKeys, appMembershipKeys, orgMembershipKeys, orgInviteKeys, @@ -64,6 +68,40 @@ import { * ``` */ export const invalidate = { + /** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: { + /** Invalidate all orgGetManagersRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.all, + }), + /** Invalidate orgGetManagersRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }), + /** Invalidate a specific orgGetManagersRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }), + }, + /** Invalidate orgGetSubordinatesRecord queries */ orgGetSubordinatesRecord: { + /** Invalidate all orgGetSubordinatesRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.all, + }), + /** Invalidate orgGetSubordinatesRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }), + /** Invalidate a specific orgGetSubordinatesRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }), + }, /** Invalidate appPermission queries */ appPermission: { /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -200,72 +238,72 @@ export const invalidate = { queryKey: appOwnerGrantKeys.detail(id), }), }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.all, + queryKey: orgAdminGrantKeys.all, }), - /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), + queryKey: orgAdminGrantKeys.lists(), }), - /** Invalidate a specific appLimitDefault */ detail: ( + /** Invalidate a specific orgAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }), }, - /** Invalidate orgLimitDefault queries */ orgLimitDefault: { - /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { + /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.all, + queryKey: orgOwnerGrantKeys.all, }), - /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), + queryKey: orgOwnerGrantKeys.lists(), }), - /** Invalidate a specific orgLimitDefault */ detail: ( + /** Invalidate a specific orgOwnerGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: orgOwnerGrantKeys.detail(id), }), }, - /** Invalidate orgAdminGrant queries */ orgAdminGrant: { - /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.all, + queryKey: appLimitDefaultKeys.all, }), - /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), + queryKey: appLimitDefaultKeys.lists(), }), - /** Invalidate a specific orgAdminGrant */ detail: ( + /** Invalidate a specific appLimitDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }), }, - /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { - /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitDefault queries */ orgLimitDefault: { + /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.all, + queryKey: orgLimitDefaultKeys.all, }), - /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), + queryKey: orgLimitDefaultKeys.lists(), }), - /** Invalidate a specific orgOwnerGrant */ detail: ( + /** Invalidate a specific orgLimitDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }), }, /** Invalidate membershipType queries */ membershipType: { @@ -285,6 +323,23 @@ export const invalidate = { queryKey: membershipTypeKeys.detail(id), }), }, + /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { + /** Invalidate all orgChartEdgeGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.all, + }), + /** Invalidate orgChartEdgeGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }), + /** Invalidate a specific orgChartEdgeGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }), + }, /** Invalidate appLimit queries */ appLimit: { /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -423,35 +478,38 @@ export const invalidate = { queryKey: orgGrantKeys.detail(id), }), }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, + queryKey: orgChartEdgeKeys.all, }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), + queryKey: orgChartEdgeKeys.lists(), }), - /** Invalidate a specific orgMembershipDefault */ detail: ( + /** Invalidate a specific orgChartEdge */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }), }, - /** Invalidate appLevel queries */ appLevel: { - /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLevelKeys.all, + queryKey: orgMembershipDefaultKeys.all, }), - /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), + queryKey: orgMembershipDefaultKeys.lists(), }), - /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: appLevelKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }), }, /** Invalidate invite queries */ invite: { @@ -468,6 +526,20 @@ export const invalidate = { queryKey: inviteKeys.detail(id), }), }, + /** Invalidate appLevel queries */ appLevel: { + /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.all, + }), + /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }), + /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.detail(id), + }), + }, /** Invalidate appMembership queries */ appMembership: { /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -532,6 +604,22 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }); + }, + /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }); + }, /** Remove appPermission from cache */ appPermission: ( queryClient: QueryClient, id: string | number @@ -593,36 +681,36 @@ export const remove = { queryKey: appOwnerGrantKeys.detail(id), }); }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }); }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( + /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }); }, - /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgOwnerGrantKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }); }, /** Remove membershipType from cache */ membershipType: ( @@ -633,6 +721,14 @@ export const remove = { queryKey: membershipTypeKeys.detail(id), }); }, + /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }); + }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: appLimitKeys.detail(id), @@ -690,17 +786,20 @@ export const remove = { queryKey: orgGrantKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + /** Remove orgChartEdge from cache */ orgChartEdge: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }); }, - /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: appLevelKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, /** Remove invite from cache */ invite: (queryClient: QueryClient, id: string | number) => { @@ -708,6 +807,11 @@ export const remove = { queryKey: inviteKeys.detail(id), }); }, + /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(id), + }); + }, /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts index 788ebfd51..ca6c828f5 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -18,6 +18,27 @@ // Entity Mutation Keys // ============================================================================ +export const orgGetManagersRecordMutationKeys = { + /** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'] as const, + /** Create orgGetManagersRecord mutation key */ create: () => + ['mutation', 'orggetmanagersrecord', 'create'] as const, + /** Update orgGetManagersRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'update', id] as const, + /** Delete orgGetManagersRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'delete', id] as const, +} as const; +export const orgGetSubordinatesRecordMutationKeys = { + /** All orgGetSubordinatesRecord mutation keys */ all: [ + 'mutation', + 'orggetsubordinatesrecord', + ] as const, + /** Create orgGetSubordinatesRecord mutation key */ create: () => + ['mutation', 'orggetsubordinatesrecord', 'create'] as const, + /** Update orgGetSubordinatesRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'update', id] as const, + /** Delete orgGetSubordinatesRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'delete', id] as const, +} as const; export const appPermissionMutationKeys = { /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, /** Create appPermission mutation key */ create: () => @@ -89,24 +110,6 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; -export const appLimitDefaultMutationKeys = { - /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, - /** Create appLimitDefault mutation key */ create: () => - ['mutation', 'applimitdefault', 'create'] as const, - /** Update appLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitdefault', 'update', id] as const, - /** Delete appLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitdefault', 'delete', id] as const, -} as const; -export const orgLimitDefaultMutationKeys = { - /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, - /** Create orgLimitDefault mutation key */ create: () => - ['mutation', 'orglimitdefault', 'create'] as const, - /** Update orgLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitdefault', 'update', id] as const, - /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitdefault', 'delete', id] as const, -} as const; export const orgAdminGrantMutationKeys = { /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, /** Create orgAdminGrant mutation key */ create: () => @@ -125,6 +128,24 @@ export const orgOwnerGrantMutationKeys = { /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgownergrant', 'delete', id] as const, } as const; +export const appLimitDefaultMutationKeys = { + /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, + /** Create appLimitDefault mutation key */ create: () => + ['mutation', 'applimitdefault', 'create'] as const, + /** Update appLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'applimitdefault', 'update', id] as const, + /** Delete appLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'applimitdefault', 'delete', id] as const, +} as const; +export const orgLimitDefaultMutationKeys = { + /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, + /** Create orgLimitDefault mutation key */ create: () => + ['mutation', 'orglimitdefault', 'create'] as const, + /** Update orgLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'orglimitdefault', 'update', id] as const, + /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitdefault', 'delete', id] as const, +} as const; export const membershipTypeMutationKeys = { /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, /** Create membershipType mutation key */ create: () => @@ -134,6 +155,15 @@ export const membershipTypeMutationKeys = { /** Delete membershipType mutation key */ delete: (id: string | number) => ['mutation', 'membershiptype', 'delete', id] as const, } as const; +export const orgChartEdgeGrantMutationKeys = { + /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, + /** Create orgChartEdgeGrant mutation key */ create: () => + ['mutation', 'orgchartedgegrant', 'create'] as const, + /** Update orgChartEdgeGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'update', id] as const, + /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'delete', id] as const, +} as const; export const appLimitMutationKeys = { /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, @@ -210,6 +240,15 @@ export const orgGrantMutationKeys = { /** Delete orgGrant mutation key */ delete: (id: string | number) => ['mutation', 'orggrant', 'delete', id] as const, } as const; +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, +} as const; export const orgMembershipDefaultMutationKeys = { /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, /** Create orgMembershipDefault mutation key */ create: () => @@ -219,14 +258,6 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const appLevelMutationKeys = { - /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, - /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, - /** Update appLevel mutation key */ update: (id: string | number) => - ['mutation', 'applevel', 'update', id] as const, - /** Delete appLevel mutation key */ delete: (id: string | number) => - ['mutation', 'applevel', 'delete', id] as const, -} as const; export const inviteMutationKeys = { /** All invite mutation keys */ all: ['mutation', 'invite'] as const, /** Create invite mutation key */ create: () => ['mutation', 'invite', 'create'] as const, @@ -235,6 +266,14 @@ export const inviteMutationKeys = { /** Delete invite mutation key */ delete: (id: string | number) => ['mutation', 'invite', 'delete', id] as const, } as const; +export const appLevelMutationKeys = { + /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, + /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, + /** Update appLevel mutation key */ update: (id: string | number) => + ['mutation', 'applevel', 'update', id] as const, + /** Delete appLevel mutation key */ delete: (id: string | number) => + ['mutation', 'applevel', 'delete', id] as const, +} as const; export const appMembershipMutationKeys = { /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, /** Create appMembership mutation key */ create: () => @@ -299,6 +338,8 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + orgGetManagersRecord: orgGetManagersRecordMutationKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, appLevelRequirement: appLevelRequirementMutationKeys, @@ -307,11 +348,12 @@ export const mutationKeys = { orgPermissionDefault: orgPermissionDefaultMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, - appLimitDefault: appLimitDefaultMutationKeys, - orgLimitDefault: orgLimitDefaultMutationKeys, orgAdminGrant: orgAdminGrantMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, + appLimitDefault: appLimitDefaultMutationKeys, + orgLimitDefault: orgLimitDefaultMutationKeys, membershipType: membershipTypeMutationKeys, + orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appLimit: appLimitMutationKeys, appAchievement: appAchievementMutationKeys, appStep: appStepMutationKeys, @@ -321,9 +363,10 @@ export const mutationKeys = { orgLimit: orgLimitMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, orgGrant: orgGrantMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, - appLevel: appLevelMutationKeys, invite: inviteMutationKeys, + appLevel: appLevelMutationKeys, appMembership: appMembershipMutationKeys, orgMembership: orgMembershipMutationKeys, orgInvite: orgInviteMutationKeys, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 0f9e610e3..ed7b372ed 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateOrgGetManagersRecordMutation'; +export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; export * from './useDeleteAppPermissionMutation'; @@ -27,21 +29,24 @@ export * from './useDeleteAppAdminGrantMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateAppLimitDefaultMutation'; -export * from './useUpdateAppLimitDefaultMutation'; -export * from './useDeleteAppLimitDefaultMutation'; -export * from './useCreateOrgLimitDefaultMutation'; -export * from './useUpdateOrgLimitDefaultMutation'; -export * from './useDeleteOrgLimitDefaultMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; export * from './useCreateOrgOwnerGrantMutation'; export * from './useUpdateOrgOwnerGrantMutation'; export * from './useDeleteOrgOwnerGrantMutation'; +export * from './useCreateAppLimitDefaultMutation'; +export * from './useUpdateAppLimitDefaultMutation'; +export * from './useDeleteAppLimitDefaultMutation'; +export * from './useCreateOrgLimitDefaultMutation'; +export * from './useUpdateOrgLimitDefaultMutation'; +export * from './useDeleteOrgLimitDefaultMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateOrgChartEdgeGrantMutation'; +export * from './useUpdateOrgChartEdgeGrantMutation'; +export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppLimitMutation'; export * from './useUpdateAppLimitMutation'; export * from './useDeleteAppLimitMutation'; @@ -69,15 +74,18 @@ export * from './useDeleteOrgClaimedInviteMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateOrgMembershipDefaultMutation'; export * from './useUpdateOrgMembershipDefaultMutation'; export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateAppLevelMutation'; -export * from './useUpdateAppLevelMutation'; -export * from './useDeleteAppLevelMutation'; export * from './useCreateInviteMutation'; export * from './useUpdateInviteMutation'; export * from './useDeleteInviteMutation'; +export * from './useCreateAppLevelMutation'; +export * from './useUpdateAppLevelMutation'; +export * from './useDeleteAppLevelMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts index 769f9a739..3e32e7437 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAchievementInput, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts index 7dd44401e..3c9af35db 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts index 0e2e4c286..c3ae518e1 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts index ba7c1fd68..fe81072d0 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelInput, } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts index 08cd438f8..792b9fc9f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelRequirementInput, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts index 40b24b14d..5e39d5c93 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts index b7f7072be..4831101f2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts index 0a4ecf4bc..cc66d20ab 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts index fa08b65df..e991ed8fd 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts index 81f12be36..3f5a3413d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts index 1f2314266..1246a1892 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts index 73d4eceec..c76e9081a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts index 1e521eeaf..98022f147 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppStepInput, } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts index a84eca95c..1d73744e6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts index 928d4f0cd..9ee97b57b 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts index d8219655f..91c696e68 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateMembershipTypeInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts index 00687d7da..1f160dd1d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..2b4124103 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,91 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] +>; +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']) => + getClient() + .orgChartEdgeGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e5562dc1f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts @@ -0,0 +1,88 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] +>; +export function useCreateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeInput['orgChartEdge']) => + getClient() + .orgChartEdge.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts index 4ee4b71c3..f08114d37 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts new file mode 100644 index 000000000..949ce4104 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetManagersRecord + * @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 { orgGetManagersRecordKeys } from '../query-keys'; +import { orgGetManagersRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetManagersRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: { + fields: S & OrgGetManagersRecordSelect; + } & HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] +>; +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetManagersRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetManagersRecordInput['orgGetManagersRecord']) => + getClient() + .orgGetManagersRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts new file mode 100644 index 000000000..237f47a7e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetSubordinatesRecord + * @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 { orgGetSubordinatesRecordKeys } from '../query-keys'; +import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetSubordinatesRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: { + fields: S & OrgGetSubordinatesRecordSelect; + } & HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] +>; +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetSubordinatesRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']) => + getClient() + .orgGetSubordinatesRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts index 391138997..7dc4d3025 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts index 6d65fa995..a81a94a9d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts index af559e6a2..42e50f62d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts index 33ed2f69e..d284edca9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts index 73bbfce52..14c7550f5 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMemberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts index 9c1290cfb..b043e29d7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts index e2b7c7e9b..84633ad1d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts index 9cec71f7f..974ac3430 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts index da1688a0f..187051476 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts index b1fd9fd3b..8c597cb08 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts index cbcdae607..0e5f05546 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAchievementSelect, AppAchievementWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts index 83efe201c..1962f80e9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts index 2dcc61484..16814431f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts index ae1a69ddd..cbef84ab8 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts index 624b78188..6784e56dc 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppLevelRequirementWithRelations, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts index 3d8cec160..d248f2be2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts index 9b3ebc52e..42ca8b532 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts index bd2d8e77b..c01ff2054 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts index 270821ab2..03a601e74 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts index 037ca9d28..836d241e1 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts index 1c350f3fb..a9b23c747 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts index 327b4a107..b50268261 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts index 9144c5c0a..7e2de1198 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts index 2c3709bd0..0a19b3fc7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts index bf9850ba6..7d0bc59be 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Invite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts index dbec0d9e9..71e81ffa9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a MembershipType with typed selection + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts index b2b62e271..dfd89d90e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..42b7b9e25 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts @@ -0,0 +1,104 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeGrantMutation( + 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: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdgeGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts similarity index 53% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts index 080000ba9..3aad832ca 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Procedure + * Organizational chart edges defining parent-child reporting relationships between members within an entity * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,33 +9,33 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Procedure with typed selection + * Organizational chart edges defining parent-child reporting relationships between members within an entity * * @example * ```tsx - * const { mutate, isPending } = useDeleteProcedureMutation({ + * const { mutate, isPending } = useDeleteOrgChartEdgeMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteProcedureMutation( +export function useDeleteOrgChartEdgeMutation( params: { selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; } & Omit< UseMutationOptions< { - deleteProcedure: { - procedure: InferSelectResult; + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteProcedureMutation( > ): UseMutationResult< { - deleteProcedure: { - procedure: InferSelectResult; + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteProcedureMutation( id: string; } >; -export function useDeleteProcedureMutation( +export function useDeleteOrgChartEdgeMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteProcedureMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: procedureMutationKeys.all, + mutationKey: orgChartEdgeMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .procedure.delete({ + .orgChartEdge.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteProcedureMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: procedureKeys.detail(variables.id), + queryKey: orgChartEdgeKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), + queryKey: orgChartEdgeKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts index 267b1abfe..ecc7fc630 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts index 94b80fa12..3a1d1d967 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts index 2960aeac6..34ba21236 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgInvite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts index a8e7bf162..b7614b66f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts index 818a3b294..340ecce1f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts index 9c7697147..ed6a25761 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMember with typed selection + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts index e5c398c57..50fd07636 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts index 5108e73b9..62654c7ee 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts index 4700e63cd..834c27ca6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts index 841805104..a811eca53 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts index 0792b5be9..1c02a813a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts index 837badc1b..ad055ea07 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAchievementPatch, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts index 9f97a4a26..a41e1b8b9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts index fe323065c..d0cb6ba8f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts index fbb3cc7b5..726bcffe8 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts index 07c816a74..01e6132c3 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLevelRequirementPatch, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts index e4bf58682..d5402ef93 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts index 673e80850..5f606dc73 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts index c2d03af41..72d872f42 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts index 21a8572d7..7ead9bdc2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts index ec1d11eb5..7db485406 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts index 9413e7ad3..9933bb8eb 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts index 73effb82a..0b42bacb2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts index a34404554..ed0cf895e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts index 45ccdc49a..b1d1cecf9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts index 819636de6..3c499b09e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts index caee90ff0..36101d2c0 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { MembershipTypePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts index 41f8e6380..a33b9997e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..151d9fa11 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgeGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } +>; +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ + id, + orgChartEdgeGrantPatch, + }: { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + }) => + getClient() + .orgChartEdgeGrant.update({ + where: { + id, + }, + data: orgChartEdgeGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e169ad09a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts @@ -0,0 +1,110 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } +>; +export function useUpdateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.all, + mutationFn: ({ id, orgChartEdgePatch }: { id: string; orgChartEdgePatch: OrgChartEdgePatch }) => + getClient() + .orgChartEdge.update({ + where: { + id, + }, + data: orgChartEdgePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts index 8b2a21d55..536c3ba76 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts index fc612cf93..50e725580 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts index 5093adbfc..deae91a03 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts index 9226eadb8..c80fc084e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts index cd8f3baed..b911eef59 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts index 42f54bfc7..9afc577fb 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMemberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts index 06b97181c..4536a0d0f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts index 5a8998fb2..af8939d5e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts index f1704e8be..3bd0c3ac2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts index b512499d2..b53a85a67 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts index 69be765f0..2704a2545 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts index 8ae463934..fa333443c 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useOrgGetManagersQuery'; +export * from './useOrgGetSubordinatesQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; export * from './useOrgPermissionsQuery'; @@ -19,16 +21,18 @@ export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; -export * from './useAppLimitDefaultsQuery'; -export * from './useAppLimitDefaultQuery'; -export * from './useOrgLimitDefaultsQuery'; -export * from './useOrgLimitDefaultQuery'; export * from './useOrgAdminGrantsQuery'; export * from './useOrgAdminGrantQuery'; export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; +export * from './useAppLimitDefaultsQuery'; +export * from './useAppLimitDefaultQuery'; +export * from './useOrgLimitDefaultsQuery'; +export * from './useOrgLimitDefaultQuery'; export * from './useMembershipTypesQuery'; export * from './useMembershipTypeQuery'; +export * from './useOrgChartEdgeGrantsQuery'; +export * from './useOrgChartEdgeGrantQuery'; export * from './useAppLimitsQuery'; export * from './useAppLimitQuery'; export * from './useAppAchievementsQuery'; @@ -47,12 +51,14 @@ export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; -export * from './useAppLevelsQuery'; -export * from './useAppLevelQuery'; export * from './useInvitesQuery'; export * from './useInviteQuery'; +export * from './useAppLevelsQuery'; +export * from './useAppLevelQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; export * from './useOrgMembershipsQuery'; @@ -61,6 +67,7 @@ export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgPermissionsGetPaddedMaskQuery'; +export * from './useOrgIsManagerOfQuery'; export * from './useStepsAchievedQuery'; export * from './useAppPermissionsGetMaskQuery'; export * from './useOrgPermissionsGetMaskQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts index df345dff7..c7750c259 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAchievementSelect, AppAchievementWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const appAchievementQueryKey = appAchievementKeys.detail; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAchievementQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAchievementQuery(params: { .unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts index da6cdc397..d2b39ab84 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAchievementsQueryKey = appAchievementKeys.list; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppAchievementsQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchAppAchievementsQuery(params: { return getClient().appAchievement.findMany(args).unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts index d010f7876..dab440873 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantQueryKey = appAdminGrantKeys.detail; /** - * Query hook for fetching a single AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAdminGrantQuery( }); } /** - * Fetch a single AppAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts index eb47436de..c41e3bfcf 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantsQueryKey = appAdminGrantKeys.list; /** - * Query hook for fetching AppAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppAdminGrantsQuery( }); } /** - * Fetch AppAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppAdminGrantsQuery(params: { return getClient().appAdminGrant.findMany(args).unwrap(); } /** - * Prefetch AppAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts index a730510c7..41777becd 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appGrantQueryKey = appGrantKeys.detail; /** - * Query hook for fetching a single AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppGrantQuery( }); } /** - * Fetch a single AppGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts index cf20fe3c6..de0684b89 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appGrantsQueryKey = appGrantKeys.list; /** - * Query hook for fetching AppGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppGrantsQuery( }); } /** - * Fetch AppGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppGrantsQuery(params: { return getClient().appGrant.findMany(args).unwrap(); } /** - * Prefetch AppGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts index 6d494bc93..2d947f33f 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLevelQueryKey = appLevelKeys.detail; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLevelQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLevelQuery(params: { .unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts index 1735a08d4..c446092be 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLevelRequirementQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLevelRequirementQuery(params: { .unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts index 502b029db..7dd162330 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLevelRequirementsQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchAppLevelRequirementsQuery(params: { return getClient().appLevelRequirement.findMany(args).unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts index b576855c9..4e237d953 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelsQueryKey = appLevelKeys.list; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLevelsQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLevelsQuery(params: { return getClient().appLevel.findMany(args).unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts index c68c8c7ca..3f9e92b4c 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; /** - * Query hook for fetching a single AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitDefaultQuery( }); } /** - * Fetch a single AppLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts index 8f702ecb1..25eb72182 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; /** - * Query hook for fetching AppLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppLimitDefaultsQuery( }); } /** - * Fetch AppLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchAppLimitDefaultsQuery(params: { return getClient().appLimitDefault.findMany(args).unwrap(); } /** - * Prefetch AppLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts index eb7beb27f..92f7ca2ab 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLimitQueryKey = appLimitKeys.detail; /** - * Query hook for fetching a single AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitQuery( }); } /** - * Fetch a single AppLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts index 280fd25e8..fc868ff90 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitsQueryKey = appLimitKeys.list; /** - * Query hook for fetching AppLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLimitsQuery( }); } /** - * Fetch AppLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLimitsQuery(params: { return getClient().appLimit.findMany(args).unwrap(); } /** - * Prefetch AppLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts index b34f50fc2..7cf34e91a 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; /** - * Query hook for fetching a single AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppMembershipDefaultQuery( }); } /** - * Fetch a single AppMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts index bda74e8ba..a3722e798 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; /** - * Query hook for fetching AppMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppMembershipDefaultsQuery( }); } /** - * Fetch AppMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppMembershipDefaultsQuery(params: { return getClient().appMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch AppMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts index 5cd832890..47a401be2 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appMembershipQueryKey = appMembershipKeys.detail; /** - * Query hook for fetching a single AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppMembershipQuery( }); } /** - * Fetch a single AppMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts index 714e4372b..4a7406a96 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipsQueryKey = appMembershipKeys.list; /** - * Query hook for fetching AppMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppMembershipsQuery( }); } /** - * Fetch AppMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppMembershipsQuery(params: { return getClient().appMembership.findMany(args).unwrap(); } /** - * Prefetch AppMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts index 49fcb6506..98a75b276 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; /** - * Query hook for fetching a single AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppOwnerGrantQuery( }); } /** - * Fetch a single AppOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts index 25a312bcc..3cd73b539 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; /** - * Query hook for fetching AppOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppOwnerGrantsQuery( }); } /** - * Fetch AppOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppOwnerGrantsQuery(params: { return getClient().appOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch AppOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts index 47eb66e64..27e973c84 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; /** - * Query hook for fetching a single AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppPermissionDefaultQuery( }); } /** - * Fetch a single AppPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts index 21414a9fb..44cdda731 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; /** - * Query hook for fetching AppPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppPermissionDefaultsQuery( }); } /** - * Fetch AppPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppPermissionDefaultsQuery(params: { return getClient().appPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch AppPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts index 37a00c5e9..a71c93422 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appPermissionQueryKey = appPermissionKeys.detail; /** - * Query hook for fetching a single AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppPermissionQuery( }); } /** - * Fetch a single AppPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts index f44f4e105..67d25dcdc 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionsQueryKey = appPermissionKeys.list; /** - * Query hook for fetching AppPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppPermissionsQuery( }); } /** - * Fetch AppPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppPermissionsQuery(params: { return getClient().appPermission.findMany(args).unwrap(); } /** - * Prefetch AppPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts index d6d579aef..5d3ebbbd0 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' /** Query key factory - re-exported from query-keys.ts */ export const appStepQueryKey = appStepKeys.detail; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppStepQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppStepQuery(params: { .unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts index 9a4ec77c5..a20c454ec 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appStepsQueryKey = appStepKeys.list; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppStepsQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppStepsQuery(params: { return getClient().appStep.findMany(args).unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts index e74f389c7..e028debb3 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const claimedInviteQueryKey = claimedInviteKeys.detail; /** - * Query hook for fetching a single ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useClaimedInviteQuery( }); } /** - * Fetch a single ClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single ClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts index 9373984d9..55ef8c00b 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const claimedInvitesQueryKey = claimedInviteKeys.list; /** - * Query hook for fetching ClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -86,7 +86,7 @@ export function useClaimedInvitesQuery( }); } /** - * Fetch ClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchClaimedInvitesQuery(params: { return getClient().claimedInvite.findMany(args).unwrap(); } /** - * Prefetch ClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts index 51db01afb..7dc699235 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const inviteQueryKey = inviteKeys.detail; /** - * Query hook for fetching a single Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useInviteQuery( }); } /** - * Fetch a single Invite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchInviteQuery(params: { .unwrap(); } /** - * Prefetch a single Invite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts index 19a1fd3b1..873e55aa5 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const invitesQueryKey = inviteKeys.list; /** - * Query hook for fetching Invite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -82,7 +82,7 @@ export function useInvitesQuery( }); } /** - * Fetch Invite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchInvitesQuery(params: { return getClient().invite.findMany(args).unwrap(); } /** - * Prefetch Invite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts index c8d749048..71fdd8b77 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const membershipTypeQueryKey = membershipTypeKeys.detail; /** - * Query hook for fetching a single MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useMembershipTypeQuery( }); } /** - * Fetch a single MembershipType without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchMembershipTypeQuery(params: { .unwrap(); } /** - * Prefetch a single MembershipType for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts index c0f5b68c9..c148bab02 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const membershipTypesQueryKey = membershipTypeKeys.list; /** - * Query hook for fetching MembershipType list + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -90,7 +90,7 @@ export function useMembershipTypesQuery( }); } /** - * Fetch MembershipType list without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchMembershipTypesQuery(params: { return getClient().membershipType.findMany(args).unwrap(); } /** - * Prefetch MembershipType list for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts index a4f507c14..04901b7da 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; /** - * Query hook for fetching a single OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgAdminGrantQuery( }); } /** - * Fetch a single OrgAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts index e3ce559b3..b79b6cfdd 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; /** - * Query hook for fetching OrgAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgAdminGrantsQuery( }); } /** - * Fetch OrgAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgAdminGrantsQuery(params: { return getClient().orgAdminGrant.findMany(args).unwrap(); } /** - * Prefetch OrgAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts new file mode 100644 index 000000000..576725d54 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts @@ -0,0 +1,144 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantQueryKey = orgChartEdgeGrantKeys.detail; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrant: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts new file mode 100644 index 000000000..8f4c33b08 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts @@ -0,0 +1,163 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantsQueryKey = orgChartEdgeGrantKeys.list; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantsQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantsQuery( + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrants: ConnectionResult>; +}>; +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + return getClient().orgChartEdgeGrant.findMany(args).unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts new file mode 100644 index 000000000..9087f1620 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts @@ -0,0 +1,138 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeQueryKey = orgChartEdgeKeys.detail; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdge: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdge: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdge: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts new file mode 100644 index 000000000..c5030a79d --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts @@ -0,0 +1,145 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgesQueryKey = orgChartEdgeKeys.list; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgesQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdges: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdges: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdges: ConnectionResult>; +}>; +export async function fetchOrgChartEdgesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgChartEdge.findMany(args).unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts index 42ac5f45a..19223fbe3 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; /** - * Query hook for fetching a single OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgClaimedInviteQuery( }); } /** - * Fetch a single OrgClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts index 965828b20..300fb5adf 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; /** - * Query hook for fetching OrgClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgClaimedInvitesQuery( }); } /** - * Fetch OrgClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgClaimedInvitesQuery(params: { return getClient().orgClaimedInvite.findMany(args).unwrap(); } /** - * Prefetch OrgClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts new file mode 100644 index 000000000..cd9e04016 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts @@ -0,0 +1,172 @@ +/** + * List query hook for OrgGetManagersRecord + * @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 { orgGetManagersRecordKeys } from '../query-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetManagersQueryKey = orgGetManagersRecordKeys.list; +/** + * Query hook for fetching OrgGetManagersRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetManagersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetManagersQuery< + S extends OrgGetManagersRecordSelect, + TData = { + orgGetManagers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetManagers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetManagersQuery( + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetManagersRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetManagersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetManagersQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; +}): Promise<{ + orgGetManagers: ConnectionResult>; +}>; +export async function fetchOrgGetManagersQuery(params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + return getClient().orgGetManagersRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetManagersRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetManagersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } +): Promise; +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts new file mode 100644 index 000000000..5f006d3ca --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgGetSubordinatesRecord + * @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 { orgGetSubordinatesRecordKeys } from '../query-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetSubordinatesQueryKey = orgGetSubordinatesRecordKeys.list; +/** + * Query hook for fetching OrgGetSubordinatesRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, + TData = { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetSubordinatesQuery( + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetSubordinatesRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; +}): Promise<{ + orgGetSubordinates: ConnectionResult>; +}>; +export async function fetchOrgGetSubordinatesQuery(params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + return getClient().orgGetSubordinatesRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetSubordinatesRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetSubordinatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } +): Promise; +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts index 14ccf29ec..cd04f290e 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgGrantQueryKey = orgGrantKeys.detail; /** - * Query hook for fetching a single OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgGrantQuery( }); } /** - * Fetch a single OrgGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts index 8f1ddc2ab..f40214130 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgGrantsQueryKey = orgGrantKeys.list; /** - * Query hook for fetching OrgGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgGrantsQuery( }); } /** - * Fetch OrgGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgGrantsQuery(params: { return getClient().orgGrant.findMany(args).unwrap(); } /** - * Prefetch OrgGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts index d6c2f623f..244288aa7 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgInviteQueryKey = orgInviteKeys.detail; /** - * Query hook for fetching a single OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgInviteQuery( }); } /** - * Fetch a single OrgInvite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgInvite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts index baaef3936..b5e0ee4dd 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgInvitesQueryKey = orgInviteKeys.list; /** - * Query hook for fetching OrgInvite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgInvitesQuery( }); } /** - * Fetch OrgInvite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgInvitesQuery(params: { return getClient().orgInvite.findMany(args).unwrap(); } /** - * Prefetch OrgInvite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts new file mode 100644 index 000000000..6092abc4a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for orgIsManagerOf + * @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 { customQueryKeys } from '../query-keys'; +import type { OrgIsManagerOfVariables } from '../../orm/query'; +export type { OrgIsManagerOfVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgIsManagerOfQueryKey = customQueryKeys.orgIsManagerOf; +/** + * Query hook for orgIsManagerOf + * + * @example + * ```tsx + * const { data, isLoading } = useOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * + * if (data?.orgIsManagerOf) { + * console.log(data.orgIsManagerOf); + * } + * ``` + */ +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgIsManagerOf without React hooks + * + * @example + * ```ts + * const data = await fetchOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function fetchOrgIsManagerOfQuery(params?: { variables?: OrgIsManagerOfVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.orgIsManagerOf(variables).unwrap(); +} +/** + * Prefetch orgIsManagerOf for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgIsManagerOfQuery(queryClient, { variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function prefetchOrgIsManagerOfQuery( + queryClient: QueryClient, + params?: { + variables?: OrgIsManagerOfVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts index 695d1eff9..4c0eff29a 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; /** - * Query hook for fetching a single OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitDefaultQuery( }); } /** - * Fetch a single OrgLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts index fae82e41b..5a7b07bbf 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; /** - * Query hook for fetching OrgLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgLimitDefaultsQuery( }); } /** - * Fetch OrgLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgLimitDefaultsQuery(params: { return getClient().orgLimitDefault.findMany(args).unwrap(); } /** - * Prefetch OrgLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts index db061397b..a63b11f53 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgLimitQueryKey = orgLimitKeys.detail; /** - * Query hook for fetching a single OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitQuery( }); } /** - * Fetch a single OrgLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts index 032866dfb..320ccf624 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitsQueryKey = orgLimitKeys.list; /** - * Query hook for fetching OrgLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgLimitsQuery( }); } /** - * Fetch OrgLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgLimitsQuery(params: { return getClient().orgLimit.findMany(args).unwrap(); } /** - * Prefetch OrgLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts index aa4257559..e8cbfeaa0 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgMemberQueryKey = orgMemberKeys.detail; /** - * Query hook for fetching a single OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMemberQuery( }); } /** - * Fetch a single OrgMember without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMemberQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMember for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts index 651d52afb..21929089e 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembersQueryKey = orgMemberKeys.list; /** - * Query hook for fetching OrgMember list + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgMembersQuery( }); } /** - * Fetch OrgMember list without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgMembersQuery(params: { return getClient().orgMember.findMany(args).unwrap(); } /** - * Prefetch OrgMember list for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts index 47264e0a5..bff51e2a0 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; /** - * Query hook for fetching a single OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgMembershipDefaultQuery( }); } /** - * Fetch a single OrgMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts index 8cb20caae..06c715627 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; /** - * Query hook for fetching OrgMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgMembershipDefaultsQuery( }); } /** - * Fetch OrgMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgMembershipDefaultsQuery(params: { return getClient().orgMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch OrgMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts index ec1c49d75..945adf98d 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipQueryKey = orgMembershipKeys.detail; /** - * Query hook for fetching a single OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMembershipQuery( }); } /** - * Fetch a single OrgMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts index cde182a7b..2e620b485 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipsQueryKey = orgMembershipKeys.list; /** - * Query hook for fetching OrgMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgMembershipsQuery( }); } /** - * Fetch OrgMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgMembershipsQuery(params: { return getClient().orgMembership.findMany(args).unwrap(); } /** - * Prefetch OrgMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts index 9a0b0c9df..ad6a4b4ba 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; /** - * Query hook for fetching a single OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgOwnerGrantQuery( }); } /** - * Fetch a single OrgOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts index 315d1cc57..5f22b3f8a 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; /** - * Query hook for fetching OrgOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgOwnerGrantsQuery( }); } /** - * Fetch OrgOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgOwnerGrantsQuery(params: { return getClient().orgOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch OrgOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts index 3f324b798..e1e71f5fc 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; /** - * Query hook for fetching a single OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgPermissionDefaultQuery( }); } /** - * Fetch a single OrgPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts index 021e73f1c..8bbff2240 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; /** - * Query hook for fetching OrgPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgPermissionDefaultsQuery( }); } /** - * Fetch OrgPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgPermissionDefaultsQuery(params: { return getClient().orgPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch OrgPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts index 3d28f9542..fcee408e9 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionQueryKey = orgPermissionKeys.detail; /** - * Query hook for fetching a single OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgPermissionQuery( }); } /** - * Fetch a single OrgPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts index 3e48264a6..b5272fe6f 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionsQueryKey = orgPermissionKeys.list; /** - * Query hook for fetching OrgPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgPermissionsQuery( }); } /** - * Fetch OrgPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgPermissionsQuery(params: { return getClient().orgPermission.findMany(args).unwrap(); } /** - * Prefetch OrgPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts index da5741b1c..19f130656 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -19,6 +19,24 @@ // Entity Query Keys // ============================================================================ +export const orgGetManagersRecordKeys = { + /** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'] as const, + /** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetManagersRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetManagersRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetManagersRecordKeys.details(), id] as const, +} as const; +export const orgGetSubordinatesRecordKeys = { + /** All orgGetSubordinatesRecord queries */ all: ['orggetsubordinatesrecord'] as const, + /** List query keys */ lists: () => [...orgGetSubordinatesRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetSubordinatesRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetSubordinatesRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetSubordinatesRecordKeys.details(), id] as const, +} as const; export const appPermissionKeys = { /** All appPermission queries */ all: ['apppermission'] as const, /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, @@ -91,24 +109,6 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.details(), id] as const, } as const; -export const appLimitDefaultKeys = { - /** All appLimitDefault queries */ all: ['applimitdefault'] as const, - /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitDefaultKeys.details(), id] as const, -} as const; -export const orgLimitDefaultKeys = { - /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, - /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitDefaultKeys.details(), id] as const, -} as const; export const orgAdminGrantKeys = { /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, @@ -127,6 +127,24 @@ export const orgOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgOwnerGrantKeys.details(), id] as const, } as const; +export const appLimitDefaultKeys = { + /** All appLimitDefault queries */ all: ['applimitdefault'] as const, + /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitDefaultKeys.details(), id] as const, +} as const; +export const orgLimitDefaultKeys = { + /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, + /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitDefaultKeys.details(), id] as const, +} as const; export const membershipTypeKeys = { /** All membershipType queries */ all: ['membershiptype'] as const, /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, @@ -136,6 +154,15 @@ export const membershipTypeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...membershipTypeKeys.details(), id] as const, } as const; +export const orgChartEdgeGrantKeys = { + /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, + /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeGrantKeys.details(), id] as const, +} as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, @@ -217,6 +244,15 @@ export const orgGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgGrantKeys.details(), id] as const, } as const; +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeKeys.details(), id] as const, +} as const; export const orgMembershipDefaultKeys = { /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, @@ -226,15 +262,6 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const appLevelKeys = { - /** All appLevel queries */ all: ['applevel'] as const, - /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLevelKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLevelKeys.details(), id] as const, -} as const; export const inviteKeys = { /** All invite queries */ all: ['invite'] as const, /** List query keys */ lists: () => [...inviteKeys.all, 'list'] as const, @@ -244,6 +271,15 @@ export const inviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...inviteKeys.details(), id] as const, } as const; +export const appLevelKeys = { + /** All appLevel queries */ all: ['applevel'] as const, + /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLevelKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLevelKeys.details(), id] as const, +} as const; export const appMembershipKeys = { /** All appMembership queries */ all: ['appmembership'] as const, /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, @@ -283,6 +319,8 @@ export const customQueryKeys = { /** Query key for orgPermissionsGetPaddedMask */ orgPermissionsGetPaddedMask: ( variables?: object ) => ['orgPermissionsGetPaddedMask', variables] as const, + /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => + ['orgIsManagerOf', variables] as const, /** Query key for stepsAchieved */ stepsAchieved: (variables?: object) => ['stepsAchieved', variables] as const, /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => @@ -325,6 +363,8 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + orgGetManagersRecord: orgGetManagersRecordKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, appLevelRequirement: appLevelRequirementKeys, @@ -333,11 +373,12 @@ export const queryKeys = { orgPermissionDefault: orgPermissionDefaultKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, - appLimitDefault: appLimitDefaultKeys, - orgLimitDefault: orgLimitDefaultKeys, orgAdminGrant: orgAdminGrantKeys, orgOwnerGrant: orgOwnerGrantKeys, + appLimitDefault: appLimitDefaultKeys, + orgLimitDefault: orgLimitDefaultKeys, membershipType: membershipTypeKeys, + orgChartEdgeGrant: orgChartEdgeGrantKeys, appLimit: appLimitKeys, appAchievement: appAchievementKeys, appStep: appStepKeys, @@ -347,9 +388,10 @@ export const queryKeys = { orgLimit: orgLimitKeys, orgClaimedInvite: orgClaimedInviteKeys, orgGrant: orgGrantKeys, + orgChartEdge: orgChartEdgeKeys, orgMembershipDefault: orgMembershipDefaultKeys, - appLevel: appLevelKeys, invite: inviteKeys, + appLevel: appLevelKeys, appMembership: appMembershipKeys, orgMembership: orgMembershipKeys, orgInvite: orgInviteKeys, diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index a3154dc57..4269dd02c 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | @@ -29,11 +31,12 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -43,15 +46,76 @@ const db = createClient({ | `orgLimit` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.appPermission` CRUD operations for AppPermission records. @@ -315,136 +379,136 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgAdminGrant` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.orgOwnerGrant` -CRUD operations for OrgLimitDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.appLimitDefault` -CRUD operations for OrgAdminGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.orgLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -479,6 +543,43 @@ const updated = await db.membershipType.update({ where: { id: '' }, data: const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -789,9 +890,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgChartEdge` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -800,65 +901,66 @@ CRUD operations for OrgMembershipDefault records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeGroups` | Boolean | Yes | -| `createGroupsCascadeMembers` | Boolean | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLevel` +### `db.orgMembershipDefault` -CRUD operations for AppLevel records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeGroups` | Boolean | Yes | +| `createGroupsCascadeMembers` | Boolean | Yes | **Operations:** ```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -901,6 +1003,41 @@ const updated = await db.invite.update({ where: { id: '' }, data: { email const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLevel` + +CRUD operations for AppLevel records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembership` CRUD operations for AppMembership records. @@ -924,18 +1061,19 @@ CRUD operations for AppMembership records. | `permissions` | BitString | Yes | | `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -967,18 +1105,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1061,6 +1200,24 @@ orgPermissionsGetPaddedMask const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.stepsAchieved` stepsAchieved diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index 877700d3e..524d28db3 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; @@ -13,11 +15,12 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; @@ -27,9 +30,10 @@ import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgLimitModel } from './models/orgLimit'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AppLevelModel } from './models/appLevel'; import { InviteModel } from './models/invite'; +import { AppLevelModel } from './models/appLevel'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgInviteModel } from './models/orgInvite'; @@ -68,6 +72,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), appLevelRequirement: new AppLevelRequirementModel(client), @@ -76,11 +82,12 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), membershipType: new MembershipTypeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), @@ -90,9 +97,10 @@ export function createClient(config: OrmClientConfig) { orgLimit: new OrgLimitModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - appLevel: new AppLevelModel(client), invite: new InviteModel(client), + appLevel: new AppLevelModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), orgInvite: new OrgInviteModel(client), diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index aca539f61..6bc1887db 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -227,254 +227,435 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | 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; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: 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 */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; } +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Levels for achievement */ -export interface AppLevel { - id: string; - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: 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 */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -493,6 +674,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} export interface AppLevelRequirementRelations {} @@ -501,11 +684,12 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface OrgAdminGrantRelations {} export interface OrgOwnerGrantRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface MembershipTypeRelations {} +export interface OrgChartEdgeGrantRelations {} export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} @@ -515,13 +699,18 @@ export interface AppMembershipDefaultRelations {} export interface OrgLimitRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipDefaultRelations {} -export interface AppLevelRelations {} export interface InviteRelations {} +export interface AppLevelRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; @@ -532,11 +721,12 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -547,14 +737,23 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type InviteWithRelations = Invite & InviteRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -610,16 +809,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -638,12 +827,33 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; }; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -720,6 +930,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipDefaultSelect = { id?: boolean; createdAt?: boolean; @@ -731,15 +951,6 @@ export type OrgMembershipDefaultSelect = { deleteMemberCascadeGroups?: boolean; createGroupsCascadeMembers?: boolean; }; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -754,6 +965,15 @@ export type InviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -770,6 +990,7 @@ export type AppMembershipSelect = { permissions?: boolean; granted?: boolean; actorId?: boolean; + profileId?: boolean; }; export type OrgMembershipSelect = { id?: boolean; @@ -787,6 +1008,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -805,6 +1027,20 @@ export type OrgInviteSelect = { entityId?: boolean; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface AppPermissionFilter { id?: UUIDFilter; name?: StringFilter; @@ -884,22 +1120,6 @@ export interface AppOwnerGrantFilter { or?: AppOwnerGrantFilter[]; not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: AppLimitDefaultFilter[]; - or?: AppLimitDefaultFilter[]; - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: OrgLimitDefaultFilter[]; - or?: OrgLimitDefaultFilter[]; - not?: OrgLimitDefaultFilter; -} export interface OrgAdminGrantFilter { id?: UUIDFilter; isGrant?: BooleanFilter; @@ -924,6 +1144,22 @@ export interface OrgOwnerGrantFilter { or?: OrgOwnerGrantFilter[]; not?: OrgOwnerGrantFilter; } +export interface AppLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: AppLimitDefaultFilter[]; + or?: AppLimitDefaultFilter[]; + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: OrgLimitDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; + not?: OrgLimitDefaultFilter; +} export interface MembershipTypeFilter { id?: IntFilter; name?: StringFilter; @@ -933,6 +1169,20 @@ export interface MembershipTypeFilter { or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; } +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -1036,6 +1286,19 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} export interface OrgMembershipDefaultFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1050,18 +1313,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -1079,6 +1330,18 @@ export interface InviteFilter { or?: InviteFilter[]; not?: InviteFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1095,6 +1358,7 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; @@ -1115,6 +1379,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -1139,6 +1404,14 @@ export interface OrgInviteFilter { not?: OrgInviteFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface AppPermissionCondition { id?: string | null; name?: string | null; @@ -1194,16 +1467,6 @@ export interface AppOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface OrgAdminGrantCondition { id?: string | null; isGrant?: boolean | null; @@ -1222,12 +1485,33 @@ export interface OrgOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} export interface MembershipTypeCondition { id?: number | null; name?: string | null; description?: string | null; prefix?: string | null; } +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -1304,6 +1588,16 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} export interface OrgMembershipDefaultCondition { id?: string | null; createdAt?: string | null; @@ -1315,15 +1609,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface AppLevelCondition { - id?: string | null; - name?: string | null; - description?: string | null; - image?: unknown | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface InviteCondition { id?: string | null; email?: unknown | null; @@ -1338,6 +1623,15 @@ export interface InviteCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLevelCondition { + id?: string | null; + name?: string | null; + description?: string | null; + image?: unknown | null; + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -1354,6 +1648,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface OrgMembershipCondition { id?: string | null; @@ -1371,6 +1666,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgInviteCondition { id?: string | null; @@ -1389,6 +1685,22 @@ export interface OrgInviteCondition { entityId?: string | null; } // ============ 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'; export type AppPermissionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1499,27 +1811,7 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -1555,6 +1847,26 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1567,6 +1879,28 @@ export type MembershipTypeOrderBy = | 'DESCRIPTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1719,6 +2053,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; export type OrgMembershipDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1741,24 +2095,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type AppLevelOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type InviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1787,6 +2123,24 @@ export type InviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLevelOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1820,7 +2174,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1854,7 +2210,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgInviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1888,6 +2246,46 @@ export type OrgInviteOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -2066,46 +2464,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: number; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: number; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { @@ -2154,6 +2512,46 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: number; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: number; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2176,6 +2574,36 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -2390,6 +2818,32 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { @@ -2418,30 +2872,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateInviteInput { clientMutationId?: string; invite: { @@ -2476,6 +2906,30 @@ export interface DeleteInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + }; +} +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; +} +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + appLevelPatch: AppLevelPatch; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -2491,6 +2945,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -2506,6 +2961,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -2531,6 +2987,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -2546,6 +3003,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -3039,184 +3497,184 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgAdminGrantPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateOrgAdminGrantPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgAdminGrantPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteOrgAdminGrantPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateOrgOwnerGrantPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateOrgOwnerGrantPayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateMembershipTypePayload { @@ -3264,6 +3722,51 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type CreateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -3669,6 +4172,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ @@ -3714,51 +4262,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; export interface CreateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ @@ -3804,6 +4307,51 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -4052,30 +4600,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -4100,6 +4624,30 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -4112,6 +4660,18 @@ export type MembershipTypeEdgeSelect = { select: MembershipTypeSelect; }; }; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -4220,28 +4780,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: OrgChartEdgeSelect; }; }; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppLevelEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppLevelSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `Invite` edge in the connection. */ @@ -4256,6 +4816,18 @@ export type InviteEdgeSelect = { select: InviteSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts index 635d44b66..f20a6d0a4 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; export { AppLevelRequirementModel } from './appLevelRequirement'; @@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; @@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgLimitModel } from './orgLimit'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AppLevelModel } from './appLevel'; export { InviteModel } from './invite'; +export { AppLevelModel } from './appLevel'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-sdk/src/public/orm/models/procedure.ts b/sdk/constructive-react/src/admin/orm/models/orgChartEdge.ts similarity index 53% rename from sdk/constructive-sdk/src/public/orm/models/procedure.ts rename to sdk/constructive-react/src/admin/orm/models/orgChartEdge.ts index 6725b1577..3ff845429 100644 --- a/sdk/constructive-sdk/src/public/orm/models/procedure.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgChartEdge.ts @@ -1,5 +1,5 @@ /** - * Procedure model for ORM client + * OrgChartEdge model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - Procedure, - ProcedureWithRelations, - ProcedureSelect, - ProcedureFilter, - ProcedureOrderBy, - CreateProcedureInput, - UpdateProcedureInput, - ProcedurePatch, + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ProcedureModel { +export class OrgChartEdgeModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - procedures: ConnectionResult>; + orgChartEdges: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class ProcedureModel { before: args?.before, offset: args?.offset, }, - 'ProcedureFilter', - 'ProcedureOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - procedures: { - nodes: InferSelectResult[]; + orgChartEdges: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'Procedure', - 'procedures', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, }, - 'ProcedureFilter', + 'OrgChartEdgeFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - procedure: InferSelectResult | null; + orgChartEdge: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: { @@ -117,90 +117,90 @@ export class ProcedureModel { }, first: 1, }, - 'ProcedureFilter', - 'ProcedureOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Procedure', - fieldName: 'procedure', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', document, variables, transform: (data: { - procedures?: { - nodes?: InferSelectResult[]; + orgChartEdges?: { + nodes?: InferSelectResult[]; }; }) => ({ - procedure: data.procedures?.nodes?.[0] ?? null, + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createProcedure: { - procedure: InferSelectResult; + createOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'Procedure', - 'createProcedure', - 'procedure', + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', args.select, args.data, - 'CreateProcedureInput', + 'CreateOrgChartEdgeInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Procedure', - fieldName: 'createProcedure', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ProcedurePatch + OrgChartEdgePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateProcedure: { - procedure: InferSelectResult; + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'Procedure', - 'updateProcedure', - 'procedure', + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', args.select, args.where.id, args.data, - 'UpdateProcedureInput', + 'UpdateOrgChartEdgeInput', 'id', - 'procedurePatch', + 'orgChartEdgePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Procedure', - fieldName: 'updateProcedure', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class ProcedureModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteProcedure: { - procedure: InferSelectResult; + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'Procedure', - 'deleteProcedure', - 'procedure', + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', args.where.id, - 'DeleteProcedureInput', + 'DeleteOrgChartEdgeInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class ProcedureModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Procedure', - fieldName: 'deleteProcedure', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', document, variables, }); diff --git a/sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant 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 { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + 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, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord 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 { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + 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, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord 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 { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + 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, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/query/index.ts b/sdk/constructive-react/src/admin/orm/query/index.ts index 58c216770..db637075c 100644 --- a/sdk/constructive-react/src/admin/orm/query/index.ts +++ b/sdk/constructive-react/src/admin/orm/query/index.ts @@ -18,6 +18,12 @@ export interface AppPermissionsGetPaddedMaskVariables { export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface StepsAchievedVariables { vlevel?: string; vroleId?: string; @@ -131,6 +137,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), stepsAchieved: ( args: StepsAchievedVariables, options?: { diff --git a/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md b/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md deleted file mode 100644 index 6b585abee..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAdminGrant - - - -ORM operations for AppAdminGrant records - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appGrant.md b/sdk/constructive-react/src/admin/orm/skills/appGrant.md deleted file mode 100644 index 017771262..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appGrant - - - -ORM operations for AppGrant records - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLevel.md b/sdk/constructive-react/src/admin/orm/skills/appLevel.md deleted file mode 100644 index 3677ecc37..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevel - - - -Levels for achievement - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md b/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md deleted file mode 100644 index 28df77ff5..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLimit.md b/sdk/constructive-react/src/admin/orm/skills/appLimit.md deleted file mode 100644 index 50fa2b37f..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimit - - - -ORM operations for AppLimit records - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md deleted file mode 100644 index 369df9f26..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appStep.md b/sdk/constructive-react/src/admin/orm/skills/appStep.md deleted file mode 100644 index 3c349de1f..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/invite.md b/sdk/constructive-react/src/admin/orm/skills/invite.md deleted file mode 100644 index 727a2107e..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invite - - - -ORM operations for Invite records - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md b/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md deleted file mode 100644 index 5693e2856..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgClaimedInvite - - - -ORM operations for OrgClaimedInvite records - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgGrant.md b/sdk/constructive-react/src/admin/orm/skills/orgGrant.md deleted file mode 100644 index ac4c4b896..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgGrant - - - -ORM operations for OrgGrant records - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgInvite.md b/sdk/constructive-react/src/admin/orm/skills/orgInvite.md deleted file mode 100644 index ea7ff346d..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgInvite - - - -ORM operations for OrgInvite records - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgLimit.md b/sdk/constructive-react/src/admin/orm/skills/orgLimit.md deleted file mode 100644 index 19681fddf..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimit - - - -ORM operations for OrgLimit records - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermission.md b/sdk/constructive-react/src/admin/orm/skills/orgPermission.md deleted file mode 100644 index 1f18add5d..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermission - - - -ORM operations for OrgPermission records - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md deleted file mode 100644 index 437f5c98b..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md deleted file mode 100644 index c626883ad..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index f67397dcc..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index a67198a29..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md b/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md deleted file mode 100644 index 8ea0ad638..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md b/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md deleted file mode 100644 index ae946fe75..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 5ca2fa393..305e16a35 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -22,7 +22,11 @@ import type { Invite, MembershipType, OrgAdminGrant, + OrgChartEdge, + OrgChartEdgeGrant, OrgClaimedInvite, + OrgGetManagersRecord, + OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, @@ -105,24 +109,6 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; /** Methods to use when ordering `OrgAdminGrant`. */ export type OrgAdminGrantOrderBy = | 'NATURAL' @@ -153,6 +139,24 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `MembershipType`. */ export type MembershipTypeOrderBy = | 'NATURAL' @@ -162,6 +166,21 @@ export type MembershipTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; +/** Methods to use when ordering `OrgChartEdgeGrant`. */ +export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -311,6 +330,23 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgChartEdge`. */ +export type 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'; /** Methods to use when ordering `OrgMembershipDefault`. */ export type OrgMembershipDefaultOrderBy = | 'NATURAL' @@ -345,19 +381,6 @@ export type AppLevelRequirementOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLevel`. */ -export type AppLevelOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Invite`. */ export type InviteOrderBy = | 'NATURAL' @@ -379,6 +402,19 @@ export type InviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppLevel`. */ +export type AppLevelOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -399,7 +435,9 @@ export type AppMembershipOrderBy = | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `OrgMembership`. */ export type OrgMembershipOrderBy = | 'NATURAL' @@ -422,7 +460,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -605,60 +645,6 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -/** - * A condition to be used against `AppLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface AppLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -/** - * A condition to be used against `OrgLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface OrgLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} /** * A condition to be used against `OrgAdminGrant` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -745,6 +731,60 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } +/** + * A condition to be used against `AppLimitDefault` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppLimitDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; +} +/** + * A condition to be used against `OrgLimitDefault` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgLimitDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; +} /** * A condition to be used against `MembershipType` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -776,6 +816,57 @@ export interface MembershipTypeFilter { /** Negates the expression. */ not?: MembershipTypeFilter; } +/** + * A condition to be used against `OrgChartEdgeGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeGrantFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeGrantFilter; +} /** * A condition to be used against `AppPermission` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -1206,6 +1297,53 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +/** + * A condition to be used against `OrgChartEdge` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; +} +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} /** * A condition to be used against `OrgMembershipDefault` object types. All fields * are tested for equality and combined with a logical ‘and.’ @@ -1304,86 +1442,8 @@ export interface AppLevelRequirementFilter { /** Negates the expression. */ not?: AppLevelRequirementFilter; } -/** - * A condition to be used against `AppLevel` object types. All fields are tested - * for equality and combined with a logical ‘and.’ - */ -export interface AppLevelCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `image` field. */ - image?: ConstructiveInternalTypeImage; - /** Checks for equality with the object’s `ownerId` field. */ - ownerId?: string; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: 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?: AppLevelFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLevelFilter[]; - /** Negates the expression. */ - not?: AppLevelFilter; -} -/** 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 condition to be used against `Invite` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface InviteCondition { +/** A condition to be used against `Invite` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface InviteCondition { /** Checks for equality with the object’s `id` field. */ id?: string; /** Checks for equality with the object’s `email` field. */ @@ -1517,6 +1577,84 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } +/** + * A condition to be used against `AppLevel` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AppLevelCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `image` field. */ + image?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `image` field. */ + image?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: 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?: AppLevelFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLevelFilter[]; + /** Negates the expression. */ + not?: AppLevelFilter; +} +/** 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 condition to be used against `AppMembership` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -1552,6 +1690,8 @@ export interface AppMembershipCondition { granted?: string; /** Checks for equality with the object’s `actorId` field. */ actorId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { @@ -1585,6 +1725,8 @@ export interface AppMembershipFilter { 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. */ @@ -1627,6 +1769,8 @@ export interface OrgMembershipCondition { actorId?: string; /** Checks for equality with the object’s `entityId` field. */ entityId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipFilter { @@ -1660,6 +1804,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; + /** 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. */ @@ -1752,8 +1898,11 @@ export interface CreateOrgMemberInput { /** 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; } export interface CreateAppPermissionDefaultInput { @@ -1764,6 +1913,7 @@ export interface CreateAppPermissionDefaultInput { /** An input for mutations affecting `AppPermissionDefault` */ export interface AppPermissionDefaultInput { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; } export interface CreateOrgPermissionDefaultInput { @@ -1774,7 +1924,9 @@ export interface CreateOrgPermissionDefaultInput { /** 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; } export interface CreateAppAdminGrantInput { @@ -1785,7 +1937,9 @@ export interface CreateAppAdminGrantInput { /** 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 */ actorId: string; grantorId?: string; createdAt?: string; @@ -1799,34 +1953,14 @@ export interface CreateAppOwnerGrantInput { /** 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 */ actorId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; -} -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { - id?: string; - name: string; - max?: number; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; -} -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { - id?: string; - name: string; - max?: number; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; /** The `OrgAdminGrant` to be created by this mutation. */ @@ -1835,8 +1969,11 @@ export interface CreateOrgAdminGrantInput { /** 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 */ actorId: string; + /** The entity (org or group) this admin grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -1850,13 +1987,42 @@ export interface CreateOrgOwnerGrantInput { /** 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 */ actorId: string; + /** The entity (org or group) this ownership grant applies to */ entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; +} +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; +} +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} export interface CreateMembershipTypeInput { clientMutationId?: string; /** The `MembershipType` to be created by this mutation. */ @@ -1864,11 +2030,40 @@ export interface CreateMembershipTypeInput { } /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name: string; + /** Description of what this membership type represents */ description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix: string; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + /** The `OrgChartEdgeGrant` to be created by this mutation. */ + orgChartEdgeGrant: OrgChartEdgeGrantInput; +} +/** 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 */ + 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; +} export interface CreateAppPermissionInput { clientMutationId?: string; /** The `AppPermission` to be created by this mutation. */ @@ -1877,9 +2072,13 @@ export interface CreateAppPermissionInput { /** An input for mutations affecting `AppPermission` */ export interface AppPermissionInput { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface CreateOrgPermissionInput { @@ -1890,9 +2089,13 @@ export interface CreateOrgPermissionInput { /** An input for mutations affecting `OrgPermission` */ export interface OrgPermissionInput { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface CreateAppLimitInput { @@ -1903,9 +2106,13 @@ export interface CreateAppLimitInput { /** An input for mutations affecting `AppLimit` */ export interface AppLimitInput { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; } export interface CreateAppAchievementInput { @@ -1917,7 +2124,9 @@ export interface CreateAppAchievementInput { export interface AppAchievementInput { id?: string; actorId?: string; + /** Name identifier of the level requirement being tracked */ name: string; + /** Cumulative count of completed steps toward this requirement */ count?: number; createdAt?: string; updatedAt?: string; @@ -1931,7 +2140,9 @@ export interface CreateAppStepInput { export interface AppStepInput { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -1944,8 +2155,11 @@ export interface CreateClaimedInviteInput { /** An input for mutations affecting `ClaimedInvite` */ export interface ClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -1958,8 +2172,11 @@ export interface CreateAppGrantInput { /** 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 */ actorId: string; grantorId?: string; createdAt?: string; @@ -1977,7 +2194,9 @@ export interface AppMembershipDefaultInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean; } export interface CreateOrgLimitInput { @@ -1988,9 +2207,13 @@ export interface CreateOrgLimitInput { /** An input for mutations affecting `OrgLimit` */ export interface OrgLimitInput { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId: string; } @@ -2002,8 +2225,11 @@ export interface CreateOrgClaimedInviteInput { /** An input for mutations affecting `OrgClaimedInvite` */ export interface OrgClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -2017,14 +2243,39 @@ export interface CreateOrgGrantInput { /** 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 */ actorId: string; + /** The entity (org or group) this permission grant applies to */ entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** 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; +} export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; /** The `OrgMembershipDefault` to be created by this mutation. */ @@ -2037,9 +2288,13 @@ export interface OrgMembershipDefaultInput { 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; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } export interface CreateAppLevelRequirementInput { @@ -2050,29 +2305,19 @@ export interface CreateAppLevelRequirementInput { /** An input for mutations affecting `AppLevelRequirement` */ export interface AppLevelRequirementInput { id?: string; + /** Name identifier of the requirement (matches step names) */ name: string; + /** Name of the level this requirement belongs to */ level: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; } -export interface CreateAppLevelInput { - clientMutationId?: string; - /** The `AppLevel` to be created by this mutation. */ - appLevel: AppLevelInput; -} -/** An input for mutations affecting `AppLevel` */ -export interface AppLevelInput { - id?: string; - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} export interface CreateInviteInput { clientMutationId?: string; /** The `Invite` to be created by this mutation. */ @@ -2081,18 +2326,46 @@ export interface CreateInviteInput { /** An input for mutations affecting `Invite` */ export interface InviteInput { 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + /** The `AppLevel` to be created by this mutation. */ + appLevel: AppLevelInput; +} +/** An input for mutations affecting `AppLevel` */ +export interface AppLevelInput { + id?: string; + /** Unique name of the level */ + name: string; + /** Human-readable description of what this level represents */ + description?: string; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; /** The `AppMembership` to be created by this mutation. */ @@ -2105,16 +2378,27 @@ export interface AppMembershipInput { 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; } export interface CreateOrgMembershipInput { clientMutationId?: string; @@ -2128,16 +2412,27 @@ export interface OrgMembershipInput { 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 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; + profileId?: string; } export interface CreateOrgInviteInput { clientMutationId?: string; @@ -2147,15 +2442,25 @@ export interface CreateOrgInviteInput { /** An input for mutations affecting `OrgInvite` */ export interface OrgInviteInput { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; @@ -2170,8 +2475,11 @@ export interface UpdateOrgMemberInput { /** Represents an update to a `OrgMember`. Fields that are set will be updated. */ export interface OrgMemberPatch { 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; } export interface UpdateAppPermissionDefaultInput { @@ -2183,6 +2491,7 @@ export interface UpdateAppPermissionDefaultInput { /** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ export interface AppPermissionDefaultPatch { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; } export interface UpdateOrgPermissionDefaultInput { @@ -2194,7 +2503,9 @@ export interface UpdateOrgPermissionDefaultInput { /** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ export interface OrgPermissionDefaultPatch { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; + /** References the entity these default permissions apply to */ entityId?: string; } export interface UpdateAppAdminGrantInput { @@ -2206,7 +2517,9 @@ export interface UpdateAppAdminGrantInput { /** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ export interface AppAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; grantorId?: string; createdAt?: string; @@ -2221,36 +2534,14 @@ export interface UpdateAppOwnerGrantInput { /** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ export interface AppOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; -} -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -2260,8 +2551,11 @@ export interface UpdateOrgAdminGrantInput { /** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ export interface OrgAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; + /** The entity (org or group) this admin grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -2276,26 +2570,88 @@ export interface UpdateOrgOwnerGrantInput { /** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ export interface OrgOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; + /** The entity (org or group) this ownership grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; +} +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} export interface UpdateMembershipTypeInput { clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; /** An object where the defined keys will be set on the `MembershipType` being updated. */ membershipTypePatch: MembershipTypePatch; } /** Represents an update to a `MembershipType`. Fields that are set will be updated. */ export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id?: number; + /** Human-readable name of the membership type */ name?: string; + /** Description of what this membership type represents */ description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string; } +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ +export interface OrgChartEdgeGrantPatch { + 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 */ + 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; +} export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; @@ -2305,9 +2661,13 @@ export interface UpdateAppPermissionInput { /** Represents an update to a `AppPermission`. Fields that are set will be updated. */ export interface AppPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateOrgPermissionInput { @@ -2319,9 +2679,13 @@ export interface UpdateOrgPermissionInput { /** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ export interface OrgPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateAppLimitInput { @@ -2333,9 +2697,13 @@ export interface UpdateAppLimitInput { /** Represents an update to a `AppLimit`. Fields that are set will be updated. */ export interface AppLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; } export interface UpdateAppAchievementInput { @@ -2348,7 +2716,9 @@ export interface UpdateAppAchievementInput { export interface AppAchievementPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement being tracked */ name?: string; + /** Cumulative count of completed steps toward this requirement */ count?: number; createdAt?: string; updatedAt?: string; @@ -2363,7 +2733,9 @@ export interface UpdateAppStepInput { export interface AppStepPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name?: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -2377,8 +2749,11 @@ export interface UpdateClaimedInviteInput { /** Represents an update to a `ClaimedInvite`. Fields that are set will be updated. */ export interface ClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -2392,8 +2767,11 @@ export interface UpdateAppGrantInput { /** Represents an update to a `AppGrant`. Fields that are set will be updated. */ export interface AppGrantPatch { 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 */ actorId?: string; grantorId?: string; createdAt?: string; @@ -2412,7 +2790,9 @@ export interface AppMembershipDefaultPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean; } export interface UpdateOrgLimitInput { @@ -2424,9 +2804,13 @@ export interface UpdateOrgLimitInput { /** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ export interface OrgLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId?: string; } @@ -2439,8 +2823,11 @@ export interface UpdateOrgClaimedInviteInput { /** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ export interface OrgClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -2455,14 +2842,40 @@ export interface UpdateOrgGrantInput { /** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ export interface OrgGrantPatch { 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 */ actorId?: string; + /** The entity (org or group) this permission grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + 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; +} export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; @@ -2476,9 +2889,13 @@ export interface OrgMembershipDefaultPatch { 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; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } export interface UpdateAppLevelRequirementInput { @@ -2490,30 +2907,19 @@ export interface UpdateAppLevelRequirementInput { /** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ export interface AppLevelRequirementPatch { id?: string; + /** Name identifier of the requirement (matches step names) */ name?: string; + /** Name of the level this requirement belongs to */ level?: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; } -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLevel` being updated. */ - appLevelPatch: AppLevelPatch; -} -/** Represents an update to a `AppLevel`. Fields that are set will be updated. */ -export interface AppLevelPatch { - id?: string; - name?: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateInviteInput { clientMutationId?: string; id: string; @@ -2523,18 +2929,49 @@ export interface UpdateInviteInput { /** Represents an update to a `Invite`. Fields that are set will be updated. */ export interface InvitePatch { 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLevel` being updated. */ + appLevelPatch: AppLevelPatch; +} +/** Represents an update to a `AppLevel`. Fields that are set will be updated. */ +export interface AppLevelPatch { + id?: string; + /** Unique name of the level */ + name?: string; + /** Human-readable description of what this level represents */ + description?: string; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string; + createdAt?: string; + updatedAt?: string; + /** Upload for Badge or icon image associated with this level */ + imageUpload?: File; +} export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; @@ -2548,16 +2985,27 @@ export interface AppMembershipPatch { 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; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -2572,16 +3020,27 @@ export interface OrgMembershipPatch { 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 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; + profileId?: string; } export interface UpdateOrgInviteInput { clientMutationId?: string; @@ -2592,15 +3051,25 @@ 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 */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; @@ -2626,26 +3095,31 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } export interface DeleteMembershipTypeInput { clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; } +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; @@ -2690,6 +3164,10 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; @@ -2698,11 +3176,11 @@ export interface DeleteAppLevelRequirementInput { clientMutationId?: string; id: string; } -export interface DeleteAppLevelInput { +export interface DeleteInviteInput { clientMutationId?: string; id: string; } -export interface DeleteInviteInput { +export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } @@ -2718,6 +3196,20 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } +/** A connection to a list of `OrgGetManagersRecord` values. */ +export interface OrgGetManagersConnection { + nodes: OrgGetManagersRecord[]; + edges: OrgGetManagersEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgGetSubordinatesRecord` values. */ +export interface OrgGetSubordinatesConnection { + nodes: OrgGetSubordinatesRecord[]; + edges: OrgGetSubordinatesEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; @@ -2774,20 +3266,6 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgAdminGrant` values. */ export interface OrgAdminGrantConnection { nodes: OrgAdminGrant[]; @@ -2802,6 +3280,20 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `MembershipType` values. */ export interface MembershipTypeConnection { nodes: MembershipType[]; @@ -2809,6 +3301,13 @@ export interface MembershipTypeConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimit` values. */ export interface AppLimitConnection { nodes: AppLimit[]; @@ -2872,6 +3371,13 @@ export interface OrgGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgMembershipDefault` values. */ export interface OrgMembershipDefaultConnection { nodes: OrgMembershipDefault[]; @@ -2879,13 +3385,6 @@ export interface OrgMembershipDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLevel` values. */ -export interface AppLevelConnection { - nodes: AppLevel[]; - edges: AppLevelEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Invite` values. */ export interface InviteConnection { nodes: Invite[]; @@ -2893,6 +3392,13 @@ export interface InviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLevel` values. */ +export interface AppLevelConnection { + nodes: AppLevel[]; + edges: AppLevelEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppMembership` values. */ export interface AppMembershipConnection { nodes: AppMembership[]; @@ -2956,18 +3462,6 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ @@ -2980,12 +3474,30 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -3052,6 +3564,12 @@ export interface CreateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ @@ -3064,18 +3582,18 @@ export interface CreateAppLevelRequirementPayload { appLevelRequirement?: AppLevelRequirement | null; appLevelRequirementEdge?: AppLevelRequirementEdge | null; } -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} export interface CreateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ invite?: Invite | null; inviteEdge?: InviteEdge | null; } +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -3124,18 +3642,6 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ @@ -3148,12 +3654,30 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface UpdateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface UpdateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ @@ -3220,6 +3744,12 @@ export interface UpdateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was updated by this mutation. */ @@ -3232,18 +3762,18 @@ export interface UpdateAppLevelRequirementPayload { appLevelRequirement?: AppLevelRequirement | null; appLevelRequirementEdge?: AppLevelRequirementEdge | null; } -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} export interface UpdateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was updated by this mutation. */ invite?: Invite | null; inviteEdge?: InviteEdge | null; } +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} export interface UpdateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was updated by this mutation. */ @@ -3292,18 +3822,6 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ @@ -3316,12 +3834,30 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface DeleteAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ @@ -3388,6 +3924,12 @@ export interface DeleteOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was deleted by this mutation. */ @@ -3400,18 +3942,18 @@ export interface DeleteAppLevelRequirementPayload { appLevelRequirement?: AppLevelRequirement | null; appLevelRequirementEdge?: AppLevelRequirementEdge | null; } -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} export interface DeleteInvitePayload { clientMutationId?: string | null; /** The `Invite` that was deleted by this mutation. */ invite?: Invite | null; inviteEdge?: InviteEdge | null; } +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} export interface DeleteAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was deleted by this mutation. */ @@ -3430,11 +3972,11 @@ export interface DeleteOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `OrgGetManagersRecord` edge in the connection. */ +export interface OrgGetManagersEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `OrgGetManagersRecord` at the end of the edge. */ + node?: OrgGetManagersRecord | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -3447,6 +3989,18 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } +/** A `OrgGetSubordinatesRecord` edge in the connection. */ +export interface OrgGetSubordinatesEdge { + cursor?: string | null; + /** The `OrgGetSubordinatesRecord` at the end of the edge. */ + node?: OrgGetSubordinatesRecord | null; +} +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -3489,18 +4043,6 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -3513,12 +4055,30 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; /** The `MembershipType` at the end of the edge. */ node?: MembershipType | null; } +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -3573,24 +4133,30 @@ export interface OrgGrantEdge { /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `OrgMembershipDefault` edge in the connection. */ export interface OrgMembershipDefaultEdge { cursor?: string | null; /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} /** A `Invite` edge in the connection. */ export interface InviteEdge { cursor?: string | null; /** The `Invite` at the end of the edge. */ node?: Invite | null; } +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index f9bd9b893..07c653c6f 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -5,6 +5,14 @@ */ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export interface OrgGetManagersRecord { + userId: string | null; + depth: number | null; +} +export interface OrgGetSubordinatesRecord { + userId: string | null; + depth: number | null; +} export interface AppPermission { id: string | null; name: string | null; @@ -60,16 +68,6 @@ export interface AppOwnerGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} export interface OrgAdminGrant { id: string | null; isGrant: boolean | null; @@ -88,12 +86,33 @@ export interface OrgOwnerGrant { createdAt: string | null; updatedAt: string | null; } +export interface AppLimitDefault { + id: string | null; + name: string | null; + max: number | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: number | null; +} export interface MembershipType { id: number | null; name: string | null; description: string | null; prefix: string | null; } +export interface OrgChartEdgeGrant { + id: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + grantorId: string | null; + isGrant: boolean | null; + positionTitle: string | null; + positionLevel: number | null; + createdAt: string | null; +} export interface AppLimit { id: string | null; name: string | null; @@ -170,6 +189,16 @@ export interface OrgGrant { createdAt: string | null; updatedAt: string | null; } +export interface OrgChartEdge { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; +} export interface OrgMembershipDefault { id: string | null; createdAt: string | null; @@ -181,15 +210,6 @@ export interface OrgMembershipDefault { deleteMemberCascadeGroups: boolean | null; createGroupsCascadeMembers: boolean | null; } -export interface AppLevel { - id: string | null; - name: string | null; - description: string | null; - image: ConstructiveInternalTypeImage | null; - ownerId: string | null; - createdAt: string | null; - updatedAt: string | null; -} export interface Invite { id: string | null; email: ConstructiveInternalTypeEmail | null; @@ -204,6 +224,15 @@ export interface Invite { createdAt: string | null; updatedAt: string | null; } +export interface AppLevel { + id: string | null; + name: string | null; + description: string | null; + image: ConstructiveInternalTypeImage | null; + ownerId: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface AppMembership { id: string | null; createdAt: string | null; @@ -220,6 +249,7 @@ export interface AppMembership { permissions: string | null; granted: string | null; actorId: string | null; + profileId: string | null; } export interface OrgMembership { id: string | null; @@ -237,6 +267,7 @@ export interface OrgMembership { granted: string | null; actorId: string | null; entityId: string | null; + profileId: string | null; } export interface OrgInvite { id: string | null; diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 874473cda..45931d894 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -37,31 +37,31 @@ function App() { | `useCreateRoleTypeMutation` | Mutation | Create a roleType | | `useUpdateRoleTypeMutation` | Mutation | Update a roleType | | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | -| `useCryptoAddressesQuery` | Query | List all cryptoAddresses | -| `useCryptoAddressQuery` | Query | Get one cryptoAddress | -| `useCreateCryptoAddressMutation` | Mutation | Create a cryptoAddress | -| `useUpdateCryptoAddressMutation` | Mutation | Update a cryptoAddress | -| `useDeleteCryptoAddressMutation` | Mutation | Delete a cryptoAddress | -| `usePhoneNumbersQuery` | Query | List all phoneNumbers | -| `usePhoneNumberQuery` | Query | Get one phoneNumber | -| `useCreatePhoneNumberMutation` | Mutation | Create a phoneNumber | -| `useUpdatePhoneNumberMutation` | Mutation | Update a phoneNumber | -| `useDeletePhoneNumberMutation` | Mutation | Delete a phoneNumber | -| `useConnectedAccountsQuery` | Query | List all connectedAccounts | -| `useConnectedAccountQuery` | Query | Get one connectedAccount | -| `useCreateConnectedAccountMutation` | Mutation | Create a connectedAccount | -| `useUpdateConnectedAccountMutation` | Mutation | Update a connectedAccount | -| `useDeleteConnectedAccountMutation` | Mutation | Delete a connectedAccount | -| `useEmailsQuery` | Query | List all emails | -| `useEmailQuery` | Query | Get one email | -| `useCreateEmailMutation` | Mutation | Create a email | -| `useUpdateEmailMutation` | Mutation | Update a email | -| `useDeleteEmailMutation` | Mutation | Delete a email | -| `useAuditLogsQuery` | Query | List all auditLogs | -| `useAuditLogQuery` | Query | Get one auditLog | -| `useCreateAuditLogMutation` | Mutation | Create a auditLog | -| `useUpdateAuditLogMutation` | Mutation | Update a auditLog | -| `useDeleteAuditLogMutation` | Mutation | Delete a auditLog | +| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useUpdateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useDeleteConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useAuditLogsQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | +| `useEmailQuery` | Query | User email addresses with verification and primary-email management | +| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | @@ -174,46 +174,46 @@ const { mutate: create } = useCreateConnectedAccountMutation({ create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` -### Email +### AuditLog ```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +// List all auditLogs +const { data, isLoading } = useAuditLogsQuery({ + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); -// Get one email -const { data: item } = useEmailQuery({ +// Get one auditLog +const { data: item } = useAuditLogQuery({ id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); -// Create a email -const { mutate: create } = useCreateEmailMutation({ +// Create a auditLog +const { mutate: create } = useCreateAuditLogMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); ``` -### AuditLog +### Email ```typescript -// List all auditLogs -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +// List all emails +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one auditLog -const { data: item } = useAuditLogQuery({ +// Get one email +const { data: item } = useEmailQuery({ id: '', - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a auditLog -const { mutate: create } = useCreateAuditLogMutation({ +// Create a email +const { mutate: create } = useCreateEmailMutation({ selection: { fields: { id: true } }, }); -create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); ``` ### User diff --git a/sdk/constructive-react/src/auth/hooks/index.ts b/sdk/constructive-react/src/auth/hooks/index.ts index 895139908..017d2646f 100644 --- a/sdk/constructive-react/src/auth/hooks/index.ts +++ b/sdk/constructive-react/src/auth/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: RoleType, CryptoAddress, PhoneNumber, ConnectedAccount, Email, AuditLog, User + * Tables: RoleType, CryptoAddress, PhoneNumber, ConnectedAccount, AuditLog, Email, User * * Usage: * diff --git a/sdk/constructive-react/src/auth/hooks/invalidation.ts b/sdk/constructive-react/src/auth/hooks/invalidation.ts index 355b6040a..631c7bece 100644 --- a/sdk/constructive-react/src/auth/hooks/invalidation.ts +++ b/sdk/constructive-react/src/auth/hooks/invalidation.ts @@ -19,8 +19,8 @@ import { cryptoAddressKeys, phoneNumberKeys, connectedAccountKeys, - emailKeys, auditLogKeys, + emailKeys, userKeys, } from './query-keys'; /** @@ -108,20 +108,6 @@ export const invalidate = { queryKey: connectedAccountKeys.detail(id), }), }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.all, - }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), - }), - }, /** Invalidate auditLog queries */ auditLog: { /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -136,6 +122,20 @@ export const invalidate = { queryKey: auditLogKeys.detail(id), }), }, + /** Invalidate email queries */ email: { + /** Invalidate all email queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.all, + }), + /** Invalidate email list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }), + /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(id), + }), + }, /** Invalidate user queries */ user: { /** Invalidate all user queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -192,14 +192,14 @@ export const remove = { queryKey: connectedAccountKeys.detail(id), }); }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { + /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: emailKeys.detail(id), + queryKey: auditLogKeys.detail(id), }); }, - /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { + /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: auditLogKeys.detail(id), + queryKey: emailKeys.detail(id), }); }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index 2c43a7d85..6aa28d36e 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -53,14 +53,6 @@ export const connectedAccountMutationKeys = { /** Delete connectedAccount mutation key */ delete: (id: string | number) => ['mutation', 'connectedaccount', 'delete', id] as const, } as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, -} as const; export const auditLogMutationKeys = { /** All auditLog mutation keys */ all: ['mutation', 'auditlog'] as const, /** Create auditLog mutation key */ create: () => ['mutation', 'auditlog', 'create'] as const, @@ -69,6 +61,14 @@ export const auditLogMutationKeys = { /** Delete auditLog mutation key */ delete: (id: string | number) => ['mutation', 'auditlog', 'delete', id] as const, } as const; +export const emailMutationKeys = { + /** All email mutation keys */ all: ['mutation', 'email'] as const, + /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, + /** Update email mutation key */ update: (id: string | number) => + ['mutation', 'email', 'update', id] as const, + /** Delete email mutation key */ delete: (id: string | number) => + ['mutation', 'email', 'delete', id] as const, +} as const; export const userMutationKeys = { /** All user mutation keys */ all: ['mutation', 'user'] as const, /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, @@ -173,8 +173,8 @@ export const mutationKeys = { cryptoAddress: cryptoAddressMutationKeys, phoneNumber: phoneNumberMutationKeys, connectedAccount: connectedAccountMutationKeys, - email: emailMutationKeys, auditLog: auditLogMutationKeys, + email: emailMutationKeys, user: userMutationKeys, custom: customMutationKeys, } 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 9d2309644..36c87a594 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -15,12 +15,12 @@ export * from './useDeletePhoneNumberMutation'; export * from './useCreateConnectedAccountMutation'; export * from './useUpdateConnectedAccountMutation'; export * from './useDeleteConnectedAccountMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; export * from './useCreateAuditLogMutation'; export * from './useUpdateAuditLogMutation'; export * from './useDeleteAuditLogMutation'; +export * from './useCreateEmailMutation'; +export * from './useUpdateEmailMutation'; +export * from './useDeleteEmailMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts index e05ac6080..fdf4c7f21 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAuditLogInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts index 0e381461b..b07049d9a 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateConnectedAccountInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts index cddfe450c..deda73055 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateCryptoAddressInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts index ff6741c90..3adbfe3b3 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts index f0a8f239b..7ccbf6084 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePhoneNumberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts index 694be08d8..6abac002e 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AuditLog with typed selection + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts index 29212bade..baf933521 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ConnectedAccount with typed selection + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts index 15d7507ac..34ad5f33d 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a CryptoAddress with typed selection + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts index 55d906a64..ee9259023 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Email with typed selection + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts index a76ed1b26..7e4e74481 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a PhoneNumber with typed selection + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts index c1f3aba69..94417ca87 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts index 826dce155..3615b7022 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ConnectedAccountPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts index f1987ec6e..f154244b5 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CryptoAddressPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts index 89c8a59da..94c754ac4 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts index e78b8e139..fa058b143 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { PhoneNumberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index 8b206fe2d..3c45a0896 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -11,10 +11,10 @@ export * from './usePhoneNumbersQuery'; export * from './usePhoneNumberQuery'; export * from './useConnectedAccountsQuery'; export * from './useConnectedAccountQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; export * from './useAuditLogsQuery'; export * from './useAuditLogQuery'; +export * from './useEmailsQuery'; +export * from './useEmailQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; export * from './useCurrentIpAddressQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts index 99af2d7fe..ccfe6231a 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const auditLogQueryKey = auditLogKeys.detail; /** - * Query hook for fetching a single AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAuditLogQuery( }); } /** - * Fetch a single AuditLog without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAuditLogQuery(params: { .unwrap(); } /** - * Prefetch a single AuditLog for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts index 2fd0f9384..aca271c1d 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const auditLogsQueryKey = auditLogKeys.list; /** - * Query hook for fetching AuditLog list + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAuditLogsQuery( }); } /** - * Fetch AuditLog list without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAuditLogsQuery(params: { return getClient().auditLog.findMany(args).unwrap(); } /** - * Prefetch AuditLog list for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts index 21a88edf9..913b660d4 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountQueryKey = connectedAccountKeys.detail; /** - * Query hook for fetching a single ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -70,7 +70,7 @@ export function useConnectedAccountQuery( }); } /** - * Fetch a single ConnectedAccount without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchConnectedAccountQuery(params: { .unwrap(); } /** - * Prefetch a single ConnectedAccount for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts index 326e1b80c..b75ee2f80 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountsQueryKey = connectedAccountKeys.list; /** - * Query hook for fetching ConnectedAccount list + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -90,7 +90,7 @@ export function useConnectedAccountsQuery( }); } /** - * Fetch ConnectedAccount list without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchConnectedAccountsQuery(params: { return getClient().connectedAccount.findMany(args).unwrap(); } /** - * Prefetch ConnectedAccount list for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts index cc9c73a90..71a5ea067 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressQueryKey = cryptoAddressKeys.detail; /** - * Query hook for fetching a single CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCryptoAddressQuery( }); } /** - * Fetch a single CryptoAddress without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCryptoAddressQuery(params: { .unwrap(); } /** - * Prefetch a single CryptoAddress for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts index 33cafeede..ffb35cc20 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressesQueryKey = cryptoAddressKeys.list; /** - * Query hook for fetching CryptoAddress list + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -86,7 +86,7 @@ export function useCryptoAddressesQuery( }); } /** - * Fetch CryptoAddress list without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchCryptoAddressesQuery(params: { return getClient().cryptoAddress.findMany(args).unwrap(); } /** - * Prefetch CryptoAddress list for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts index d954e6328..c8e881673 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const emailQueryKey = emailKeys.detail; /** - * Query hook for fetching a single Email + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -70,7 +70,7 @@ export function useEmailQuery( }); } /** - * Fetch a single Email without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchEmailQuery(params: { .unwrap(); } /** - * Prefetch a single Email for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts index 1dca30b06..44aa1f0ce 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const emailsQueryKey = emailKeys.list; /** - * Query hook for fetching Email list + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -82,7 +82,7 @@ export function useEmailsQuery( }); } /** - * Fetch Email list without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchEmailsQuery(params: { return getClient().email.findMany(args).unwrap(); } /** - * Prefetch Email list for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts index 7c7f6a47d..80a507f4f 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu /** Query key factory - re-exported from query-keys.ts */ export const phoneNumberQueryKey = phoneNumberKeys.detail; /** - * Query hook for fetching a single PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -70,7 +70,7 @@ export function usePhoneNumberQuery( }); } /** - * Fetch a single PhoneNumber without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchPhoneNumberQuery(params: { .unwrap(); } /** - * Prefetch a single PhoneNumber for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts index 3282244e1..1811e4e8f 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const phoneNumbersQueryKey = phoneNumberKeys.list; /** - * Query hook for fetching PhoneNumber list + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -84,7 +84,7 @@ export function usePhoneNumbersQuery( }); } /** - * Fetch PhoneNumber list without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchPhoneNumbersQuery(params: { return getClient().phoneNumber.findMany(args).unwrap(); } /** - * Prefetch PhoneNumber list for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index e3e2a4530..7df8f49ce 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -55,15 +55,6 @@ export const connectedAccountKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...connectedAccountKeys.details(), id] as const, } as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, -} as const; export const auditLogKeys = { /** All auditLog queries */ all: ['auditlog'] as const, /** List query keys */ lists: () => [...auditLogKeys.all, 'list'] as const, @@ -73,6 +64,15 @@ export const auditLogKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...auditLogKeys.details(), id] as const, } as const; +export const emailKeys = { + /** All email queries */ all: ['email'] as const, + /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailKeys.details(), id] as const, +} as const; export const userKeys = { /** All user queries */ all: ['user'] as const, /** List query keys */ lists: () => [...userKeys.all, 'list'] as const, @@ -120,8 +120,8 @@ export const queryKeys = { cryptoAddress: cryptoAddressKeys, phoneNumber: phoneNumberKeys, connectedAccount: connectedAccountKeys, - email: emailKeys, auditLog: auditLogKeys, + email: emailKeys, user: userKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 8b32eca79..19b4a6b78 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -25,8 +25,8 @@ const db = createClient({ | `cryptoAddress` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations @@ -168,75 +168,75 @@ const updated = await db.connectedAccount.update({ where: { id: '' }, dat const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.auditLog` -CRUD operations for Email records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.email` -CRUD operations for AuditLog records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` ### `db.user` diff --git a/sdk/constructive-react/src/auth/orm/index.ts b/sdk/constructive-react/src/auth/orm/index.ts index da3c30436..3718b175a 100644 --- a/sdk/constructive-react/src/auth/orm/index.ts +++ b/sdk/constructive-react/src/auth/orm/index.ts @@ -9,8 +9,8 @@ import { RoleTypeModel } from './models/roleType'; import { CryptoAddressModel } from './models/cryptoAddress'; import { PhoneNumberModel } from './models/phoneNumber'; import { ConnectedAccountModel } from './models/connectedAccount'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; +import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -51,8 +51,8 @@ export function createClient(config: OrmClientConfig) { cryptoAddress: new CryptoAddressModel(client), phoneNumber: new PhoneNumberModel(client), connectedAccount: new ConnectedAccountModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), + email: new EmailModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index eaf804378..4cc717c63 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -232,25 +232,35 @@ export interface RoleType { id: number; name?: string | null; } +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -260,29 +270,42 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface User { id: string; username?: string | null; @@ -318,12 +341,12 @@ export interface PhoneNumberRelations { export interface ConnectedAccountRelations { owner?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface UserRelations { roleType?: RoleType | null; } @@ -332,8 +355,8 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ export type RoleTypeSelect = { @@ -378,18 +401,6 @@ export type ConnectedAccountSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -403,6 +414,18 @@ export type AuditLogSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -463,18 +486,6 @@ export interface ConnectedAccountFilter { or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -488,6 +499,18 @@ export interface AuditLogFilter { or?: AuditLogFilter[]; not?: AuditLogFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -536,15 +559,6 @@ export interface ConnectedAccountCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -555,6 +569,15 @@ export interface AuditLogCondition { success?: boolean | null; createdAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface UserCondition { id?: string | null; username?: string | null; @@ -633,24 +656,6 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -671,6 +676,24 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type UserOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -788,30 +811,6 @@ export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -840,6 +839,30 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateUserInput { clientMutationId?: string; user: { @@ -1283,51 +1306,6 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -1373,6 +1351,51 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -1476,18 +1499,30 @@ export type ExtendTokenExpiresRecordSelect = { sessionId?: boolean; expiresAt?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -1556,18 +1591,6 @@ export type ConnectedAccountEdgeSelect = { select: ConnectedAccountSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -1580,6 +1603,18 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/auth/orm/models/index.ts b/sdk/constructive-react/src/auth/orm/models/index.ts index f0e6c6b1f..67ded861a 100644 --- a/sdk/constructive-react/src/auth/orm/models/index.ts +++ b/sdk/constructive-react/src/auth/orm/models/index.ts @@ -7,6 +7,6 @@ export { RoleTypeModel } from './roleType'; export { CryptoAddressModel } from './cryptoAddress'; export { PhoneNumberModel } from './phoneNumber'; export { ConnectedAccountModel } from './connectedAccount'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; +export { EmailModel } from './email'; export { UserModel } from './user'; diff --git a/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md b/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md deleted file mode 100644 index 70e896572..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddress - - - -ORM operations for CryptoAddress records - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md b/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md deleted file mode 100644 index 63d2d9969..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md b/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md deleted file mode 100644 index e5ba1e850..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md b/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md deleted file mode 100644 index d587afacb..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: '' }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md b/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md deleted file mode 100644 index 38c59f662..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: '' }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md b/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md deleted file mode 100644 index 2ac3f962d..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md b/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md deleted file mode 100644 index 2a77480fa..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumber - - - -ORM operations for PhoneNumber records - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/resetPassword.md b/sdk/constructive-react/src/auth/orm/skills/resetPassword.md deleted file mode 100644 index fe676ada5..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/resetPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: '' }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md deleted file mode 100644 index aaf0470b5..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md b/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md deleted file mode 100644 index 2f0cfea9a..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/setPassword.md b/sdk/constructive-react/src/auth/orm/skills/setPassword.md deleted file mode 100644 index bbf15b68d..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/setPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: '' }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md b/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md deleted file mode 100644 index 9a87fd088..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/signUp.md b/sdk/constructive-react/src/auth/orm/skills/signUp.md deleted file mode 100644 index 8c999d2b8..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/signUp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md b/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md deleted file mode 100644 index c9a3f4ac1..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: '' }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md b/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md deleted file mode 100644 index 10b75c518..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: '' }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md b/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md deleted file mode 100644 index 5541069f3..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: '' }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 71af54297..4754d1eb9 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -82,6 +82,15 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AuditLog`. */ +export type AuditLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC'; /** Methods to use when ordering `Email`. */ export type EmailOrderBy = | 'NATURAL' @@ -95,15 +104,6 @@ export type EmailOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AuditLog`. */ -export type AuditLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -281,123 +281,6 @@ export interface ConnectedAccountFilter { /** Negates the expression. */ not?: ConnectedAccountFilter; } -/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface EmailCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `ownerId` field. */ - ownerId?: string; - /** Checks for equality with the object’s `email` field. */ - email?: ConstructiveInternalTypeEmail; - /** Checks for equality with the object’s `isVerified` field. */ - isVerified?: boolean; - /** Checks for equality with the object’s `isPrimary` field. */ - isPrimary?: boolean; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; -} -/** 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 condition to be used against `AuditLog` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -522,6 +405,123 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface EmailCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; + /** Checks for equality with the object’s `isPrimary` field. */ + isPrimary?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; + /** 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?: EmailFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailFilter[]; + /** Negates the expression. */ + not?: EmailFilter; +} +/** 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 condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface UserCondition { /** Checks for equality with the object’s `id` field. */ @@ -720,8 +720,11 @@ export interface CreateCryptoAddressInput { 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; createdAt?: string; updatedAt?: string; @@ -735,9 +738,13 @@ export interface CreatePhoneNumberInput { 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; createdAt?: string; updatedAt?: string; @@ -757,25 +764,11 @@ export interface ConnectedAccountInput { identifier: string; /** Additional profile details extracted from this login method */ details: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; } -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface CreateAuditLogInput { clientMutationId?: string; /** The `AuditLog` to be created by this mutation. */ @@ -784,14 +777,39 @@ export interface CreateAuditLogInput { /** An input for mutations affecting `AuditLog` */ export interface AuditLogInput { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success: boolean; + /** Timestamp when the audit event was recorded */ createdAt?: string; } +export interface CreateEmailInput { + clientMutationId?: string; + /** The `Email` to be created by this mutation. */ + email: EmailInput; +} +/** An input for mutations affecting `Email` */ +export interface EmailInput { + id?: string; + ownerId?: string; + /** The email address */ + email: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface CreateUserInput { clientMutationId?: string; /** The `User` to be created by this mutation. */ @@ -829,8 +847,11 @@ export interface UpdateCryptoAddressInput { export interface CryptoAddressPatch { 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; createdAt?: string; updatedAt?: string; @@ -845,9 +866,13 @@ export interface UpdatePhoneNumberInput { export interface PhoneNumberPatch { 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; createdAt?: string; updatedAt?: string; @@ -868,26 +893,11 @@ export interface ConnectedAccountPatch { identifier?: string; /** Additional profile details extracted from this login method */ details?: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; } -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface UpdateAuditLogInput { clientMutationId?: string; id: string; @@ -897,13 +907,39 @@ export interface UpdateAuditLogInput { /** Represents an update to a `AuditLog`. Fields that are set will be updated. */ export interface AuditLogPatch { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success?: boolean; + /** Timestamp when the audit event was recorded */ + createdAt?: string; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; +} +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { + id?: string; + ownerId?: string; + /** The email address */ + email?: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; createdAt?: string; + updatedAt?: string; } export interface UpdateUserInput { clientMutationId?: string; @@ -921,6 +957,8 @@ export interface UserPatch { type?: number; createdAt?: string; updatedAt?: string; + /** File upload for the `profilePicture` field. */ + profilePictureUpload?: File; } export interface DeleteRoleTypeInput { clientMutationId?: string; @@ -938,11 +976,11 @@ export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { +export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface DeleteAuditLogInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } @@ -978,13 +1016,6 @@ export interface ConnectedAccountConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AuditLog` values. */ export interface AuditLogConnection { nodes: AuditLog[]; @@ -992,6 +1023,13 @@ export interface AuditLogConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `User` values. */ export interface UserConnection { nodes: User[]; @@ -1088,18 +1126,18 @@ export interface CreateConnectedAccountPayload { connectedAccount?: ConnectedAccount | null; connectedAccountEdge?: ConnectedAccountEdge | null; } -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ auditLog?: AuditLog | null; auditLogEdge?: AuditLogEdge | null; } +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -1130,18 +1168,18 @@ export interface UpdateConnectedAccountPayload { connectedAccount?: ConnectedAccount | null; connectedAccountEdge?: ConnectedAccountEdge | null; } -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface UpdateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was updated by this mutation. */ auditLog?: AuditLog | null; auditLogEdge?: AuditLogEdge | null; } +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface UpdateUserPayload { clientMutationId?: string | null; /** The `User` that was updated by this mutation. */ @@ -1172,18 +1210,18 @@ export interface DeleteConnectedAccountPayload { connectedAccount?: ConnectedAccount | null; connectedAccountEdge?: ConnectedAccountEdge | null; } -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface DeleteAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was deleted by this mutation. */ auditLog?: AuditLog | null; auditLogEdge?: AuditLogEdge | null; } +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface DeleteUserPayload { clientMutationId?: string | null; /** The `User` that was deleted by this mutation. */ @@ -1225,18 +1263,18 @@ export interface ConnectedAccountEdge { /** The `ConnectedAccount` at the end of the edge. */ node?: ConnectedAccount | null; } -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; /** The `AuditLog` at the end of the edge. */ node?: AuditLog | null; } +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; @@ -1286,18 +1324,30 @@ export interface ExtendTokenExpiresRecord { sessionId?: string | null; expiresAt?: string | null; } +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index 400bc21ad..a14c9a9ba 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -39,15 +39,6 @@ export interface ConnectedAccount { createdAt: string | null; updatedAt: string | null; } -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} export interface AuditLog { id: string | null; event: string | null; @@ -58,6 +49,15 @@ export interface AuditLog { success: boolean | null; createdAt: string | null; } +export interface Email { + id: string | null; + ownerId: string | null; + email: ConstructiveInternalTypeEmail | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} export interface User { id: string | null; username: string | null; diff --git a/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 71c5db4db..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md b/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md deleted file mode 100644 index 820b6d5fc..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md deleted file mode 100644 index 954943d90..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md b/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md deleted file mode 100644 index 43a46841f..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: '' }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/revParse.md b/sdk/constructive-react/src/objects/orm/skills/revParse.md deleted file mode 100644 index 0a1830ff8..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md b/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md deleted file mode 100644 index a5fa6e0d9..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md b/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md deleted file mode 100644 index 7248c0e1c..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/store.md b/sdk/constructive-react/src/objects/orm/skills/store.md deleted file mode 100644 index 1a9bfc8a5..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: 'value', databaseId: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index 27db180e0..eb26399c2 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 99 -- **Custom queries:** 18 +- **Tables:** 104 +- **Custom queries:** 19 - **Custom mutations:** 31 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 596e44489..73194c5a3 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -32,28 +32,32 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useOrgGetManagersQuery` | Query | List all orgGetManagers | +| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | +| `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | +| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | | `useGetAllQuery` | Query | List all getAll | | `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | -| `useAppPermissionsQuery` | Query | List all appPermissions | -| `useAppPermissionQuery` | Query | Get one appPermission | -| `useCreateAppPermissionMutation` | Mutation | Create a appPermission | -| `useUpdateAppPermissionMutation` | Mutation | Update a appPermission | -| `useDeleteAppPermissionMutation` | Mutation | Delete a appPermission | -| `useOrgPermissionsQuery` | Query | List all orgPermissions | -| `useOrgPermissionQuery` | Query | Get one orgPermission | -| `useCreateOrgPermissionMutation` | Mutation | Create a orgPermission | -| `useUpdateOrgPermissionMutation` | Mutation | Update a orgPermission | -| `useDeleteOrgPermissionMutation` | Mutation | Delete a orgPermission | +| `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `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 | +| `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 | | `useObjectsQuery` | Query | List all objects | | `useObjectQuery` | Query | Get one object | | `useCreateObjectMutation` | Mutation | Create a object | | `useUpdateObjectMutation` | Mutation | Update a object | | `useDeleteObjectMutation` | Mutation | Delete a object | -| `useAppLevelRequirementsQuery` | Query | Requirements to achieve a level | -| `useAppLevelRequirementQuery` | Query | Requirements to achieve a level | -| `useCreateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useUpdateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useDeleteAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | +| `useAppLevelRequirementsQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useAppLevelRequirementQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useCreateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useUpdateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useDeleteAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | | `useDatabasesQuery` | Query | List all databases | | `useDatabaseQuery` | Query | Get one database | | `useCreateDatabaseMutation` | Mutation | Create a database | @@ -94,11 +98,6 @@ function App() { | `useCreateIndexMutation` | Mutation | Create a index | | `useUpdateIndexMutation` | Mutation | Update a index | | `useDeleteIndexMutation` | Mutation | Delete a index | -| `useLimitFunctionsQuery` | Query | List all limitFunctions | -| `useLimitFunctionQuery` | Query | Get one limitFunction | -| `useCreateLimitFunctionMutation` | Mutation | Create a limitFunction | -| `useUpdateLimitFunctionMutation` | Mutation | Update a limitFunction | -| `useDeleteLimitFunctionMutation` | Mutation | Delete a limitFunction | | `usePoliciesQuery` | Query | List all policies | | `usePolicyQuery` | Query | Get one policy | | `useCreatePolicyMutation` | Mutation | Create a policy | @@ -154,66 +153,111 @@ function App() { | `useCreateTableTemplateModuleMutation` | Mutation | Create a tableTemplateModule | | `useUpdateTableTemplateModuleMutation` | Mutation | Update a tableTemplateModule | | `useDeleteTableTemplateModuleMutation` | Mutation | Delete a tableTemplateModule | +| `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. 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 node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. 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 node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. 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 node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. 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 node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `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. + - 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. | +| `useRelationProvisionQuery` | 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. + - 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. | +| `useCreateRelationProvisionMutation` | Mutation | 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. | +| `useUpdateRelationProvisionMutation` | Mutation | 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. | +| `useDeleteRelationProvisionMutation` | Mutation | 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. | | `useSchemaGrantsQuery` | Query | List all schemaGrants | | `useSchemaGrantQuery` | Query | Get one schemaGrant | | `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | | `useUpdateSchemaGrantMutation` | Mutation | Update a schemaGrant | | `useDeleteSchemaGrantMutation` | Mutation | Delete a schemaGrant | -| `useApiSchemasQuery` | Query | List all apiSchemas | -| `useApiSchemaQuery` | Query | Get one apiSchema | -| `useCreateApiSchemaMutation` | Mutation | Create a apiSchema | -| `useUpdateApiSchemaMutation` | Mutation | Update a apiSchema | -| `useDeleteApiSchemaMutation` | Mutation | Delete a apiSchema | -| `useApiModulesQuery` | Query | List all apiModules | -| `useApiModuleQuery` | Query | Get one apiModule | -| `useCreateApiModuleMutation` | Mutation | Create a apiModule | -| `useUpdateApiModuleMutation` | Mutation | Update a apiModule | -| `useDeleteApiModuleMutation` | Mutation | Delete a apiModule | -| `useDomainsQuery` | Query | List all domains | -| `useDomainQuery` | Query | Get one domain | -| `useCreateDomainMutation` | Mutation | Create a domain | -| `useUpdateDomainMutation` | Mutation | Update a domain | -| `useDeleteDomainMutation` | Mutation | Delete a domain | -| `useSiteMetadataQuery` | Query | List all siteMetadata | -| `useSiteMetadatumQuery` | Query | Get one siteMetadatum | -| `useCreateSiteMetadatumMutation` | Mutation | Create a siteMetadatum | -| `useUpdateSiteMetadatumMutation` | Mutation | Update a siteMetadatum | -| `useDeleteSiteMetadatumMutation` | Mutation | Delete a siteMetadatum | -| `useSiteModulesQuery` | Query | List all siteModules | -| `useSiteModuleQuery` | Query | Get one siteModule | -| `useCreateSiteModuleMutation` | Mutation | Create a siteModule | -| `useUpdateSiteModuleMutation` | Mutation | Update a siteModule | -| `useDeleteSiteModuleMutation` | Mutation | Delete a siteModule | -| `useSiteThemesQuery` | Query | List all siteThemes | -| `useSiteThemeQuery` | Query | Get one siteTheme | -| `useCreateSiteThemeMutation` | Mutation | Create a siteTheme | -| `useUpdateSiteThemeMutation` | Mutation | Update a siteTheme | -| `useDeleteSiteThemeMutation` | Mutation | Delete a siteTheme | -| `useProceduresQuery` | Query | List all procedures | -| `useProcedureQuery` | Query | Get one procedure | -| `useCreateProcedureMutation` | Mutation | Create a procedure | -| `useUpdateProcedureMutation` | Mutation | Update a procedure | -| `useDeleteProcedureMutation` | Mutation | Delete a procedure | +| `useDefaultPrivilegesQuery` | Query | List all defaultPrivileges | +| `useDefaultPrivilegeQuery` | Query | Get one defaultPrivilege | +| `useCreateDefaultPrivilegeMutation` | Mutation | Create a defaultPrivilege | +| `useUpdateDefaultPrivilegeMutation` | Mutation | Update a defaultPrivilege | +| `useDeleteDefaultPrivilegeMutation` | Mutation | Delete a defaultPrivilege | +| `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 | +| `useUpdateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useDeleteApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useApiModulesQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useApiModuleQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useCreateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useUpdateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useDeleteApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useDomainsQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useDomainQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useCreateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useUpdateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useDeleteDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useSiteMetadataQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useSiteMetadatumQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useCreateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useUpdateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useDeleteSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useSiteModulesQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useSiteModuleQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useCreateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useUpdateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useDeleteSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useSiteThemesQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useSiteThemeQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useCreateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useUpdateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useDeleteSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | | `useTriggerFunctionsQuery` | Query | List all triggerFunctions | | `useTriggerFunctionQuery` | Query | Get one triggerFunction | | `useCreateTriggerFunctionMutation` | Mutation | Create a triggerFunction | | `useUpdateTriggerFunctionMutation` | Mutation | Update a triggerFunction | | `useDeleteTriggerFunctionMutation` | Mutation | Delete a triggerFunction | -| `useApisQuery` | Query | List all apis | -| `useApiQuery` | Query | Get one api | -| `useCreateApiMutation` | Mutation | Create a api | -| `useUpdateApiMutation` | Mutation | Update a api | -| `useDeleteApiMutation` | Mutation | Delete a api | -| `useSitesQuery` | Query | List all sites | -| `useSiteQuery` | Query | Get one site | -| `useCreateSiteMutation` | Mutation | Create a site | -| `useUpdateSiteMutation` | Mutation | Update a site | -| `useDeleteSiteMutation` | Mutation | Delete a site | -| `useAppsQuery` | Query | List all apps | -| `useAppQuery` | Query | Get one app | -| `useCreateAppMutation` | Mutation | Create a app | -| `useUpdateAppMutation` | Mutation | Update a app | -| `useDeleteAppMutation` | Mutation | Delete a app | +| `useApisQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useApiQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useCreateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useUpdateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useDeleteApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useSitesQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useSiteQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useCreateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useUpdateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useDeleteSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useAppsQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useAppQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useCreateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useUpdateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useDeleteAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | | `useConnectedAccountsModulesQuery` | Query | List all connectedAccountsModules | | `useConnectedAccountsModuleQuery` | Query | Get one connectedAccountsModule | | `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | @@ -329,91 +373,96 @@ function App() { | `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. | -| `useAppAdminGrantsQuery` | Query | List all appAdminGrants | -| `useAppAdminGrantQuery` | Query | Get one appAdminGrant | -| `useCreateAppAdminGrantMutation` | Mutation | Create a appAdminGrant | -| `useUpdateAppAdminGrantMutation` | Mutation | Update a appAdminGrant | -| `useDeleteAppAdminGrantMutation` | Mutation | Delete a appAdminGrant | -| `useAppOwnerGrantsQuery` | Query | List all appOwnerGrants | -| `useAppOwnerGrantQuery` | Query | Get one appOwnerGrant | -| `useCreateAppOwnerGrantMutation` | Mutation | Create a appOwnerGrant | -| `useUpdateAppOwnerGrantMutation` | Mutation | Update a appOwnerGrant | -| `useDeleteAppOwnerGrantMutation` | Mutation | Delete a appOwnerGrant | -| `useAppGrantsQuery` | Query | List all appGrants | -| `useAppGrantQuery` | Query | Get one appGrant | -| `useCreateAppGrantMutation` | Mutation | Create a appGrant | -| `useUpdateAppGrantMutation` | Mutation | Update a appGrant | -| `useDeleteAppGrantMutation` | Mutation | Delete a appGrant | -| `useOrgMembershipsQuery` | Query | List all orgMemberships | -| `useOrgMembershipQuery` | Query | Get one orgMembership | -| `useCreateOrgMembershipMutation` | Mutation | Create a orgMembership | -| `useUpdateOrgMembershipMutation` | Mutation | Update a orgMembership | -| `useDeleteOrgMembershipMutation` | Mutation | Delete a orgMembership | -| `useOrgMembersQuery` | Query | List all orgMembers | -| `useOrgMemberQuery` | Query | Get one orgMember | -| `useCreateOrgMemberMutation` | Mutation | Create a orgMember | -| `useUpdateOrgMemberMutation` | Mutation | Update a orgMember | -| `useDeleteOrgMemberMutation` | Mutation | Delete a orgMember | -| `useOrgAdminGrantsQuery` | Query | List all orgAdminGrants | -| `useOrgAdminGrantQuery` | Query | Get one orgAdminGrant | -| `useCreateOrgAdminGrantMutation` | Mutation | Create a orgAdminGrant | -| `useUpdateOrgAdminGrantMutation` | Mutation | Update a orgAdminGrant | -| `useDeleteOrgAdminGrantMutation` | Mutation | Delete a orgAdminGrant | -| `useOrgOwnerGrantsQuery` | Query | List all orgOwnerGrants | -| `useOrgOwnerGrantQuery` | Query | Get one orgOwnerGrant | -| `useCreateOrgOwnerGrantMutation` | Mutation | Create a orgOwnerGrant | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Update a orgOwnerGrant | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Delete a orgOwnerGrant | -| `useOrgGrantsQuery` | Query | List all orgGrants | -| `useOrgGrantQuery` | Query | Get one orgGrant | -| `useCreateOrgGrantMutation` | Mutation | Create a orgGrant | -| `useUpdateOrgGrantMutation` | Mutation | Update a orgGrant | -| `useDeleteOrgGrantMutation` | Mutation | Delete a orgGrant | -| `useAppLimitsQuery` | Query | List all appLimits | -| `useAppLimitQuery` | Query | Get one appLimit | -| `useCreateAppLimitMutation` | Mutation | Create a appLimit | -| `useUpdateAppLimitMutation` | Mutation | Update a appLimit | -| `useDeleteAppLimitMutation` | Mutation | Delete a appLimit | -| `useOrgLimitsQuery` | Query | List all orgLimits | -| `useOrgLimitQuery` | Query | Get one orgLimit | -| `useCreateOrgLimitMutation` | Mutation | Create a orgLimit | -| `useUpdateOrgLimitMutation` | Mutation | Update a orgLimit | -| `useDeleteOrgLimitMutation` | Mutation | Delete a orgLimit | -| `useAppStepsQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useAppStepQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useCreateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useUpdateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useDeleteAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useAppAchievementsQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useAppAchievementQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useCreateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useUpdateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useDeleteAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useInvitesQuery` | Query | List all invites | -| `useInviteQuery` | Query | Get one invite | -| `useCreateInviteMutation` | Mutation | Create a invite | -| `useUpdateInviteMutation` | Mutation | Update a invite | -| `useDeleteInviteMutation` | Mutation | Delete a invite | -| `useClaimedInvitesQuery` | Query | List all claimedInvites | -| `useClaimedInviteQuery` | Query | Get one claimedInvite | -| `useCreateClaimedInviteMutation` | Mutation | Create a claimedInvite | -| `useUpdateClaimedInviteMutation` | Mutation | Update a claimedInvite | -| `useDeleteClaimedInviteMutation` | Mutation | Delete a claimedInvite | -| `useOrgInvitesQuery` | Query | List all orgInvites | -| `useOrgInviteQuery` | Query | Get one orgInvite | -| `useCreateOrgInviteMutation` | Mutation | Create a orgInvite | -| `useUpdateOrgInviteMutation` | Mutation | Update a orgInvite | -| `useDeleteOrgInviteMutation` | Mutation | Delete a orgInvite | -| `useOrgClaimedInvitesQuery` | Query | List all orgClaimedInvites | -| `useOrgClaimedInviteQuery` | Query | Get one orgClaimedInvite | -| `useCreateOrgClaimedInviteMutation` | Mutation | Create a orgClaimedInvite | -| `useUpdateOrgClaimedInviteMutation` | Mutation | Update a orgClaimedInvite | -| `useDeleteOrgClaimedInviteMutation` | Mutation | Delete a orgClaimedInvite | -| `useAppPermissionDefaultsQuery` | Query | List all appPermissionDefaults | -| `useAppPermissionDefaultQuery` | Query | Get one appPermissionDefault | -| `useCreateAppPermissionDefaultMutation` | Mutation | Create a appPermissionDefault | -| `useUpdateAppPermissionDefaultMutation` | Mutation | Update a appPermissionDefault | -| `useDeleteAppPermissionDefaultMutation` | Mutation | Delete a appPermissionDefault | +| `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 | +| `useUpdateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useAppOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useAppOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `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 | +| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `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 | +| `useUpdateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useDeleteOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useAppStepsQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useAppStepQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useCreateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useUpdateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useDeleteAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useAppAchievementsQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppAchievementQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useCreateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useUpdateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useDeleteAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `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 | +| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | | `useRefQuery` | Query | A ref is a data structure for pointing to a commit. | | `useCreateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | @@ -424,81 +473,86 @@ function App() { | `useCreateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | | `useUpdateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | | `useDeleteStoreMutation` | Mutation | A store represents an isolated object repository within a database. | +| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useRoleTypesQuery` | Query | List all roleTypes | | `useRoleTypeQuery` | Query | Get one roleType | | `useCreateRoleTypeMutation` | Mutation | Create a roleType | | `useUpdateRoleTypeMutation` | Mutation | Update a roleType | | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | -| `useOrgPermissionDefaultsQuery` | Query | List all orgPermissionDefaults | -| `useOrgPermissionDefaultQuery` | Query | Get one orgPermissionDefault | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Create a orgPermissionDefault | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Update a orgPermissionDefault | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Delete a orgPermissionDefault | -| `useAppLimitDefaultsQuery` | Query | List all appLimitDefaults | -| `useAppLimitDefaultQuery` | Query | Get one appLimitDefault | -| `useCreateAppLimitDefaultMutation` | Mutation | Create a appLimitDefault | -| `useUpdateAppLimitDefaultMutation` | Mutation | Update a appLimitDefault | -| `useDeleteAppLimitDefaultMutation` | Mutation | Delete a appLimitDefault | -| `useOrgLimitDefaultsQuery` | Query | List all orgLimitDefaults | -| `useOrgLimitDefaultQuery` | Query | Get one orgLimitDefault | -| `useCreateOrgLimitDefaultMutation` | Mutation | Create a orgLimitDefault | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Update a orgLimitDefault | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Delete a orgLimitDefault | -| `useCryptoAddressesQuery` | Query | List all cryptoAddresses | -| `useCryptoAddressQuery` | Query | Get one cryptoAddress | -| `useCreateCryptoAddressMutation` | Mutation | Create a cryptoAddress | -| `useUpdateCryptoAddressMutation` | Mutation | Update a cryptoAddress | -| `useDeleteCryptoAddressMutation` | Mutation | Delete a cryptoAddress | -| `useMembershipTypesQuery` | Query | List all membershipTypes | -| `useMembershipTypeQuery` | Query | Get one membershipType | -| `useCreateMembershipTypeMutation` | Mutation | Create a membershipType | -| `useUpdateMembershipTypeMutation` | Mutation | Update a membershipType | -| `useDeleteMembershipTypeMutation` | Mutation | Delete a membershipType | -| `useConnectedAccountsQuery` | Query | List all connectedAccounts | -| `useConnectedAccountQuery` | Query | Get one connectedAccount | -| `useCreateConnectedAccountMutation` | Mutation | Create a connectedAccount | -| `useUpdateConnectedAccountMutation` | Mutation | Update a connectedAccount | -| `useDeleteConnectedAccountMutation` | Mutation | Delete a connectedAccount | -| `usePhoneNumbersQuery` | Query | List all phoneNumbers | -| `usePhoneNumberQuery` | Query | Get one phoneNumber | -| `useCreatePhoneNumberMutation` | Mutation | Create a phoneNumber | -| `useUpdatePhoneNumberMutation` | Mutation | Update a phoneNumber | -| `useDeletePhoneNumberMutation` | Mutation | Delete a phoneNumber | -| `useAppMembershipDefaultsQuery` | Query | List all appMembershipDefaults | -| `useAppMembershipDefaultQuery` | Query | Get one appMembershipDefault | -| `useCreateAppMembershipDefaultMutation` | Mutation | Create a appMembershipDefault | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Update a appMembershipDefault | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Delete a appMembershipDefault | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `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 | +| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useUpdateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useDeleteConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useNodeTypeRegistriesQuery` | Query | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useNodeTypeRegistryQuery` | Query | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useCreateNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useUpdateNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useDeleteNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useCommitsQuery` | Query | A commit records changes to the repository. | | `useCommitQuery` | Query | A commit records changes to the repository. | | `useCreateCommitMutation` | Mutation | A commit records changes to the repository. | | `useUpdateCommitMutation` | Mutation | A commit records changes to the repository. | | `useDeleteCommitMutation` | Mutation | A commit records changes to the repository. | -| `useOrgMembershipDefaultsQuery` | Query | List all orgMembershipDefaults | -| `useOrgMembershipDefaultQuery` | Query | Get one orgMembershipDefault | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Create a orgMembershipDefault | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Update a orgMembershipDefault | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Delete a orgMembershipDefault | -| `useEmailsQuery` | Query | List all emails | -| `useEmailQuery` | Query | Get one email | -| `useCreateEmailMutation` | Mutation | Create a email | -| `useUpdateEmailMutation` | Mutation | Update a email | -| `useDeleteEmailMutation` | Mutation | Delete a email | -| `useAuditLogsQuery` | Query | List all auditLogs | -| `useAuditLogQuery` | Query | Get one auditLog | -| `useCreateAuditLogMutation` | Mutation | Create a auditLog | -| `useUpdateAuditLogMutation` | Mutation | Update a auditLog | -| `useDeleteAuditLogMutation` | Mutation | Delete a auditLog | -| `useAppLevelsQuery` | Query | Levels for achievement | -| `useAppLevelQuery` | Query | Levels for achievement | -| `useCreateAppLevelMutation` | Mutation | Levels for achievement | -| `useUpdateAppLevelMutation` | Mutation | Levels for achievement | -| `useDeleteAppLevelMutation` | Mutation | Levels for achievement | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAuditLogsQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | +| `useEmailQuery` | Query | User email addresses with verification and primary-email management | +| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useSqlMigrationsQuery` | Query | List all sqlMigrations | | `useSqlMigrationQuery` | Query | Get one sqlMigration | | `useCreateSqlMigrationMutation` | Mutation | Create a sqlMigration | @@ -509,16 +563,16 @@ function App() { | `useCreateAstMigrationMutation` | Mutation | Create a astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | -| `useAppMembershipsQuery` | Query | List all appMemberships | -| `useAppMembershipQuery` | Query | Get one appMembership | -| `useCreateAppMembershipMutation` | Mutation | Create a appMembership | -| `useUpdateAppMembershipMutation` | Mutation | Update a appMembership | -| `useDeleteAppMembershipMutation` | Mutation | Delete a appMembership | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | | `useUpdateUserMutation` | Mutation | Update a user | | `useDeleteUserMutation` | Mutation | Delete a user | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `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 | | `useHierarchyModulesQuery` | Query | List all hierarchyModules | | `useHierarchyModuleQuery` | Query | Get one hierarchyModule | | `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | @@ -531,6 +585,7 @@ function App() { | `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | | `useStepsAchievedQuery` | Query | stepsAchieved | | `useRevParseQuery` | Query | revParse | +| `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | | `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | | `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | | `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | @@ -592,6 +647,36 @@ Example usage: ## Table Hooks +### OrgGetManagersRecord + +```typescript +// List all orgGetManagers +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetManagersRecord +const { mutate: create } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + +### OrgGetSubordinatesRecord + +```typescript +// List all orgGetSubordinates +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetSubordinatesRecord +const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + ### GetAllRecord ```typescript @@ -859,46 +944,25 @@ const { mutate: create } = useCreateIndexMutation({ create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` -### LimitFunction - -```typescript -// List all limitFunctions -const { data, isLoading } = useLimitFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }, -}); - -// Get one limitFunction -const { data: item } = useLimitFunctionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }, -}); - -// Create a limitFunction -const { mutate: create } = useCreateLimitFunctionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }); -``` - ### Policy ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: 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, module: 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, roleName: 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, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### PrimaryKeyConstraint @@ -927,20 +991,20 @@ create({ databaseId: '', tableId: '', name: '', type: '', - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, }); // Create a tableGrant const { mutate: create } = useCreateTableGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }); +create({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); ``` ### Trigger @@ -1032,20 +1096,20 @@ create({ viewId: '', tableId: '', joinOrder: '' }); ```typescript // List all viewGrants const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); // Get one viewGrant const { data: item } = useViewGrantQuery({ id: '', - selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); // Create a viewGrant const { mutate: create } = useCreateViewGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }); +create({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); ``` ### ViewRule @@ -1074,20 +1138,20 @@ create({ databaseId: '', viewId: '', name: '', event: '', - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }, }); // Create a tableModule const { mutate: create } = useCreateTableModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }); ``` ### TableTemplateModule @@ -1111,6 +1175,48 @@ const { mutate: create } = useCreateTableTemplateModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); ``` +### SecureTableProvision + +```typescript +// List all secureTableProvisions +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, +}); + +// Get one secureTableProvision +const { data: item } = useSecureTableProvisionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, +}); + +// Create a secureTableProvision +const { mutate: create } = useCreateSecureTableProvisionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }); +``` + +### RelationProvision + +```typescript +// List all relationProvisions +const { data, isLoading } = useRelationProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +}); + +// Get one relationProvision +const { data: item } = useRelationProvisionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +}); + +// Create a relationProvision +const { mutate: create } = useCreateRelationProvisionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); +``` + ### SchemaGrant ```typescript @@ -1132,6 +1238,27 @@ const { mutate: create } = useCreateSchemaGrantMutation({ create({ databaseId: '', schemaId: '', granteeName: '' }); ``` +### DefaultPrivilege + +```typescript +// List all defaultPrivileges +const { data, isLoading } = useDefaultPrivilegesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); + +// Get one defaultPrivilege +const { data: item } = useDefaultPrivilegeQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); + +// Create a defaultPrivilege +const { mutate: create } = useCreateDefaultPrivilegeMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` + ### ApiSchema ```typescript @@ -1258,27 +1385,6 @@ const { mutate: create } = useCreateSiteThemeMutation({ create({ databaseId: '', siteId: '', theme: '' }); ``` -### Procedure - -```typescript -// List all procedures -const { data, isLoading } = useProceduresQuery({ - selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one procedure -const { data: item } = useProcedureQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a procedure -const { mutate: create } = useCreateProcedureMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - ### TriggerFunction ```typescript @@ -1683,20 +1789,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```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, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Get one profilesModule const { data: item } = useProfilesModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); ``` ### RlsModule @@ -1914,20 +2020,20 @@ create({ permissions: '', isGrant: '', actorId: '', grantor ```typescript // List all orgMemberships const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Get one orgMembership const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Create a orgMembership const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` ### OrgMember @@ -2014,6 +2120,48 @@ const { mutate: create } = useCreateOrgGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` +### OrgChartEdge + +```typescript +// List all orgChartEdges +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); + +// Get one orgChartEdge +const { data: item } = useOrgChartEdgeQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); + +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +``` + +### OrgChartEdgeGrant + +```typescript +// List all orgChartEdgeGrants +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Get one orgChartEdgeGrant +const { data: item } = useOrgChartEdgeGrantQuery({ + id: '', + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Create a orgChartEdgeGrant +const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` + ### AppLimit ```typescript @@ -2182,27 +2330,6 @@ const { mutate: create } = useCreateOrgClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` -### AppPermissionDefault - -```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); - -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true } }, -}); - -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '' }); -``` - ### Ref ```typescript @@ -2245,6 +2372,27 @@ const { mutate: create } = useCreateStoreMutation({ create({ name: '', databaseId: '', hash: '' }); ``` +### AppPermissionDefault + +```typescript +// List all appPermissionDefaults +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, +}); + +// Get one appPermissionDefault +const { data: item } = useAppPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true } }, +}); + +// Create a appPermissionDefault +const { mutate: create } = useCreateAppPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '' }); +``` + ### RoleType ```typescript @@ -2287,6 +2435,27 @@ const { mutate: create } = useCreateOrgPermissionDefaultMutation({ create({ permissions: '', entityId: '' }); ``` +### CryptoAddress + +```typescript +// List all cryptoAddresses +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Get one cryptoAddress +const { data: item } = useCryptoAddressQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Create a cryptoAddress +const { mutate: create } = useCreateCryptoAddressMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); +``` + ### AppLimitDefault ```typescript @@ -2329,48 +2498,6 @@ const { mutate: create } = useCreateOrgLimitDefaultMutation({ create({ name: '', max: '' }); ``` -### CryptoAddress - -```typescript -// List all cryptoAddresses -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Get one cryptoAddress -const { data: item } = useCryptoAddressQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Create a cryptoAddress -const { mutate: create } = useCreateCryptoAddressMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); -``` - -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true } }, -}); - -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', description: '', prefix: '' }); -``` - ### ConnectedAccount ```typescript @@ -2413,25 +2540,25 @@ const { mutate: create } = useCreatePhoneNumberMutation({ create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); ``` -### AppMembershipDefault +### MembershipType ```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +create({ name: '', description: '', prefix: '' }); ``` ### NodeTypeRegistry @@ -2455,6 +2582,27 @@ const { mutate: create } = useCreateNodeTypeRegistryMutation({ create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); ``` +### AppMembershipDefault + +```typescript +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); + +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); + +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +``` + ### Commit ```typescript @@ -2497,27 +2645,6 @@ const { mutate: create } = useCreateOrgMembershipDefaultMutation({ create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); ``` -### Email - -```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Get one email -const { data: item } = useEmailQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Create a email -const { mutate: create } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); -``` - ### AuditLog ```typescript @@ -2560,6 +2687,27 @@ const { mutate: create } = useCreateAppLevelMutation({ create({ name: '', description: '', image: '', ownerId: '' }); ``` +### Email + +```typescript +// List all emails +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Get one email +const { data: item } = useEmailQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Create a email +const { mutate: create } = useCreateEmailMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +``` + ### SqlMigration ```typescript @@ -2602,46 +2750,46 @@ const { mutate: create } = useCreateAstMigrationMutation({ create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` -### AppMembership +### User ```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, +// List all users +const { data, isLoading } = useUsersQuery({ + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, }); -// Get one appMembership -const { data: item } = useAppMembershipQuery({ +// Get one user +const { data: item } = useUserQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, }); -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ +// Create a user +const { mutate: create } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); ``` -### User +### AppMembership ```typescript -// List all users -const { data, isLoading } = useUsersQuery({ - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +// List all appMemberships +const { data, isLoading } = useAppMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Get one user -const { data: item } = useUserQuery({ +// Get one appMembership +const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Create a user -const { mutate: create } = useCreateUserMutation({ +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### HierarchyModule @@ -2735,6 +2883,20 @@ revParse | `storeId` | UUID | | `refname` | String | +### `useOrgIsManagerOfQuery` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + ### `useAppPermissionsGetMaskQuery` appPermissionsGetMask diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index 448dfaf6d..549fc38e2 100644 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, LimitFunction, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, TableModule, TableTemplateModule, SchemaGrant, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, Procedure, TriggerFunction, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, FieldModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, RlsModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, UuidModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, AppLimit, OrgLimit, AppStep, AppAchievement, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, AppPermissionDefault, Ref, Store, RoleType, OrgPermissionDefault, AppLimitDefault, OrgLimitDefault, CryptoAddress, MembershipType, ConnectedAccount, PhoneNumber, AppMembershipDefault, NodeTypeRegistry, Commit, OrgMembershipDefault, Email, AuditLog, AppLevel, SqlMigration, AstMigration, AppMembership, User, HierarchyModule + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, TableModule, TableTemplateModule, SecureTableProvision, RelationProvision, SchemaGrant, DefaultPrivilege, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, FieldModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, RlsModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, UuidModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, AppLimit, OrgLimit, AppStep, AppAchievement, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, Ref, Store, AppPermissionDefault, RoleType, OrgPermissionDefault, CryptoAddress, AppLimitDefault, OrgLimitDefault, ConnectedAccount, PhoneNumber, MembershipType, NodeTypeRegistry, AppMembershipDefault, Commit, OrgMembershipDefault, AuditLog, AppLevel, Email, SqlMigration, AstMigration, User, AppMembership, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index 28d9e7c0e..c94f78832 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -15,6 +15,8 @@ import type { QueryClient } from '@tanstack/react-query'; import { + orgGetManagersRecordKeys, + orgGetSubordinatesRecordKeys, getAllRecordKeys, appPermissionKeys, orgPermissionKeys, @@ -28,7 +30,6 @@ import { foreignKeyConstraintKeys, fullTextSearchKeys, indexKeys, - limitFunctionKeys, policyKeys, primaryKeyConstraintKeys, tableGrantKeys, @@ -40,14 +41,16 @@ import { viewRuleKeys, tableModuleKeys, tableTemplateModuleKeys, + secureTableProvisionKeys, + relationProvisionKeys, schemaGrantKeys, + defaultPrivilegeKeys, apiSchemaKeys, apiModuleKeys, domainKeys, siteMetadatumKeys, siteModuleKeys, siteThemeKeys, - procedureKeys, triggerFunctionKeys, apiKeys, siteKeys, @@ -83,6 +86,8 @@ import { orgAdminGrantKeys, orgOwnerGrantKeys, orgGrantKeys, + orgChartEdgeKeys, + orgChartEdgeGrantKeys, appLimitKeys, orgLimitKeys, appStepKeys, @@ -91,28 +96,28 @@ import { claimedInviteKeys, orgInviteKeys, orgClaimedInviteKeys, - appPermissionDefaultKeys, refKeys, storeKeys, + appPermissionDefaultKeys, roleTypeKeys, orgPermissionDefaultKeys, + cryptoAddressKeys, appLimitDefaultKeys, orgLimitDefaultKeys, - cryptoAddressKeys, - membershipTypeKeys, connectedAccountKeys, phoneNumberKeys, - appMembershipDefaultKeys, + membershipTypeKeys, nodeTypeRegistryKeys, + appMembershipDefaultKeys, commitKeys, orgMembershipDefaultKeys, - emailKeys, auditLogKeys, appLevelKeys, + emailKeys, sqlMigrationKeys, astMigrationKeys, - appMembershipKeys, userKeys, + appMembershipKeys, hierarchyModuleKeys, } from './query-keys'; /** @@ -135,6 +140,40 @@ import { * ``` */ export const invalidate = { + /** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: { + /** Invalidate all orgGetManagersRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.all, + }), + /** Invalidate orgGetManagersRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }), + /** Invalidate a specific orgGetManagersRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }), + }, + /** Invalidate orgGetSubordinatesRecord queries */ orgGetSubordinatesRecord: { + /** Invalidate all orgGetSubordinatesRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.all, + }), + /** Invalidate orgGetSubordinatesRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }), + /** Invalidate a specific orgGetSubordinatesRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }), + }, /** Invalidate getAllRecord queries */ getAllRecord: { /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -338,23 +377,6 @@ export const invalidate = { queryKey: indexKeys.detail(id), }), }, - /** Invalidate limitFunction queries */ limitFunction: { - /** Invalidate all limitFunction queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.all, - }), - /** Invalidate limitFunction list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }), - /** Invalidate a specific limitFunction */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.detail(id), - }), - }, /** Invalidate policy queries */ policy: { /** Invalidate all policy queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -530,6 +552,40 @@ export const invalidate = { queryKey: tableTemplateModuleKeys.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 relationProvision queries */ relationProvision: { + /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.all, + }), + /** Invalidate relationProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }), + /** Invalidate a specific relationProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.detail(id), + }), + }, /** Invalidate schemaGrant queries */ schemaGrant: { /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -547,6 +603,23 @@ export const invalidate = { queryKey: schemaGrantKeys.detail(id), }), }, + /** Invalidate defaultPrivilege queries */ defaultPrivilege: { + /** Invalidate all defaultPrivilege queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.all, + }), + /** Invalidate defaultPrivilege list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }), + /** Invalidate a specific defaultPrivilege */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.detail(id), + }), + }, /** Invalidate apiSchema queries */ apiSchema: { /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -646,23 +719,6 @@ export const invalidate = { queryKey: siteThemeKeys.detail(id), }), }, - /** Invalidate procedure queries */ procedure: { - /** Invalidate all procedure queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: procedureKeys.all, - }), - /** Invalidate procedure list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }), - /** Invalidate a specific procedure */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: procedureKeys.detail(id), - }), - }, /** Invalidate triggerFunction queries */ triggerFunction: { /** Invalidate all triggerFunction queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1243,6 +1299,40 @@ export const invalidate = { queryKey: orgGrantKeys.detail(id), }), }, + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.all, + }), + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }), + /** Invalidate a specific orgChartEdge */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.detail(id), + }), + }, + /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { + /** Invalidate all orgChartEdgeGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.all, + }), + /** Invalidate orgChartEdgeGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }), + /** Invalidate a specific orgChartEdgeGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }), + }, /** Invalidate appLimit queries */ appLimit: { /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1367,23 +1457,6 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, - /** Invalidate appPermissionDefault queries */ appPermissionDefault: { - /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.all, - }), - /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific appPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }), - }, /** Invalidate ref queries */ ref: { /** Invalidate all ref queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1412,6 +1485,23 @@ export const invalidate = { queryKey: storeKeys.detail(id), }), }, + /** Invalidate appPermissionDefault queries */ appPermissionDefault: { + /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.all, + }), + /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }), + /** Invalidate a specific appPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.detail(id), + }), + }, /** Invalidate roleType queries */ roleType: { /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1443,6 +1533,23 @@ export const invalidate = { queryKey: orgPermissionDefaultKeys.detail(id), }), }, + /** Invalidate cryptoAddress queries */ cryptoAddress: { + /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.all, + }), + /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }), + /** Invalidate a specific cryptoAddress */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.detail(id), + }), + }, /** Invalidate appLimitDefault queries */ appLimitDefault: { /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1477,40 +1584,6 @@ export const invalidate = { queryKey: orgLimitDefaultKeys.detail(id), }), }, - /** Invalidate cryptoAddress queries */ cryptoAddress: { - /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.all, - }), - /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }), - /** Invalidate a specific cryptoAddress */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, - }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }), - /** Invalidate a specific membershipType */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), - }), - }, /** Invalidate connectedAccount queries */ connectedAccount: { /** Invalidate all connectedAccount queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1545,21 +1618,21 @@ export const invalidate = { queryKey: phoneNumberKeys.detail(id), }), }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific appMembershipDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { @@ -1579,6 +1652,23 @@ export const invalidate = { queryKey: nodeTypeRegistryKeys.detail(id), }), }, + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.all, + }), + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific appMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }), + }, /** Invalidate commit queries */ commit: { /** Invalidate all commit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1610,20 +1700,6 @@ export const invalidate = { queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.all, - }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), - }), - }, /** Invalidate auditLog queries */ auditLog: { /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1652,6 +1728,20 @@ export const invalidate = { queryKey: appLevelKeys.detail(id), }), }, + /** Invalidate email queries */ email: { + /** Invalidate all email queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.all, + }), + /** Invalidate email list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }), + /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(id), + }), + }, /** Invalidate sqlMigration queries */ sqlMigration: { /** Invalidate all sqlMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1686,6 +1776,20 @@ export const invalidate = { queryKey: astMigrationKeys.detail(id), }), }, + /** Invalidate user queries */ user: { + /** Invalidate all user queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userKeys.all, + }), + /** Invalidate user list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }), + /** Invalidate a specific user */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: userKeys.detail(id), + }), + }, /** Invalidate appMembership queries */ appMembership: { /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1703,20 +1807,6 @@ export const invalidate = { queryKey: appMembershipKeys.detail(id), }), }, - /** Invalidate user queries */ user: { - /** Invalidate all user queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userKeys.all, - }), - /** Invalidate user list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userKeys.lists(), - }), - /** Invalidate a specific user */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: userKeys.detail(id), - }), - }, /** Invalidate hierarchyModule queries */ hierarchyModule: { /** Invalidate all hierarchyModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1747,6 +1837,22 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }); + }, + /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }); + }, /** Remove getAllRecord from cache */ getAllRecord: ( queryClient: QueryClient, id: string | number @@ -1833,14 +1939,6 @@ export const remove = { queryKey: indexKeys.detail(id), }); }, - /** Remove limitFunction from cache */ limitFunction: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: limitFunctionKeys.detail(id), - }); - }, /** Remove policy from cache */ policy: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: policyKeys.detail(id), @@ -1911,6 +2009,22 @@ export const remove = { queryKey: tableTemplateModuleKeys.detail(id), }); }, + /** Remove secureTableProvision from cache */ secureTableProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: secureTableProvisionKeys.detail(id), + }); + }, + /** Remove relationProvision from cache */ relationProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: relationProvisionKeys.detail(id), + }); + }, /** Remove schemaGrant from cache */ schemaGrant: ( queryClient: QueryClient, id: string | number @@ -1919,6 +2033,14 @@ export const remove = { queryKey: schemaGrantKeys.detail(id), }); }, + /** Remove defaultPrivilege from cache */ defaultPrivilege: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: defaultPrivilegeKeys.detail(id), + }); + }, /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: apiSchemaKeys.detail(id), @@ -1955,11 +2077,6 @@ export const remove = { queryKey: siteThemeKeys.detail(id), }); }, - /** Remove procedure from cache */ procedure: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: procedureKeys.detail(id), - }); - }, /** Remove triggerFunction from cache */ triggerFunction: ( queryClient: QueryClient, id: string | number @@ -2219,6 +2336,22 @@ export const remove = { queryKey: orgGrantKeys.detail(id), }); }, + /** Remove orgChartEdge from cache */ orgChartEdge: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeKeys.detail(id), + }); + }, + /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }); + }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: appLimitKeys.detail(id), @@ -2268,14 +2401,6 @@ export const remove = { queryKey: orgClaimedInviteKeys.detail(id), }); }, - /** Remove appPermissionDefault from cache */ appPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }); - }, /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: refKeys.detail(id), @@ -2286,6 +2411,14 @@ export const remove = { queryKey: storeKeys.detail(id), }); }, + /** Remove appPermissionDefault from cache */ appPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultKeys.detail(id), + }); + }, /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: roleTypeKeys.detail(id), @@ -2299,36 +2432,28 @@ export const remove = { queryKey: orgPermissionDefaultKeys.detail(id), }); }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( + /** Remove cryptoAddress from cache */ cryptoAddress: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: cryptoAddressKeys.detail(id), }); }, - /** Remove cryptoAddress from cache */ cryptoAddress: ( + /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: cryptoAddressKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }); }, /** Remove connectedAccount from cache */ connectedAccount: ( @@ -2347,12 +2472,12 @@ export const remove = { queryKey: phoneNumberKeys.detail(id), }); }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( @@ -2363,6 +2488,14 @@ export const remove = { queryKey: nodeTypeRegistryKeys.detail(id), }); }, + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }); + }, /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: commitKeys.detail(id), @@ -2376,11 +2509,6 @@ export const remove = { queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: emailKeys.detail(id), - }); - }, /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: auditLogKeys.detail(id), @@ -2391,6 +2519,11 @@ export const remove = { queryKey: appLevelKeys.detail(id), }); }, + /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: emailKeys.detail(id), + }); + }, /** Remove sqlMigration from cache */ sqlMigration: ( queryClient: QueryClient, id: string | number @@ -2407,6 +2540,11 @@ export const remove = { queryKey: astMigrationKeys.detail(id), }); }, + /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: userKeys.detail(id), + }); + }, /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number @@ -2415,11 +2553,6 @@ export const remove = { queryKey: appMembershipKeys.detail(id), }); }, - /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: userKeys.detail(id), - }); - }, /** Remove hierarchyModule from cache */ hierarchyModule: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index 1ec5b0f6d..bf3852aee 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -18,6 +18,27 @@ // Entity Mutation Keys // ============================================================================ +export const orgGetManagersRecordMutationKeys = { + /** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'] as const, + /** Create orgGetManagersRecord mutation key */ create: () => + ['mutation', 'orggetmanagersrecord', 'create'] as const, + /** Update orgGetManagersRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'update', id] as const, + /** Delete orgGetManagersRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'delete', id] as const, +} as const; +export const orgGetSubordinatesRecordMutationKeys = { + /** All orgGetSubordinatesRecord mutation keys */ all: [ + 'mutation', + 'orggetsubordinatesrecord', + ] as const, + /** Create orgGetSubordinatesRecord mutation key */ create: () => + ['mutation', 'orggetsubordinatesrecord', 'create'] as const, + /** Update orgGetSubordinatesRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'update', id] as const, + /** Delete orgGetSubordinatesRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'delete', id] as const, +} as const; export const getAllRecordMutationKeys = { /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, /** Create getAllRecord mutation key */ create: () => @@ -129,15 +150,6 @@ export const indexMutationKeys = { /** Delete index mutation key */ delete: (id: string | number) => ['mutation', 'index', 'delete', id] as const, } as const; -export const limitFunctionMutationKeys = { - /** All limitFunction mutation keys */ all: ['mutation', 'limitfunction'] as const, - /** Create limitFunction mutation key */ create: () => - ['mutation', 'limitfunction', 'create'] as const, - /** Update limitFunction mutation key */ update: (id: string | number) => - ['mutation', 'limitfunction', 'update', id] as const, - /** Delete limitFunction mutation key */ delete: (id: string | number) => - ['mutation', 'limitfunction', 'delete', id] as const, -} as const; export const policyMutationKeys = { /** All policy mutation keys */ all: ['mutation', 'policy'] as const, /** Create policy mutation key */ create: () => ['mutation', 'policy', 'create'] as const, @@ -230,6 +242,24 @@ export const tableTemplateModuleMutationKeys = { /** Delete tableTemplateModule mutation key */ delete: (id: string | number) => ['mutation', 'tabletemplatemodule', '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 relationProvisionMutationKeys = { + /** All relationProvision mutation keys */ all: ['mutation', 'relationprovision'] as const, + /** Create relationProvision mutation key */ create: () => + ['mutation', 'relationprovision', 'create'] as const, + /** Update relationProvision mutation key */ update: (id: string | number) => + ['mutation', 'relationprovision', 'update', id] as const, + /** Delete relationProvision mutation key */ delete: (id: string | number) => + ['mutation', 'relationprovision', 'delete', id] as const, +} as const; export const schemaGrantMutationKeys = { /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, /** Create schemaGrant mutation key */ create: () => @@ -239,6 +269,15 @@ export const schemaGrantMutationKeys = { /** Delete schemaGrant mutation key */ delete: (id: string | number) => ['mutation', 'schemagrant', 'delete', id] as const, } as const; +export const defaultPrivilegeMutationKeys = { + /** All defaultPrivilege mutation keys */ all: ['mutation', 'defaultprivilege'] as const, + /** Create defaultPrivilege mutation key */ create: () => + ['mutation', 'defaultprivilege', 'create'] as const, + /** Update defaultPrivilege mutation key */ update: (id: string | number) => + ['mutation', 'defaultprivilege', 'update', id] as const, + /** Delete defaultPrivilege mutation key */ delete: (id: string | number) => + ['mutation', 'defaultprivilege', '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, @@ -288,14 +327,6 @@ export const siteThemeMutationKeys = { /** Delete siteTheme mutation key */ delete: (id: string | number) => ['mutation', 'sitetheme', 'delete', id] as const, } as const; -export const procedureMutationKeys = { - /** All procedure mutation keys */ all: ['mutation', 'procedure'] as const, - /** Create procedure mutation key */ create: () => ['mutation', 'procedure', 'create'] as const, - /** Update procedure mutation key */ update: (id: string | number) => - ['mutation', 'procedure', 'update', id] as const, - /** Delete procedure mutation key */ delete: (id: string | number) => - ['mutation', 'procedure', 'delete', id] as const, -} as const; export const triggerFunctionMutationKeys = { /** All triggerFunction mutation keys */ all: ['mutation', 'triggerfunction'] as const, /** Create triggerFunction mutation key */ create: () => @@ -621,6 +652,24 @@ export const orgGrantMutationKeys = { /** Delete orgGrant mutation key */ delete: (id: string | number) => ['mutation', 'orggrant', 'delete', id] as const, } as const; +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, +} as const; +export const orgChartEdgeGrantMutationKeys = { + /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, + /** Create orgChartEdgeGrant mutation key */ create: () => + ['mutation', 'orgchartedgegrant', 'create'] as const, + /** Update orgChartEdgeGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'update', id] as const, + /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'delete', id] as const, +} as const; export const appLimitMutationKeys = { /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, @@ -688,15 +737,6 @@ export const orgClaimedInviteMutationKeys = { /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'orgclaimedinvite', 'delete', id] as const, } as const; -export const appPermissionDefaultMutationKeys = { - /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, - /** Create appPermissionDefault mutation key */ create: () => - ['mutation', 'apppermissiondefault', 'create'] as const, - /** Update appPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefault', 'update', id] as const, - /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefault', 'delete', id] as const, -} as const; export const refMutationKeys = { /** All ref mutation keys */ all: ['mutation', 'ref'] as const, /** Create ref mutation key */ create: () => ['mutation', 'ref', 'create'] as const, @@ -713,6 +753,15 @@ export const storeMutationKeys = { /** Delete store mutation key */ delete: (id: string | number) => ['mutation', 'store', 'delete', id] as const, } as const; +export const appPermissionDefaultMutationKeys = { + /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, + /** Create appPermissionDefault mutation key */ create: () => + ['mutation', 'apppermissiondefault', 'create'] as const, + /** Update appPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'apppermissiondefault', 'update', id] as const, + /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'apppermissiondefault', 'delete', id] as const, +} as const; export const roleTypeMutationKeys = { /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, @@ -730,6 +779,15 @@ export const orgPermissionDefaultMutationKeys = { /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgpermissiondefault', 'delete', id] as const, } as const; +export const cryptoAddressMutationKeys = { + /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, + /** Create cryptoAddress mutation key */ create: () => + ['mutation', 'cryptoaddress', 'create'] as const, + /** Update cryptoAddress mutation key */ update: (id: string | number) => + ['mutation', 'cryptoaddress', 'update', id] as const, + /** Delete cryptoAddress mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoaddress', 'delete', id] as const, +} as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, /** Create appLimitDefault mutation key */ create: () => @@ -748,24 +806,6 @@ export const orgLimitDefaultMutationKeys = { /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; -export const cryptoAddressMutationKeys = { - /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, - /** Create cryptoAddress mutation key */ create: () => - ['mutation', 'cryptoaddress', 'create'] as const, - /** Update cryptoAddress mutation key */ update: (id: string | number) => - ['mutation', 'cryptoaddress', 'update', id] as const, - /** Delete cryptoAddress mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoaddress', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, -} as const; export const connectedAccountMutationKeys = { /** All connectedAccount mutation keys */ all: ['mutation', 'connectedaccount'] as const, /** Create connectedAccount mutation key */ create: () => @@ -784,14 +824,14 @@ export const phoneNumberMutationKeys = { /** Delete phoneNumber mutation key */ delete: (id: string | number) => ['mutation', 'phonenumber', 'delete', id] as const, } as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, } as const; export const nodeTypeRegistryMutationKeys = { /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, @@ -802,6 +842,15 @@ export const nodeTypeRegistryMutationKeys = { /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => ['mutation', 'nodetyperegistry', 'delete', id] as const, } as const; +export const appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; export const commitMutationKeys = { /** All commit mutation keys */ all: ['mutation', 'commit'] as const, /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, @@ -819,14 +868,6 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, -} as const; export const auditLogMutationKeys = { /** All auditLog mutation keys */ all: ['mutation', 'auditlog'] as const, /** Create auditLog mutation key */ create: () => ['mutation', 'auditlog', 'create'] as const, @@ -843,6 +884,14 @@ export const appLevelMutationKeys = { /** Delete appLevel mutation key */ delete: (id: string | number) => ['mutation', 'applevel', 'delete', id] as const, } as const; +export const emailMutationKeys = { + /** All email mutation keys */ all: ['mutation', 'email'] as const, + /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, + /** Update email mutation key */ update: (id: string | number) => + ['mutation', 'email', 'update', id] as const, + /** Delete email mutation key */ delete: (id: string | number) => + ['mutation', 'email', 'delete', id] as const, +} as const; export const sqlMigrationMutationKeys = { /** All sqlMigration mutation keys */ all: ['mutation', 'sqlmigration'] as const, /** Create sqlMigration mutation key */ create: () => @@ -861,6 +910,14 @@ export const astMigrationMutationKeys = { /** Delete astMigration mutation key */ delete: (id: string | number) => ['mutation', 'astmigration', 'delete', id] as const, } as const; +export const userMutationKeys = { + /** All user mutation keys */ all: ['mutation', 'user'] as const, + /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, + /** Update user mutation key */ update: (id: string | number) => + ['mutation', 'user', 'update', id] as const, + /** Delete user mutation key */ delete: (id: string | number) => + ['mutation', 'user', 'delete', id] as const, +} as const; export const appMembershipMutationKeys = { /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, /** Create appMembership mutation key */ create: () => @@ -870,14 +927,6 @@ export const appMembershipMutationKeys = { /** Delete appMembership mutation key */ delete: (id: string | number) => ['mutation', 'appmembership', 'delete', id] as const, } as const; -export const userMutationKeys = { - /** All user mutation keys */ all: ['mutation', 'user'] as const, - /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, - /** Update user mutation key */ update: (id: string | number) => - ['mutation', 'user', 'update', id] as const, - /** Delete user mutation key */ delete: (id: string | number) => - ['mutation', 'user', 'delete', id] as const, -} as const; export const hierarchyModuleMutationKeys = { /** All hierarchyModule mutation keys */ all: ['mutation', 'hierarchymodule'] as const, /** Create hierarchyModule mutation key */ create: () => @@ -1041,6 +1090,8 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + orgGetManagersRecord: orgGetManagersRecordMutationKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, getAllRecord: getAllRecordMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, @@ -1054,7 +1105,6 @@ export const mutationKeys = { foreignKeyConstraint: foreignKeyConstraintMutationKeys, fullTextSearch: fullTextSearchMutationKeys, index: indexMutationKeys, - limitFunction: limitFunctionMutationKeys, policy: policyMutationKeys, primaryKeyConstraint: primaryKeyConstraintMutationKeys, tableGrant: tableGrantMutationKeys, @@ -1066,14 +1116,16 @@ export const mutationKeys = { viewRule: viewRuleMutationKeys, tableModule: tableModuleMutationKeys, tableTemplateModule: tableTemplateModuleMutationKeys, + secureTableProvision: secureTableProvisionMutationKeys, + relationProvision: relationProvisionMutationKeys, schemaGrant: schemaGrantMutationKeys, + defaultPrivilege: defaultPrivilegeMutationKeys, apiSchema: apiSchemaMutationKeys, apiModule: apiModuleMutationKeys, domain: domainMutationKeys, siteMetadatum: siteMetadatumMutationKeys, siteModule: siteModuleMutationKeys, siteTheme: siteThemeMutationKeys, - procedure: procedureMutationKeys, triggerFunction: triggerFunctionMutationKeys, api: apiMutationKeys, site: siteMutationKeys, @@ -1109,6 +1161,8 @@ export const mutationKeys = { orgAdminGrant: orgAdminGrantMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, orgGrant: orgGrantMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, + orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appLimit: appLimitMutationKeys, orgLimit: orgLimitMutationKeys, appStep: appStepMutationKeys, @@ -1117,28 +1171,28 @@ export const mutationKeys = { claimedInvite: claimedInviteMutationKeys, orgInvite: orgInviteMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, - appPermissionDefault: appPermissionDefaultMutationKeys, ref: refMutationKeys, store: storeMutationKeys, + appPermissionDefault: appPermissionDefaultMutationKeys, roleType: roleTypeMutationKeys, orgPermissionDefault: orgPermissionDefaultMutationKeys, + cryptoAddress: cryptoAddressMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, - cryptoAddress: cryptoAddressMutationKeys, - membershipType: membershipTypeMutationKeys, connectedAccount: connectedAccountMutationKeys, phoneNumber: phoneNumberMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, + membershipType: membershipTypeMutationKeys, nodeTypeRegistry: nodeTypeRegistryMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, commit: commitMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, - email: emailMutationKeys, auditLog: auditLogMutationKeys, appLevel: appLevelMutationKeys, + email: emailMutationKeys, sqlMigration: sqlMigrationMutationKeys, astMigration: astMigrationMutationKeys, - appMembership: appMembershipMutationKeys, user: userMutationKeys, + appMembership: appMembershipMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index b5541e514..b49d917f3 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateOrgGetManagersRecordMutation'; +export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateGetAllRecordMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; @@ -40,9 +42,6 @@ export * from './useDeleteFullTextSearchMutation'; export * from './useCreateIndexMutation'; export * from './useUpdateIndexMutation'; export * from './useDeleteIndexMutation'; -export * from './useCreateLimitFunctionMutation'; -export * from './useUpdateLimitFunctionMutation'; -export * from './useDeleteLimitFunctionMutation'; export * from './useCreatePolicyMutation'; export * from './useUpdatePolicyMutation'; export * from './useDeletePolicyMutation'; @@ -76,9 +75,18 @@ export * from './useDeleteTableModuleMutation'; export * from './useCreateTableTemplateModuleMutation'; export * from './useUpdateTableTemplateModuleMutation'; export * from './useDeleteTableTemplateModuleMutation'; +export * from './useCreateSecureTableProvisionMutation'; +export * from './useUpdateSecureTableProvisionMutation'; +export * from './useDeleteSecureTableProvisionMutation'; +export * from './useCreateRelationProvisionMutation'; +export * from './useUpdateRelationProvisionMutation'; +export * from './useDeleteRelationProvisionMutation'; export * from './useCreateSchemaGrantMutation'; export * from './useUpdateSchemaGrantMutation'; export * from './useDeleteSchemaGrantMutation'; +export * from './useCreateDefaultPrivilegeMutation'; +export * from './useUpdateDefaultPrivilegeMutation'; +export * from './useDeleteDefaultPrivilegeMutation'; export * from './useCreateApiSchemaMutation'; export * from './useUpdateApiSchemaMutation'; export * from './useDeleteApiSchemaMutation'; @@ -97,9 +105,6 @@ export * from './useDeleteSiteModuleMutation'; export * from './useCreateSiteThemeMutation'; export * from './useUpdateSiteThemeMutation'; export * from './useDeleteSiteThemeMutation'; -export * from './useCreateProcedureMutation'; -export * from './useUpdateProcedureMutation'; -export * from './useDeleteProcedureMutation'; export * from './useCreateTriggerFunctionMutation'; export * from './useUpdateTriggerFunctionMutation'; export * from './useDeleteTriggerFunctionMutation'; @@ -205,6 +210,12 @@ export * from './useDeleteOrgOwnerGrantMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; +export * from './useCreateOrgChartEdgeGrantMutation'; +export * from './useUpdateOrgChartEdgeGrantMutation'; +export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppLimitMutation'; export * from './useUpdateAppLimitMutation'; export * from './useDeleteAppLimitMutation'; @@ -229,68 +240,68 @@ export * from './useDeleteOrgInviteMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateAppPermissionDefaultMutation'; -export * from './useUpdateAppPermissionDefaultMutation'; -export * from './useDeleteAppPermissionDefaultMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; export * from './useDeleteRefMutation'; export * from './useCreateStoreMutation'; export * from './useUpdateStoreMutation'; export * from './useDeleteStoreMutation'; +export * from './useCreateAppPermissionDefaultMutation'; +export * from './useUpdateAppPermissionDefaultMutation'; +export * from './useDeleteAppPermissionDefaultMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; export * from './useDeleteRoleTypeMutation'; export * from './useCreateOrgPermissionDefaultMutation'; export * from './useUpdateOrgPermissionDefaultMutation'; export * from './useDeleteOrgPermissionDefaultMutation'; +export * from './useCreateCryptoAddressMutation'; +export * from './useUpdateCryptoAddressMutation'; +export * from './useDeleteCryptoAddressMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; export * from './useCreateOrgLimitDefaultMutation'; export * from './useUpdateOrgLimitDefaultMutation'; export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateCryptoAddressMutation'; -export * from './useUpdateCryptoAddressMutation'; -export * from './useDeleteCryptoAddressMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; export * from './useCreateConnectedAccountMutation'; export * from './useUpdateConnectedAccountMutation'; export * from './useDeleteConnectedAccountMutation'; export * from './useCreatePhoneNumberMutation'; export * from './useUpdatePhoneNumberMutation'; export * from './useDeletePhoneNumberMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateNodeTypeRegistryMutation'; export * from './useUpdateNodeTypeRegistryMutation'; export * from './useDeleteNodeTypeRegistryMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; export * from './useCreateOrgMembershipDefaultMutation'; export * from './useUpdateOrgMembershipDefaultMutation'; export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; export * from './useCreateAuditLogMutation'; export * from './useUpdateAuditLogMutation'; export * from './useDeleteAuditLogMutation'; export * from './useCreateAppLevelMutation'; export * from './useUpdateAppLevelMutation'; export * from './useDeleteAppLevelMutation'; +export * from './useCreateEmailMutation'; +export * from './useUpdateEmailMutation'; +export * from './useDeleteEmailMutation'; export * from './useCreateSqlMigrationMutation'; export * from './useCreateAstMigrationMutation'; -export * from './useCreateAppMembershipMutation'; -export * from './useUpdateAppMembershipMutation'; -export * from './useDeleteAppMembershipMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; +export * from './useCreateAppMembershipMutation'; +export * from './useUpdateAppMembershipMutation'; +export * from './useDeleteAppMembershipMutation'; export * from './useCreateHierarchyModuleMutation'; export * from './useUpdateHierarchyModuleMutation'; export * from './useDeleteHierarchyModuleMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts index a57c9d102..2a1161da1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateApiModuleInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts index 2e5809137..73b599764 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts index 59aaaa033..da401cf44 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateApiSchemaInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts index 769f9a739..3e32e7437 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAchievementInput, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts index 7dd44401e..3c9af35db 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts index 0e2e4c286..c3ae518e1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts index ba7c1fd68..fe81072d0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelInput, } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts index 08cd438f8..792b9fc9f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelRequirementInput, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts index 40b24b14d..5e39d5c93 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts index b7f7072be..4831101f2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts index 0a4ecf4bc..cc66d20ab 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts index fa08b65df..e991ed8fd 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts index a43fe0b18..1da252feb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/input-types'; /** - * Mutation hook for creating a App + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts index 81f12be36..3f5a3413d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts index 1f2314266..1246a1892 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts index 73d4eceec..c76e9081a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts index 1e521eeaf..98022f147 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppStepInput, } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts index e05ac6080..fdf4c7f21 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAuditLogInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts index a84eca95c..1d73744e6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts index 0e381461b..b07049d9a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateConnectedAccountInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts index cddfe450c..deda73055 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateCryptoAddressInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts new file mode 100644 index 000000000..93680bfb2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DefaultPrivilege + * @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 { defaultPrivilegeKeys } from '../query-keys'; +import { defaultPrivilegeMutationKeys } from '../mutation-keys'; +import type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + CreateDefaultPrivilegeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + CreateDefaultPrivilegeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DefaultPrivilege + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDefaultPrivilegeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDefaultPrivilegeMutation( + params: { + selection: { + fields: S & DefaultPrivilegeSelect; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseMutationOptions< + { + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + CreateDefaultPrivilegeInput['defaultPrivilege'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + CreateDefaultPrivilegeInput['defaultPrivilege'] +>; +export function useCreateDefaultPrivilegeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultPrivilegeMutationKeys.create(), + mutationFn: (data: CreateDefaultPrivilegeInput['defaultPrivilege']) => + getClient() + .defaultPrivilege.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts index 75ee25a3c..ef30135a7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts index ff6741c90..3adbfe3b3 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts index 928d4f0cd..9ee97b57b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts deleted file mode 100644 index fe19f6107..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for LimitFunction - * @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 { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - CreateLimitFunctionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - CreateLimitFunctionInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a LimitFunction - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateLimitFunctionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - CreateLimitFunctionInput['limitFunction'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - CreateLimitFunctionInput['limitFunction'] ->; -export function useCreateLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.create(), - mutationFn: (data: CreateLimitFunctionInput['limitFunction']) => - getClient() - .limitFunction.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts index d8219655f..91c696e68 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateMembershipTypeInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts index 00687d7da..1f160dd1d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..2b4124103 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,91 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] +>; +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']) => + getClient() + .orgChartEdgeGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e5562dc1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts @@ -0,0 +1,88 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] +>; +export function useCreateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeInput['orgChartEdge']) => + getClient() + .orgChartEdge.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts index 4ee4b71c3..f08114d37 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts new file mode 100644 index 000000000..949ce4104 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetManagersRecord + * @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 { orgGetManagersRecordKeys } from '../query-keys'; +import { orgGetManagersRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetManagersRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: { + fields: S & OrgGetManagersRecordSelect; + } & HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] +>; +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetManagersRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetManagersRecordInput['orgGetManagersRecord']) => + getClient() + .orgGetManagersRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts new file mode 100644 index 000000000..237f47a7e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetSubordinatesRecord + * @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 { orgGetSubordinatesRecordKeys } from '../query-keys'; +import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetSubordinatesRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: { + fields: S & OrgGetSubordinatesRecordSelect; + } & HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] +>; +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetSubordinatesRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']) => + getClient() + .orgGetSubordinatesRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts index 391138997..7dc4d3025 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts index 6d65fa995..a81a94a9d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts index af559e6a2..42e50f62d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts index 33ed2f69e..d284edca9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts index 73bbfce52..14c7550f5 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMemberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts index 9c1290cfb..b043e29d7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts index e2b7c7e9b..84633ad1d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts index 9cec71f7f..974ac3430 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts index da1688a0f..187051476 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts index b1fd9fd3b..8c597cb08 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts index f0a8f239b..7ccbf6084 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePhoneNumberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts deleted file mode 100644 index a681e7cff..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for Procedure - * @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 { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - CreateProcedureInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - CreateProcedureInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a Procedure - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateProcedureMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - createProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - CreateProcedureInput['procedure'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - CreateProcedureInput['procedure'] ->; -export function useCreateProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.create(), - mutationFn: (data: CreateProcedureInput['procedure']) => - getClient() - .procedure.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts new file mode 100644 index 000000000..aa5d1e92b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts @@ -0,0 +1,105 @@ +/** + * 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. + * @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 { relationProvisionKeys } from '../query-keys'; +import { relationProvisionMutationKeys } from '../mutation-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, + CreateRelationProvisionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, + CreateRelationProvisionInput, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRelationProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRelationProvisionMutation( + params: { + selection: { + fields: S & RelationProvisionSelect; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseMutationOptions< + { + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + CreateRelationProvisionInput['relationProvision'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + CreateRelationProvisionInput['relationProvision'] +>; +export function useCreateRelationProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: relationProvisionMutationKeys.create(), + mutationFn: (data: CreateRelationProvisionInput['relationProvision']) => + getClient() + .relationProvision.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts new file mode 100644 index 000000000..f5d7ae8ed --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts @@ -0,0 +1,91 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @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 { secureTableProvisionKeys } from '../query-keys'; +import { secureTableProvisionMutationKeys } from '../mutation-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + CreateSecureTableProvisionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + CreateSecureTableProvisionInput, +} from '../../orm/input-types'; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSecureTableProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSecureTableProvisionMutation( + params: { + selection: { + fields: S & SecureTableProvisionSelect; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseMutationOptions< + { + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + CreateSecureTableProvisionInput['secureTableProvision'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + CreateSecureTableProvisionInput['secureTableProvision'] +>; +export function useCreateSecureTableProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secureTableProvisionMutationKeys.create(), + mutationFn: (data: CreateSecureTableProvisionInput['secureTableProvision']) => + getClient() + .secureTableProvision.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts index 08190bb1f..546be59b1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteMetadatumInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts index 89a52201a..91ea855f7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteModuleInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts index 771cd48a9..e85a007f4 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteSelect, SiteWithRelations, CreateSiteInput } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteSelect, SiteWithRelations, CreateSiteInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Site + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts index a95aacd27..f8f3d7bfa 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteThemeInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts index 0ba69d251..7fd53a43b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ApiModule with typed selection + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts index 96bf7f0e0..c708f9a46 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Api with typed selection + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts index 85bf06041..465e2c480 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ApiSchema with typed selection + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts index cbcdae607..0e5f05546 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAchievementSelect, AppAchievementWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts index 83efe201c..1962f80e9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts index 2dcc61484..16814431f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts index ae1a69ddd..cbef84ab8 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts index 624b78188..6784e56dc 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppLevelRequirementWithRelations, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts index 3d8cec160..d248f2be2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts index 9b3ebc52e..42ca8b532 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts index bd2d8e77b..c01ff2054 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts index 270821ab2..03a601e74 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts index 9ba2f036a..5bd1d4b12 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppSelect, AppWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppSelect, AppWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a App with typed selection + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts index 037ca9d28..836d241e1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts index 1c350f3fb..a9b23c747 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts index 327b4a107..b50268261 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts index 9144c5c0a..7e2de1198 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts index 694be08d8..6abac002e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AuditLog with typed selection + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts index 2c3709bd0..0a19b3fc7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts index 29212bade..baf933521 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ConnectedAccount with typed selection + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts index 15d7507ac..34ad5f33d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a CryptoAddress with typed selection + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts similarity index 53% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts rename to sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts index 05debf225..c9fe5cf73 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for LimitFunction + * Delete mutation hook for DefaultPrivilege * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,33 +9,33 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; +import { defaultPrivilegeKeys } from '../query-keys'; +import { defaultPrivilegeMutationKeys } from '../mutation-keys'; +import type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; +export type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a LimitFunction with typed selection + * Mutation hook for deleting a DefaultPrivilege with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteLimitFunctionMutation({ + * const { mutate, isPending } = useDeleteDefaultPrivilegeMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteLimitFunctionMutation( +export function useDeleteDefaultPrivilegeMutation( params: { selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; + fields: S & DefaultPrivilegeSelect; + } & HookStrictSelect, DefaultPrivilegeSelect>; } & Omit< UseMutationOptions< { - deleteLimitFunction: { - limitFunction: InferSelectResult; + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteLimitFunctionMutation( > ): UseMutationResult< { - deleteLimitFunction: { - limitFunction: InferSelectResult; + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteLimitFunctionMutation( id: string; } >; -export function useDeleteLimitFunctionMutation( +export function useDeleteDefaultPrivilegeMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteLimitFunctionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: limitFunctionMutationKeys.all, + mutationKey: defaultPrivilegeMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .limitFunction.delete({ + .defaultPrivilege.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteLimitFunctionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: limitFunctionKeys.detail(variables.id), + queryKey: defaultPrivilegeKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), + queryKey: defaultPrivilegeKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts index 34649edce..d402835b7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Domain with typed selection + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts index 55d906a64..ee9259023 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Email with typed selection + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts index bf9850ba6..7d0bc59be 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Invite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts index dbec0d9e9..71e81ffa9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a MembershipType with typed selection + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts index b2b62e271..dfd89d90e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..42b7b9e25 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts @@ -0,0 +1,104 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeGrantMutation( + 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: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdgeGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts new file mode 100644 index 000000000..3aad832ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts @@ -0,0 +1,98 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeMutation( + 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: orgChartEdgeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdge.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts index 267b1abfe..ecc7fc630 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts index 94b80fa12..3a1d1d967 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts index 2960aeac6..34ba21236 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgInvite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts index a8e7bf162..b7614b66f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts index 818a3b294..340ecce1f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts index 9c7697147..ed6a25761 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMember with typed selection + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts index e5c398c57..50fd07636 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts index 5108e73b9..62654c7ee 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts index 4700e63cd..834c27ca6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts index 841805104..a811eca53 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts index 0792b5be9..1c02a813a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts index a76ed1b26..7e4e74481 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a PhoneNumber with typed selection + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts new file mode 100644 index 000000000..d13cdb5e3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts @@ -0,0 +1,118 @@ +/** + * 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. + * @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 { relationProvisionKeys } from '../query-keys'; +import { relationProvisionMutationKeys } from '../mutation-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRelationProvisionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRelationProvisionMutation( + params: { + selection: { + fields: S & RelationProvisionSelect; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseMutationOptions< + { + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRelationProvisionMutation( + 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: relationProvisionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .relationProvision.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: relationProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts new file mode 100644 index 000000000..30c1959a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts @@ -0,0 +1,104 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @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 { secureTableProvisionKeys } from '../query-keys'; +import { secureTableProvisionMutationKeys } from '../mutation-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSecureTableProvisionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSecureTableProvisionMutation( + params: { + selection: { + fields: S & SecureTableProvisionSelect; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseMutationOptions< + { + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSecureTableProvisionMutation( + 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: secureTableProvisionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .secureTableProvision.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: secureTableProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts index 0801a13e4..1ba0e29fb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a SiteMetadatum with typed selection + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts index da2029857..7ba7290f8 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a SiteModule with typed selection + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts index 619c413b6..3355805bf 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Site with typed selection + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts index e09679eae..9eb7af1d6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a SiteTheme with typed selection + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts index 0cbf3cb8e..ad12de953 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ApiModulePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts index 27a304c25..273c129a0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts index 47185a7c0..90b950598 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ApiSchemaPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts index 837badc1b..ad055ea07 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAchievementPatch, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts index 9f97a4a26..a41e1b8b9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts index fe323065c..d0cb6ba8f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts index fbb3cc7b5..726bcffe8 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts index 07c816a74..01e6132c3 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLevelRequirementPatch, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts index e4bf58682..d5402ef93 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts index 673e80850..5f606dc73 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts index c2d03af41..72d872f42 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts index 21a8572d7..7ead9bdc2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts index 63d62de1f..36554896e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a App + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts index ec1d11eb5..7db485406 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts index 9413e7ad3..9933bb8eb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts index 73effb82a..0b42bacb2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts index a34404554..ed0cf895e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts index c1f3aba69..94417ca87 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts index 45ccdc49a..b1d1cecf9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts index 826dce155..3615b7022 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ConnectedAccountPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts index f1987ec6e..f154244b5 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CryptoAddressPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts new file mode 100644 index 000000000..240dacb20 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DefaultPrivilege + * @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 { defaultPrivilegeKeys } from '../query-keys'; +import { defaultPrivilegeMutationKeys } from '../mutation-keys'; +import type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DefaultPrivilege + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDefaultPrivilegeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', defaultPrivilegePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDefaultPrivilegeMutation( + params: { + selection: { + fields: S & DefaultPrivilegeSelect; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseMutationOptions< + { + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + } +>; +export function useUpdateDefaultPrivilegeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultPrivilegeMutationKeys.all, + mutationFn: ({ + id, + defaultPrivilegePatch, + }: { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + }) => + getClient() + .defaultPrivilege.update({ + where: { + id, + }, + data: defaultPrivilegePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts index d2cc9d031..bc4bfab4c 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { DomainSelect, DomainWithRelations, DomainPatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { DomainSelect, DomainWithRelations, DomainPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts index 89c8a59da..94c754ac4 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts index 819636de6..3c499b09e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts deleted file mode 100644 index ca0f69bbb..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for LimitFunction - * @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 { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionPatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a LimitFunction - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateLimitFunctionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', limitFunctionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } ->; -export function useUpdateLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.all, - mutationFn: ({ - id, - limitFunctionPatch, - }: { - id: string; - limitFunctionPatch: LimitFunctionPatch; - }) => - getClient() - .limitFunction.update({ - where: { - id, - }, - data: limitFunctionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts index caee90ff0..36101d2c0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { MembershipTypePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts index 41f8e6380..a33b9997e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..151d9fa11 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgeGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } +>; +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ + id, + orgChartEdgeGrantPatch, + }: { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + }) => + getClient() + .orgChartEdgeGrant.update({ + where: { + id, + }, + data: orgChartEdgeGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e169ad09a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts @@ -0,0 +1,110 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } +>; +export function useUpdateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.all, + mutationFn: ({ id, orgChartEdgePatch }: { id: string; orgChartEdgePatch: OrgChartEdgePatch }) => + getClient() + .orgChartEdge.update({ + where: { + id, + }, + data: orgChartEdgePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts index 8b2a21d55..536c3ba76 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts index fc612cf93..50e725580 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts index 5093adbfc..deae91a03 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts index 9226eadb8..c80fc084e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts index cd8f3baed..b911eef59 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts index 42f54bfc7..9afc577fb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMemberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts index 06b97181c..4536a0d0f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts index 5a8998fb2..af8939d5e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts index f1704e8be..3bd0c3ac2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts index b512499d2..b53a85a67 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts index 69be765f0..2704a2545 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts index e78b8e139..fa058b143 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { PhoneNumberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts deleted file mode 100644 index 7a4654e0e..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Update mutation hook for Procedure - * @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 { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - ProcedurePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - ProcedurePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a Procedure - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateProcedureMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', procedurePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - updateProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } ->; -export function useUpdateProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.all, - mutationFn: ({ id, procedurePatch }: { id: string; procedurePatch: ProcedurePatch }) => - getClient() - .procedure.update({ - where: { - id, - }, - data: procedurePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: procedureKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts new file mode 100644 index 000000000..d74fa64df --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts @@ -0,0 +1,130 @@ +/** + * 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. + * @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 { relationProvisionKeys } from '../query-keys'; +import { relationProvisionMutationKeys } from '../mutation-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionPatch, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRelationProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', relationProvisionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRelationProvisionMutation( + params: { + selection: { + fields: S & RelationProvisionSelect; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseMutationOptions< + { + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + relationProvisionPatch: RelationProvisionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + relationProvisionPatch: RelationProvisionPatch; + } +>; +export function useUpdateRelationProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + relationProvisionPatch: RelationProvisionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: relationProvisionMutationKeys.all, + mutationFn: ({ + id, + relationProvisionPatch, + }: { + id: string; + relationProvisionPatch: RelationProvisionPatch; + }) => + getClient() + .relationProvision.update({ + where: { + id, + }, + data: relationProvisionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts new file mode 100644 index 000000000..d6b41f846 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts @@ -0,0 +1,116 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @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 { secureTableProvisionKeys } from '../query-keys'; +import { secureTableProvisionMutationKeys } from '../mutation-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionPatch, +} from '../../orm/input-types'; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSecureTableProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', secureTableProvisionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSecureTableProvisionMutation( + params: { + selection: { + fields: S & SecureTableProvisionSelect; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseMutationOptions< + { + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + } +>; +export function useUpdateSecureTableProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secureTableProvisionMutationKeys.all, + mutationFn: ({ + id, + secureTableProvisionPatch, + }: { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + }) => + getClient() + .secureTableProvision.update({ + where: { + id, + }, + data: secureTableProvisionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts index ff095193b..b43af78cb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteMetadatumPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts index bad5e2c14..d03870a5a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteModulePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts index e0f36e311..6b95d2010 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteSelect, SiteWithRelations, SitePatch } from '../../orm/input-t import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteSelect, SiteWithRelations, SitePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Site + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts index 9f98fc641..48a015f09 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteThemePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts index dc028e7a2..031a33a34 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useOrgGetManagersQuery'; +export * from './useOrgGetSubordinatesQuery'; export * from './useGetAllQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; @@ -28,8 +30,6 @@ export * from './useFullTextSearchesQuery'; export * from './useFullTextSearchQuery'; export * from './useIndicesQuery'; export * from './useIndexQuery'; -export * from './useLimitFunctionsQuery'; -export * from './useLimitFunctionQuery'; export * from './usePoliciesQuery'; export * from './usePolicyQuery'; export * from './usePrimaryKeyConstraintsQuery'; @@ -52,8 +52,14 @@ export * from './useTableModulesQuery'; export * from './useTableModuleQuery'; export * from './useTableTemplateModulesQuery'; export * from './useTableTemplateModuleQuery'; +export * from './useSecureTableProvisionsQuery'; +export * from './useSecureTableProvisionQuery'; +export * from './useRelationProvisionsQuery'; +export * from './useRelationProvisionQuery'; export * from './useSchemaGrantsQuery'; export * from './useSchemaGrantQuery'; +export * from './useDefaultPrivilegesQuery'; +export * from './useDefaultPrivilegeQuery'; export * from './useApiSchemasQuery'; export * from './useApiSchemaQuery'; export * from './useApiModulesQuery'; @@ -66,8 +72,6 @@ export * from './useSiteModulesQuery'; export * from './useSiteModuleQuery'; export * from './useSiteThemesQuery'; export * from './useSiteThemeQuery'; -export * from './useProceduresQuery'; -export * from './useProcedureQuery'; export * from './useTriggerFunctionsQuery'; export * from './useTriggerFunctionQuery'; export * from './useApisQuery'; @@ -138,6 +142,10 @@ export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; +export * from './useOrgChartEdgeGrantsQuery'; +export * from './useOrgChartEdgeGrantQuery'; export * from './useAppLimitsQuery'; export * from './useAppLimitQuery'; export * from './useOrgLimitsQuery'; @@ -154,50 +162,50 @@ export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; -export * from './useAppPermissionDefaultsQuery'; -export * from './useAppPermissionDefaultQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; export * from './useStoresQuery'; export * from './useStoreQuery'; +export * from './useAppPermissionDefaultsQuery'; +export * from './useAppPermissionDefaultQuery'; export * from './useRoleTypesQuery'; export * from './useRoleTypeQuery'; export * from './useOrgPermissionDefaultsQuery'; export * from './useOrgPermissionDefaultQuery'; +export * from './useCryptoAddressesQuery'; +export * from './useCryptoAddressQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; -export * from './useCryptoAddressesQuery'; -export * from './useCryptoAddressQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; export * from './useConnectedAccountsQuery'; export * from './useConnectedAccountQuery'; export * from './usePhoneNumbersQuery'; export * from './usePhoneNumberQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useNodeTypeRegistriesQuery'; export * from './useNodeTypeRegistryQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; export * from './useCommitsQuery'; export * from './useCommitQuery'; export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; export * from './useAuditLogsQuery'; export * from './useAuditLogQuery'; export * from './useAppLevelsQuery'; export * from './useAppLevelQuery'; +export * from './useEmailsQuery'; +export * from './useEmailQuery'; export * from './useSqlMigrationsQuery'; export * from './useSqlMigrationQuery'; export * from './useAstMigrationsQuery'; export * from './useAstMigrationQuery'; -export * from './useAppMembershipsQuery'; -export * from './useAppMembershipQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; +export * from './useAppMembershipsQuery'; +export * from './useAppMembershipQuery'; export * from './useHierarchyModulesQuery'; export * from './useHierarchyModuleQuery'; export * from './useCurrentUserIdQuery'; @@ -207,6 +215,7 @@ export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgPermissionsGetPaddedMaskQuery'; export * from './useStepsAchievedQuery'; export * from './useRevParseQuery'; +export * from './useOrgIsManagerOfQuery'; export * from './useAppPermissionsGetMaskQuery'; export * from './useOrgPermissionsGetMaskQuery'; export * from './useAppPermissionsGetMaskByNamesQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts index feea7a029..d8ac6f281 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const apiModuleQueryKey = apiModuleKeys.detail; /** - * Query hook for fetching a single ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx @@ -70,7 +70,7 @@ export function useApiModuleQuery( }); } /** - * Fetch a single ApiModule without React hooks + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchApiModuleQuery(params: { .unwrap(); } /** - * Prefetch a single ApiModule for SSR or cache warming + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts index 29071cbfb..778a01ef9 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const apiModulesQueryKey = apiModuleKeys.list; /** - * Query hook for fetching ApiModule list + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx @@ -84,7 +84,7 @@ export function useApiModulesQuery( }); } /** - * Fetch ApiModule list without React hooks + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchApiModulesQuery(params: { return getClient().apiModule.findMany(args).unwrap(); } /** - * Prefetch ApiModule list for SSR or cache warming + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts index 090b98750..1ccc623da 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const apiQueryKey = apiKeys.detail; /** - * Query hook for fetching a single Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx @@ -70,7 +70,7 @@ export function useApiQuery( }); } /** - * Fetch a single Api without React hooks + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts @@ -98,7 +98,7 @@ export async function fetchApiQuery(params: { id: string; selection: SelectionCo .unwrap(); } /** - * Prefetch a single Api for SSR or cache warming + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts index 451fb0299..e0144dad2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const apiSchemaQueryKey = apiSchemaKeys.detail; /** - * Query hook for fetching a single ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx @@ -70,7 +70,7 @@ export function useApiSchemaQuery( }); } /** - * Fetch a single ApiSchema without React hooks + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchApiSchemaQuery(params: { .unwrap(); } /** - * Prefetch a single ApiSchema for SSR or cache warming + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts index 56efdb59a..c707c34cf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const apiSchemasQueryKey = apiSchemaKeys.list; /** - * Query hook for fetching ApiSchema list + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx @@ -84,7 +84,7 @@ export function useApiSchemasQuery( }); } /** - * Fetch ApiSchema list without React hooks + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchApiSchemasQuery(params: { return getClient().apiSchema.findMany(args).unwrap(); } /** - * Prefetch ApiSchema list for SSR or cache warming + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts index b3fa3b5bd..cd2130e61 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const apisQueryKey = apiKeys.list; /** - * Query hook for fetching Api list + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx @@ -72,7 +72,7 @@ export function useApisQuery( }); } /** - * Fetch Api list without React hooks + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchApisQuery(params: { return getClient().api.findMany(args).unwrap(); } /** - * Prefetch Api list for SSR or cache warming + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts index df345dff7..c7750c259 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAchievementSelect, AppAchievementWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const appAchievementQueryKey = appAchievementKeys.detail; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAchievementQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAchievementQuery(params: { .unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts index da6cdc397..d2b39ab84 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAchievementsQueryKey = appAchievementKeys.list; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppAchievementsQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchAppAchievementsQuery(params: { return getClient().appAchievement.findMany(args).unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts index d010f7876..dab440873 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantQueryKey = appAdminGrantKeys.detail; /** - * Query hook for fetching a single AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAdminGrantQuery( }); } /** - * Fetch a single AppAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts index eb47436de..c41e3bfcf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantsQueryKey = appAdminGrantKeys.list; /** - * Query hook for fetching AppAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppAdminGrantsQuery( }); } /** - * Fetch AppAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppAdminGrantsQuery(params: { return getClient().appAdminGrant.findMany(args).unwrap(); } /** - * Prefetch AppAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts index a730510c7..41777becd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appGrantQueryKey = appGrantKeys.detail; /** - * Query hook for fetching a single AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppGrantQuery( }); } /** - * Fetch a single AppGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts index cf20fe3c6..de0684b89 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appGrantsQueryKey = appGrantKeys.list; /** - * Query hook for fetching AppGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppGrantsQuery( }); } /** - * Fetch AppGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppGrantsQuery(params: { return getClient().appGrant.findMany(args).unwrap(); } /** - * Prefetch AppGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts index 6d494bc93..2d947f33f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLevelQueryKey = appLevelKeys.detail; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLevelQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLevelQuery(params: { .unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts index 1735a08d4..c446092be 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLevelRequirementQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLevelRequirementQuery(params: { .unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts index 502b029db..7dd162330 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLevelRequirementsQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchAppLevelRequirementsQuery(params: { return getClient().appLevelRequirement.findMany(args).unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts index b576855c9..4e237d953 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelsQueryKey = appLevelKeys.list; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLevelsQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLevelsQuery(params: { return getClient().appLevel.findMany(args).unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts index c68c8c7ca..3f9e92b4c 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; /** - * Query hook for fetching a single AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitDefaultQuery( }); } /** - * Fetch a single AppLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts index 8f702ecb1..25eb72182 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; /** - * Query hook for fetching AppLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppLimitDefaultsQuery( }); } /** - * Fetch AppLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchAppLimitDefaultsQuery(params: { return getClient().appLimitDefault.findMany(args).unwrap(); } /** - * Prefetch AppLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts index eb7beb27f..92f7ca2ab 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLimitQueryKey = appLimitKeys.detail; /** - * Query hook for fetching a single AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitQuery( }); } /** - * Fetch a single AppLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts index 280fd25e8..fc868ff90 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitsQueryKey = appLimitKeys.list; /** - * Query hook for fetching AppLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLimitsQuery( }); } /** - * Fetch AppLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLimitsQuery(params: { return getClient().appLimit.findMany(args).unwrap(); } /** - * Prefetch AppLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts index b34f50fc2..7cf34e91a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; /** - * Query hook for fetching a single AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppMembershipDefaultQuery( }); } /** - * Fetch a single AppMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts index bda74e8ba..a3722e798 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; /** - * Query hook for fetching AppMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppMembershipDefaultsQuery( }); } /** - * Fetch AppMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppMembershipDefaultsQuery(params: { return getClient().appMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch AppMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts index 5cd832890..47a401be2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appMembershipQueryKey = appMembershipKeys.detail; /** - * Query hook for fetching a single AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppMembershipQuery( }); } /** - * Fetch a single AppMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts index 714e4372b..4a7406a96 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipsQueryKey = appMembershipKeys.list; /** - * Query hook for fetching AppMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppMembershipsQuery( }); } /** - * Fetch AppMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppMembershipsQuery(params: { return getClient().appMembership.findMany(args).unwrap(); } /** - * Prefetch AppMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts index 49fcb6506..98a75b276 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; /** - * Query hook for fetching a single AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppOwnerGrantQuery( }); } /** - * Fetch a single AppOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts index 25a312bcc..3cd73b539 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; /** - * Query hook for fetching AppOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppOwnerGrantsQuery( }); } /** - * Fetch AppOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppOwnerGrantsQuery(params: { return getClient().appOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch AppOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts index 47eb66e64..27e973c84 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; /** - * Query hook for fetching a single AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppPermissionDefaultQuery( }); } /** - * Fetch a single AppPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts index 21414a9fb..44cdda731 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; /** - * Query hook for fetching AppPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppPermissionDefaultsQuery( }); } /** - * Fetch AppPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppPermissionDefaultsQuery(params: { return getClient().appPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch AppPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts index 37a00c5e9..a71c93422 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appPermissionQueryKey = appPermissionKeys.detail; /** - * Query hook for fetching a single AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppPermissionQuery( }); } /** - * Fetch a single AppPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts index f44f4e105..67d25dcdc 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionsQueryKey = appPermissionKeys.list; /** - * Query hook for fetching AppPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppPermissionsQuery( }); } /** - * Fetch AppPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppPermissionsQuery(params: { return getClient().appPermission.findMany(args).unwrap(); } /** - * Prefetch AppPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts index 517440db4..b01e48183 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppSelect, AppWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const appQueryKey = appKeys.detail; /** - * Query hook for fetching a single App + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppQuery( }); } /** - * Fetch a single App without React hooks + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts @@ -98,7 +98,7 @@ export async function fetchAppQuery(params: { id: string; selection: SelectionCo .unwrap(); } /** - * Prefetch a single App for SSR or cache warming + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts index d6d579aef..5d3ebbbd0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' /** Query key factory - re-exported from query-keys.ts */ export const appStepQueryKey = appStepKeys.detail; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppStepQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppStepQuery(params: { .unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts index 9a4ec77c5..a20c454ec 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appStepsQueryKey = appStepKeys.list; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppStepsQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppStepsQuery(params: { return getClient().appStep.findMany(args).unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts index 34c802258..da1d6a02d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppSelect, AppWithRelations, AppFilter, AppOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const appsQueryKey = appKeys.list; /** - * Query hook for fetching App list + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx @@ -72,7 +72,7 @@ export function useAppsQuery( }); } /** - * Fetch App list without React hooks + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchAppsQuery(params: { return getClient().app.findMany(args).unwrap(); } /** - * Prefetch App list for SSR or cache warming + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts index 99af2d7fe..ccfe6231a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const auditLogQueryKey = auditLogKeys.detail; /** - * Query hook for fetching a single AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAuditLogQuery( }); } /** - * Fetch a single AuditLog without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAuditLogQuery(params: { .unwrap(); } /** - * Prefetch a single AuditLog for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts index 2fd0f9384..aca271c1d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const auditLogsQueryKey = auditLogKeys.list; /** - * Query hook for fetching AuditLog list + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAuditLogsQuery( }); } /** - * Fetch AuditLog list without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAuditLogsQuery(params: { return getClient().auditLog.findMany(args).unwrap(); } /** - * Prefetch AuditLog list for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts index e74f389c7..e028debb3 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const claimedInviteQueryKey = claimedInviteKeys.detail; /** - * Query hook for fetching a single ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useClaimedInviteQuery( }); } /** - * Fetch a single ClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single ClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts index 9373984d9..55ef8c00b 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const claimedInvitesQueryKey = claimedInviteKeys.list; /** - * Query hook for fetching ClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -86,7 +86,7 @@ export function useClaimedInvitesQuery( }); } /** - * Fetch ClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchClaimedInvitesQuery(params: { return getClient().claimedInvite.findMany(args).unwrap(); } /** - * Prefetch ClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts index 21a88edf9..913b660d4 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountQueryKey = connectedAccountKeys.detail; /** - * Query hook for fetching a single ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -70,7 +70,7 @@ export function useConnectedAccountQuery( }); } /** - * Fetch a single ConnectedAccount without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchConnectedAccountQuery(params: { .unwrap(); } /** - * Prefetch a single ConnectedAccount for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts index 326e1b80c..b75ee2f80 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountsQueryKey = connectedAccountKeys.list; /** - * Query hook for fetching ConnectedAccount list + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -90,7 +90,7 @@ export function useConnectedAccountsQuery( }); } /** - * Fetch ConnectedAccount list without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchConnectedAccountsQuery(params: { return getClient().connectedAccount.findMany(args).unwrap(); } /** - * Prefetch ConnectedAccount list for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts index cc9c73a90..71a5ea067 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressQueryKey = cryptoAddressKeys.detail; /** - * Query hook for fetching a single CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCryptoAddressQuery( }); } /** - * Fetch a single CryptoAddress without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCryptoAddressQuery(params: { .unwrap(); } /** - * Prefetch a single CryptoAddress for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts index 33cafeede..ffb35cc20 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressesQueryKey = cryptoAddressKeys.list; /** - * Query hook for fetching CryptoAddress list + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -86,7 +86,7 @@ export function useCryptoAddressesQuery( }); } /** - * Fetch CryptoAddress list without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchCryptoAddressesQuery(params: { return getClient().cryptoAddress.findMany(args).unwrap(); } /** - * Prefetch CryptoAddress list for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts new file mode 100644 index 000000000..ab0b868fe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for DefaultPrivilege + * @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 { defaultPrivilegeKeys } from '../query-keys'; +import type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const defaultPrivilegeQueryKey = defaultPrivilegeKeys.detail; +/** + * Query hook for fetching a single DefaultPrivilege + * + * @example + * ```tsx + * const { data, isLoading } = useDefaultPrivilegeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDefaultPrivilegeQuery< + S extends DefaultPrivilegeSelect, + TData = { + defaultPrivilege: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseQueryOptions< + { + defaultPrivilege: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDefaultPrivilegeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: defaultPrivilegeKeys.detail(params.id), + queryFn: () => + getClient() + .defaultPrivilege.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DefaultPrivilege without React hooks + * + * @example + * ```ts + * const data = await fetchDefaultPrivilegeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDefaultPrivilegeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultPrivilegeSelect>; +}): Promise<{ + defaultPrivilege: InferSelectResult | null; +}>; +export async function fetchDefaultPrivilegeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .defaultPrivilege.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DefaultPrivilege for SSR or cache warming + * + * @example + * ```ts + * await prefetchDefaultPrivilegeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDefaultPrivilegeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } +): Promise; +export async function prefetchDefaultPrivilegeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: defaultPrivilegeKeys.detail(params.id), + queryFn: () => + getClient() + .defaultPrivilege.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts new file mode 100644 index 000000000..c3bdf6637 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for DefaultPrivilege + * @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 { defaultPrivilegeKeys } from '../query-keys'; +import type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const defaultPrivilegesQueryKey = defaultPrivilegeKeys.list; +/** + * Query hook for fetching DefaultPrivilege list + * + * @example + * ```tsx + * const { data, isLoading } = useDefaultPrivilegesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDefaultPrivilegesQuery< + S extends DefaultPrivilegeSelect, + TData = { + defaultPrivileges: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseQueryOptions< + { + defaultPrivileges: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDefaultPrivilegesQuery( + params: { + selection: ListSelectionConfig< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: defaultPrivilegeKeys.list(args), + queryFn: () => getClient().defaultPrivilege.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DefaultPrivilege list without React hooks + * + * @example + * ```ts + * const data = await fetchDefaultPrivilegesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDefaultPrivilegesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultPrivilegeSelect>; +}): Promise<{ + defaultPrivileges: ConnectionResult>; +}>; +export async function fetchDefaultPrivilegesQuery(params: { + selection: ListSelectionConfig< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >; +}) { + const args = buildListSelectionArgs< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >(params.selection); + return getClient().defaultPrivilege.findMany(args).unwrap(); +} +/** + * Prefetch DefaultPrivilege list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDefaultPrivilegesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDefaultPrivilegesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultPrivilegeSelect>; + } +): Promise; +export async function prefetchDefaultPrivilegesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: defaultPrivilegeKeys.list(args), + queryFn: () => getClient().defaultPrivilege.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts index ca7e69348..036e59edd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const domainQueryKey = domainKeys.detail; /** - * Query hook for fetching a single Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx @@ -70,7 +70,7 @@ export function useDomainQuery( }); } /** - * Fetch a single Domain without React hooks + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchDomainQuery(params: { .unwrap(); } /** - * Prefetch a single Domain for SSR or cache warming + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts index 02804c8fb..6c2aa7574 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const domainsQueryKey = domainKeys.list; /** - * Query hook for fetching Domain list + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx @@ -82,7 +82,7 @@ export function useDomainsQuery( }); } /** - * Fetch Domain list without React hooks + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchDomainsQuery(params: { return getClient().domain.findMany(args).unwrap(); } /** - * Prefetch Domain list for SSR or cache warming + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts index d954e6328..c8e881673 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const emailQueryKey = emailKeys.detail; /** - * Query hook for fetching a single Email + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -70,7 +70,7 @@ export function useEmailQuery( }); } /** - * Fetch a single Email without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchEmailQuery(params: { .unwrap(); } /** - * Prefetch a single Email for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts index 1dca30b06..44aa1f0ce 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const emailsQueryKey = emailKeys.list; /** - * Query hook for fetching Email list + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -82,7 +82,7 @@ export function useEmailsQuery( }); } /** - * Fetch Email list without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchEmailsQuery(params: { return getClient().email.findMany(args).unwrap(); } /** - * Prefetch Email list for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts index 51db01afb..7dc699235 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const inviteQueryKey = inviteKeys.detail; /** - * Query hook for fetching a single Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useInviteQuery( }); } /** - * Fetch a single Invite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchInviteQuery(params: { .unwrap(); } /** - * Prefetch a single Invite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts index 19a1fd3b1..873e55aa5 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const invitesQueryKey = inviteKeys.list; /** - * Query hook for fetching Invite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -82,7 +82,7 @@ export function useInvitesQuery( }); } /** - * Fetch Invite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchInvitesQuery(params: { return getClient().invite.findMany(args).unwrap(); } /** - * Prefetch Invite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts deleted file mode 100644 index 6d7bed87d..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for LimitFunction - * @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 { limitFunctionKeys } from '../query-keys'; -import type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const limitFunctionQueryKey = limitFunctionKeys.detail; -/** - * Query hook for fetching a single LimitFunction - * - * @example - * ```tsx - * const { data, isLoading } = useLimitFunctionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useLimitFunctionQuery< - S extends LimitFunctionSelect, - TData = { - limitFunction: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseQueryOptions< - { - limitFunction: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLimitFunctionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: limitFunctionKeys.detail(params.id), - queryFn: () => - getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single LimitFunction without React hooks - * - * @example - * ```ts - * const data = await fetchLimitFunctionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchLimitFunctionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; -}): Promise<{ - limitFunction: InferSelectResult | null; -}>; -export async function fetchLimitFunctionQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single LimitFunction for SSR or cache warming - * - * @example - * ```ts - * await prefetchLimitFunctionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchLimitFunctionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; - } -): Promise; -export async function prefetchLimitFunctionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: limitFunctionKeys.detail(params.id), - queryFn: () => - getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts deleted file mode 100644 index a6b16f109..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * List query hook for LimitFunction - * @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 { limitFunctionKeys } from '../query-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionFilter, - LimitFunctionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionFilter, - LimitFunctionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const limitFunctionsQueryKey = limitFunctionKeys.list; -/** - * Query hook for fetching LimitFunction list - * - * @example - * ```tsx - * const { data, isLoading } = useLimitFunctionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useLimitFunctionsQuery< - S extends LimitFunctionSelect, - TData = { - limitFunctions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseQueryOptions< - { - limitFunctions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLimitFunctionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: limitFunctionKeys.list(args), - queryFn: () => getClient().limitFunction.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch LimitFunction list without React hooks - * - * @example - * ```ts - * const data = await fetchLimitFunctionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchLimitFunctionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; -}): Promise<{ - limitFunctions: ConnectionResult>; -}>; -export async function fetchLimitFunctionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - return getClient().limitFunction.findMany(args).unwrap(); -} -/** - * Prefetch LimitFunction list for SSR or cache warming - * - * @example - * ```ts - * await prefetchLimitFunctionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchLimitFunctionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; - } -): Promise; -export async function prefetchLimitFunctionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: limitFunctionKeys.list(args), - queryFn: () => getClient().limitFunction.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts index c8d749048..71fdd8b77 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const membershipTypeQueryKey = membershipTypeKeys.detail; /** - * Query hook for fetching a single MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useMembershipTypeQuery( }); } /** - * Fetch a single MembershipType without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchMembershipTypeQuery(params: { .unwrap(); } /** - * Prefetch a single MembershipType for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts index c0f5b68c9..c148bab02 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const membershipTypesQueryKey = membershipTypeKeys.list; /** - * Query hook for fetching MembershipType list + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -90,7 +90,7 @@ export function useMembershipTypesQuery( }); } /** - * Fetch MembershipType list without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchMembershipTypesQuery(params: { return getClient().membershipType.findMany(args).unwrap(); } /** - * Prefetch MembershipType list for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts index a4f507c14..04901b7da 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; /** - * Query hook for fetching a single OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgAdminGrantQuery( }); } /** - * Fetch a single OrgAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts index e3ce559b3..b79b6cfdd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; /** - * Query hook for fetching OrgAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgAdminGrantsQuery( }); } /** - * Fetch OrgAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgAdminGrantsQuery(params: { return getClient().orgAdminGrant.findMany(args).unwrap(); } /** - * Prefetch OrgAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts new file mode 100644 index 000000000..576725d54 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts @@ -0,0 +1,144 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantQueryKey = orgChartEdgeGrantKeys.detail; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrant: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts new file mode 100644 index 000000000..8f4c33b08 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts @@ -0,0 +1,163 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @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 { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantsQueryKey = orgChartEdgeGrantKeys.list; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantsQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantsQuery( + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrants: ConnectionResult>; +}>; +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + return getClient().orgChartEdgeGrant.findMany(args).unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts new file mode 100644 index 000000000..9087f1620 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts @@ -0,0 +1,138 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeQueryKey = orgChartEdgeKeys.detail; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdge: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdge: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdge: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts new file mode 100644 index 000000000..c5030a79d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts @@ -0,0 +1,145 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @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 { orgChartEdgeKeys } from '../query-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgesQueryKey = orgChartEdgeKeys.list; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgesQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdges: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdges: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdges: ConnectionResult>; +}>; +export async function fetchOrgChartEdgesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgChartEdge.findMany(args).unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts index 42ac5f45a..19223fbe3 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; /** - * Query hook for fetching a single OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgClaimedInviteQuery( }); } /** - * Fetch a single OrgClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts index 965828b20..300fb5adf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; /** - * Query hook for fetching OrgClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgClaimedInvitesQuery( }); } /** - * Fetch OrgClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgClaimedInvitesQuery(params: { return getClient().orgClaimedInvite.findMany(args).unwrap(); } /** - * Prefetch OrgClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts new file mode 100644 index 000000000..cd9e04016 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts @@ -0,0 +1,172 @@ +/** + * List query hook for OrgGetManagersRecord + * @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 { orgGetManagersRecordKeys } from '../query-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetManagersQueryKey = orgGetManagersRecordKeys.list; +/** + * Query hook for fetching OrgGetManagersRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetManagersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetManagersQuery< + S extends OrgGetManagersRecordSelect, + TData = { + orgGetManagers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetManagers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetManagersQuery( + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetManagersRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetManagersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetManagersQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; +}): Promise<{ + orgGetManagers: ConnectionResult>; +}>; +export async function fetchOrgGetManagersQuery(params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + return getClient().orgGetManagersRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetManagersRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetManagersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } +): Promise; +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts new file mode 100644 index 000000000..5f006d3ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgGetSubordinatesRecord + * @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 { orgGetSubordinatesRecordKeys } from '../query-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetSubordinatesQueryKey = orgGetSubordinatesRecordKeys.list; +/** + * Query hook for fetching OrgGetSubordinatesRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, + TData = { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetSubordinatesQuery( + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetSubordinatesRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; +}): Promise<{ + orgGetSubordinates: ConnectionResult>; +}>; +export async function fetchOrgGetSubordinatesQuery(params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + return getClient().orgGetSubordinatesRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetSubordinatesRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetSubordinatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } +): Promise; +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts index 14ccf29ec..cd04f290e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgGrantQueryKey = orgGrantKeys.detail; /** - * Query hook for fetching a single OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgGrantQuery( }); } /** - * Fetch a single OrgGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts index 8f1ddc2ab..f40214130 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgGrantsQueryKey = orgGrantKeys.list; /** - * Query hook for fetching OrgGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgGrantsQuery( }); } /** - * Fetch OrgGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgGrantsQuery(params: { return getClient().orgGrant.findMany(args).unwrap(); } /** - * Prefetch OrgGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts index d6c2f623f..244288aa7 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgInviteQueryKey = orgInviteKeys.detail; /** - * Query hook for fetching a single OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgInviteQuery( }); } /** - * Fetch a single OrgInvite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgInvite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts index baaef3936..b5e0ee4dd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgInvitesQueryKey = orgInviteKeys.list; /** - * Query hook for fetching OrgInvite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgInvitesQuery( }); } /** - * Fetch OrgInvite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgInvitesQuery(params: { return getClient().orgInvite.findMany(args).unwrap(); } /** - * Prefetch OrgInvite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts new file mode 100644 index 000000000..6092abc4a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for orgIsManagerOf + * @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 { customQueryKeys } from '../query-keys'; +import type { OrgIsManagerOfVariables } from '../../orm/query'; +export type { OrgIsManagerOfVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgIsManagerOfQueryKey = customQueryKeys.orgIsManagerOf; +/** + * Query hook for orgIsManagerOf + * + * @example + * ```tsx + * const { data, isLoading } = useOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * + * if (data?.orgIsManagerOf) { + * console.log(data.orgIsManagerOf); + * } + * ``` + */ +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgIsManagerOf without React hooks + * + * @example + * ```ts + * const data = await fetchOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function fetchOrgIsManagerOfQuery(params?: { variables?: OrgIsManagerOfVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.orgIsManagerOf(variables).unwrap(); +} +/** + * Prefetch orgIsManagerOf for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgIsManagerOfQuery(queryClient, { variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function prefetchOrgIsManagerOfQuery( + queryClient: QueryClient, + params?: { + variables?: OrgIsManagerOfVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts index 695d1eff9..4c0eff29a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; /** - * Query hook for fetching a single OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitDefaultQuery( }); } /** - * Fetch a single OrgLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts index fae82e41b..5a7b07bbf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; /** - * Query hook for fetching OrgLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgLimitDefaultsQuery( }); } /** - * Fetch OrgLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgLimitDefaultsQuery(params: { return getClient().orgLimitDefault.findMany(args).unwrap(); } /** - * Prefetch OrgLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts index db061397b..a63b11f53 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgLimitQueryKey = orgLimitKeys.detail; /** - * Query hook for fetching a single OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitQuery( }); } /** - * Fetch a single OrgLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts index 032866dfb..320ccf624 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitsQueryKey = orgLimitKeys.list; /** - * Query hook for fetching OrgLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgLimitsQuery( }); } /** - * Fetch OrgLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgLimitsQuery(params: { return getClient().orgLimit.findMany(args).unwrap(); } /** - * Prefetch OrgLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts index aa4257559..e8cbfeaa0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgMemberQueryKey = orgMemberKeys.detail; /** - * Query hook for fetching a single OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMemberQuery( }); } /** - * Fetch a single OrgMember without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMemberQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMember for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts index 651d52afb..21929089e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembersQueryKey = orgMemberKeys.list; /** - * Query hook for fetching OrgMember list + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgMembersQuery( }); } /** - * Fetch OrgMember list without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgMembersQuery(params: { return getClient().orgMember.findMany(args).unwrap(); } /** - * Prefetch OrgMember list for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts index 47264e0a5..bff51e2a0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; /** - * Query hook for fetching a single OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgMembershipDefaultQuery( }); } /** - * Fetch a single OrgMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts index 8cb20caae..06c715627 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; /** - * Query hook for fetching OrgMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgMembershipDefaultsQuery( }); } /** - * Fetch OrgMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgMembershipDefaultsQuery(params: { return getClient().orgMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch OrgMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts index ec1c49d75..945adf98d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipQueryKey = orgMembershipKeys.detail; /** - * Query hook for fetching a single OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMembershipQuery( }); } /** - * Fetch a single OrgMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts index cde182a7b..2e620b485 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipsQueryKey = orgMembershipKeys.list; /** - * Query hook for fetching OrgMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgMembershipsQuery( }); } /** - * Fetch OrgMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgMembershipsQuery(params: { return getClient().orgMembership.findMany(args).unwrap(); } /** - * Prefetch OrgMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts index 9a0b0c9df..ad6a4b4ba 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; /** - * Query hook for fetching a single OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgOwnerGrantQuery( }); } /** - * Fetch a single OrgOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts index 315d1cc57..5f22b3f8a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; /** - * Query hook for fetching OrgOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgOwnerGrantsQuery( }); } /** - * Fetch OrgOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgOwnerGrantsQuery(params: { return getClient().orgOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch OrgOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts index 3f324b798..e1e71f5fc 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; /** - * Query hook for fetching a single OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgPermissionDefaultQuery( }); } /** - * Fetch a single OrgPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts index 021e73f1c..8bbff2240 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; /** - * Query hook for fetching OrgPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgPermissionDefaultsQuery( }); } /** - * Fetch OrgPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgPermissionDefaultsQuery(params: { return getClient().orgPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch OrgPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts index 3d28f9542..fcee408e9 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionQueryKey = orgPermissionKeys.detail; /** - * Query hook for fetching a single OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgPermissionQuery( }); } /** - * Fetch a single OrgPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts index 3e48264a6..b5272fe6f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionsQueryKey = orgPermissionKeys.list; /** - * Query hook for fetching OrgPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgPermissionsQuery( }); } /** - * Fetch OrgPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgPermissionsQuery(params: { return getClient().orgPermission.findMany(args).unwrap(); } /** - * Prefetch OrgPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts index 7c7f6a47d..80a507f4f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu /** Query key factory - re-exported from query-keys.ts */ export const phoneNumberQueryKey = phoneNumberKeys.detail; /** - * Query hook for fetching a single PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -70,7 +70,7 @@ export function usePhoneNumberQuery( }); } /** - * Fetch a single PhoneNumber without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchPhoneNumberQuery(params: { .unwrap(); } /** - * Prefetch a single PhoneNumber for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts index 3282244e1..1811e4e8f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const phoneNumbersQueryKey = phoneNumberKeys.list; /** - * Query hook for fetching PhoneNumber list + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -84,7 +84,7 @@ export function usePhoneNumbersQuery( }); } /** - * Fetch PhoneNumber list without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchPhoneNumbersQuery(params: { return getClient().phoneNumber.findMany(args).unwrap(); } /** - * Prefetch PhoneNumber list for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts deleted file mode 100644 index 17afb7969..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for Procedure - * @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 { procedureKeys } from '../query-keys'; -import type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const procedureQueryKey = procedureKeys.detail; -/** - * Query hook for fetching a single Procedure - * - * @example - * ```tsx - * const { data, isLoading } = useProcedureQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useProcedureQuery< - S extends ProcedureSelect, - TData = { - procedure: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseQueryOptions< - { - procedure: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useProcedureQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: procedureKeys.detail(params.id), - queryFn: () => - getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single Procedure without React hooks - * - * @example - * ```ts - * const data = await fetchProcedureQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchProcedureQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; -}): Promise<{ - procedure: InferSelectResult | null; -}>; -export async function fetchProcedureQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single Procedure for SSR or cache warming - * - * @example - * ```ts - * await prefetchProcedureQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchProcedureQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; - } -): Promise; -export async function prefetchProcedureQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: procedureKeys.detail(params.id), - queryFn: () => - getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts deleted file mode 100644 index fbf5a1659..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * List query hook for Procedure - * @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 { procedureKeys } from '../query-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - ProcedureFilter, - ProcedureOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - ProcedureFilter, - ProcedureOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const proceduresQueryKey = procedureKeys.list; -/** - * Query hook for fetching Procedure list - * - * @example - * ```tsx - * const { data, isLoading } = useProceduresQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useProceduresQuery< - S extends ProcedureSelect, - TData = { - procedures: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; - } & Omit< - UseQueryOptions< - { - procedures: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useProceduresQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: procedureKeys.list(args), - queryFn: () => getClient().procedure.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch Procedure list without React hooks - * - * @example - * ```ts - * const data = await fetchProceduresQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchProceduresQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; -}): Promise<{ - procedures: ConnectionResult>; -}>; -export async function fetchProceduresQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().procedure.findMany(args).unwrap(); -} -/** - * Prefetch Procedure list for SSR or cache warming - * - * @example - * ```ts - * await prefetchProceduresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchProceduresQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; - } -): Promise; -export async function prefetchProceduresQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: procedureKeys.list(args), - queryFn: () => getClient().procedure.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts new file mode 100644 index 000000000..e2fb67d34 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts @@ -0,0 +1,172 @@ +/** + * 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. + * @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 { relationProvisionKeys } from '../query-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const relationProvisionQueryKey = relationProvisionKeys.detail; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useRelationProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRelationProvisionQuery< + S extends RelationProvisionSelect, + TData = { + relationProvision: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseQueryOptions< + { + relationProvision: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRelationProvisionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: relationProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .relationProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchRelationProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRelationProvisionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RelationProvisionSelect>; +}): Promise<{ + relationProvision: InferSelectResult | null; +}>; +export async function fetchRelationProvisionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .relationProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchRelationProvisionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRelationProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RelationProvisionSelect>; + } +): Promise; +export async function prefetchRelationProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: relationProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .relationProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts new file mode 100644 index 000000000..74da85397 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts @@ -0,0 +1,191 @@ +/** + * 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. + * @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 { relationProvisionKeys } from '../query-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionFilter, + RelationProvisionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionFilter, + RelationProvisionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const relationProvisionsQueryKey = relationProvisionKeys.list; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useRelationProvisionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRelationProvisionsQuery< + S extends RelationProvisionSelect, + TData = { + relationProvisions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseQueryOptions< + { + relationProvisions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRelationProvisionsQuery( + params: { + selection: ListSelectionConfig< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: relationProvisionKeys.list(args), + queryFn: () => getClient().relationProvision.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchRelationProvisionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRelationProvisionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RelationProvisionSelect>; +}): Promise<{ + relationProvisions: ConnectionResult>; +}>; +export async function fetchRelationProvisionsQuery(params: { + selection: ListSelectionConfig< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >; +}) { + const args = buildListSelectionArgs< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >(params.selection); + return getClient().relationProvision.findMany(args).unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchRelationProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRelationProvisionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RelationProvisionSelect>; + } +): Promise; +export async function prefetchRelationProvisionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: relationProvisionKeys.list(args), + queryFn: () => getClient().relationProvision.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts new file mode 100644 index 000000000..5e413e783 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts @@ -0,0 +1,144 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @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 { secureTableProvisionKeys } from '../query-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secureTableProvisionQueryKey = secureTableProvisionKeys.detail; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { data, isLoading } = useSecureTableProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSecureTableProvisionQuery< + S extends SecureTableProvisionSelect, + TData = { + secureTableProvision: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseQueryOptions< + { + secureTableProvision: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecureTableProvisionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secureTableProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .secureTableProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * const data = await fetchSecureTableProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSecureTableProvisionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecureTableProvisionSelect>; +}): Promise<{ + secureTableProvision: InferSelectResult | null; +}>; +export async function fetchSecureTableProvisionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .secureTableProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * await prefetchSecureTableProvisionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSecureTableProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecureTableProvisionSelect>; + } +): Promise; +export async function prefetchSecureTableProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: secureTableProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .secureTableProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts new file mode 100644 index 000000000..a9c13b79e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts @@ -0,0 +1,178 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @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 { secureTableProvisionKeys } from '../query-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secureTableProvisionsQueryKey = secureTableProvisionKeys.list; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { data, isLoading } = useSecureTableProvisionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSecureTableProvisionsQuery< + S extends SecureTableProvisionSelect, + TData = { + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseQueryOptions< + { + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecureTableProvisionsQuery( + params: { + selection: ListSelectionConfig< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secureTableProvisionKeys.list(args), + queryFn: () => getClient().secureTableProvision.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * const data = await fetchSecureTableProvisionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSecureTableProvisionsQuery< + S extends SecureTableProvisionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, SecureTableProvisionSelect>; +}): Promise<{ + secureTableProvisions: ConnectionResult>; +}>; +export async function fetchSecureTableProvisionsQuery(params: { + selection: ListSelectionConfig< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >; +}) { + const args = buildListSelectionArgs< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >(params.selection); + return getClient().secureTableProvision.findMany(args).unwrap(); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * await prefetchSecureTableProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSecureTableProvisionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, SecureTableProvisionSelect>; + } +): Promise; +export async function prefetchSecureTableProvisionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: secureTableProvisionKeys.list(args), + queryFn: () => getClient().secureTableProvision.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts index 7912d0be4..dd4c30759 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const siteMetadataQueryKey = siteMetadatumKeys.list; /** - * Query hook for fetching SiteMetadatum list + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx @@ -86,7 +86,7 @@ export function useSiteMetadataQuery( }); } /** - * Fetch SiteMetadatum list without React hooks + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchSiteMetadataQuery(params: { return getClient().siteMetadatum.findMany(args).unwrap(); } /** - * Prefetch SiteMetadatum list for SSR or cache warming + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts index 979351686..3eb273aa7 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const siteMetadatumQueryKey = siteMetadatumKeys.detail; /** - * Query hook for fetching a single SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteMetadatumQuery( }); } /** - * Fetch a single SiteMetadatum without React hooks + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteMetadatumQuery(params: { .unwrap(); } /** - * Prefetch a single SiteMetadatum for SSR or cache warming + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts index 5d0a71507..e820d658b 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input- /** Query key factory - re-exported from query-keys.ts */ export const siteModuleQueryKey = siteModuleKeys.detail; /** - * Query hook for fetching a single SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteModuleQuery( }); } /** - * Fetch a single SiteModule without React hooks + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteModuleQuery(params: { .unwrap(); } /** - * Prefetch a single SiteModule for SSR or cache warming + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts index 8101108d7..7a6bd7751 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const siteModulesQueryKey = siteModuleKeys.list; /** - * Query hook for fetching SiteModule list + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx @@ -84,7 +84,7 @@ export function useSiteModulesQuery( }); } /** - * Fetch SiteModule list without React hooks + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchSiteModulesQuery(params: { return getClient().siteModule.findMany(args).unwrap(); } /** - * Prefetch SiteModule list for SSR or cache warming + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts index 6dfecd120..32643a7a5 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const siteQueryKey = siteKeys.detail; /** - * Query hook for fetching a single Site + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteQuery( }); } /** - * Fetch a single Site without React hooks + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteQuery(params: { .unwrap(); } /** - * Prefetch a single Site for SSR or cache warming + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts index 19ea2251f..ac6a1e774 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const siteThemeQueryKey = siteThemeKeys.detail; /** - * Query hook for fetching a single SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteThemeQuery( }); } /** - * Fetch a single SiteTheme without React hooks + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteThemeQuery(params: { .unwrap(); } /** - * Prefetch a single SiteTheme for SSR or cache warming + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts index eec19b9e2..97520f23e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const siteThemesQueryKey = siteThemeKeys.list; /** - * Query hook for fetching SiteTheme list + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx @@ -84,7 +84,7 @@ export function useSiteThemesQuery( }); } /** - * Fetch SiteTheme list without React hooks + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchSiteThemesQuery(params: { return getClient().siteTheme.findMany(args).unwrap(); } /** - * Prefetch SiteTheme list for SSR or cache warming + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts index f159801f4..fb58658b2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { SiteSelect, SiteWithRelations, SiteFilter, SiteOrderBy } from '../ /** Query key factory - re-exported from query-keys.ts */ export const sitesQueryKey = siteKeys.list; /** - * Query hook for fetching Site list + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx @@ -72,7 +72,7 @@ export function useSitesQuery( }); } /** - * Fetch Site list without React hooks + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchSitesQuery(params: { return getClient().site.findMany(args).unwrap(); } /** - * Prefetch Site list for SSR or cache warming + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts index 8037ac67b..066aaa2d1 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -19,6 +19,24 @@ // Entity Query Keys // ============================================================================ +export const orgGetManagersRecordKeys = { + /** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'] as const, + /** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetManagersRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetManagersRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetManagersRecordKeys.details(), id] as const, +} as const; +export const orgGetSubordinatesRecordKeys = { + /** All orgGetSubordinatesRecord queries */ all: ['orggetsubordinatesrecord'] as const, + /** List query keys */ lists: () => [...orgGetSubordinatesRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetSubordinatesRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetSubordinatesRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetSubordinatesRecordKeys.details(), id] as const, +} as const; export const getAllRecordKeys = { /** All getAllRecord queries */ all: ['getallrecord'] as const, /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, @@ -136,15 +154,6 @@ export const indexKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...indexKeys.details(), id] as const, } as const; -export const limitFunctionKeys = { - /** All limitFunction queries */ all: ['limitfunction'] as const, - /** List query keys */ lists: () => [...limitFunctionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...limitFunctionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...limitFunctionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...limitFunctionKeys.details(), id] as const, -} as const; export const policyKeys = { /** All policy queries */ all: ['policy'] as const, /** List query keys */ lists: () => [...policyKeys.all, 'list'] as const, @@ -244,6 +253,24 @@ export const tableTemplateModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...tableTemplateModuleKeys.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 relationProvisionKeys = { + /** All relationProvision queries */ all: ['relationprovision'] as const, + /** List query keys */ lists: () => [...relationProvisionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...relationProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...relationProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...relationProvisionKeys.details(), id] as const, +} as const; export const schemaGrantKeys = { /** All schemaGrant queries */ all: ['schemagrant'] as const, /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'] as const, @@ -253,6 +280,15 @@ export const schemaGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...schemaGrantKeys.details(), id] as const, } as const; +export const defaultPrivilegeKeys = { + /** All defaultPrivilege queries */ all: ['defaultprivilege'] as const, + /** List query keys */ lists: () => [...defaultPrivilegeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...defaultPrivilegeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...defaultPrivilegeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...defaultPrivilegeKeys.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, @@ -307,15 +343,6 @@ export const siteThemeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...siteThemeKeys.details(), id] as const, } as const; -export const procedureKeys = { - /** All procedure queries */ all: ['procedure'] as const, - /** List query keys */ lists: () => [...procedureKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...procedureKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...procedureKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...procedureKeys.details(), id] as const, -} as const; export const triggerFunctionKeys = { /** All triggerFunction queries */ all: ['triggerfunction'] as const, /** List query keys */ lists: () => [...triggerFunctionKeys.all, 'list'] as const, @@ -631,6 +658,24 @@ export const orgGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgGrantKeys.details(), id] as const, } as const; +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeKeys.details(), id] as const, +} as const; +export const orgChartEdgeGrantKeys = { + /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, + /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeGrantKeys.details(), id] as const, +} as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, @@ -703,15 +748,6 @@ export const orgClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgClaimedInviteKeys.details(), id] as const, } as const; -export const appPermissionDefaultKeys = { - /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, - /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultKeys.details(), id] as const, -} as const; export const refKeys = { /** All ref queries */ all: ['ref'] as const, /** List query keys */ lists: () => [...refKeys.all, 'list'] as const, @@ -730,6 +766,15 @@ export const storeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...storeKeys.details(), id] as const, } as const; +export const appPermissionDefaultKeys = { + /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, + /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appPermissionDefaultKeys.details(), id] as const, +} as const; export const roleTypeKeys = { /** All roleType queries */ all: ['roletype'] as const, /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, @@ -748,6 +793,15 @@ export const orgPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionDefaultKeys.details(), id] as const, } as const; +export const cryptoAddressKeys = { + /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, + /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAddressKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAddressKeys.details(), id] as const, +} as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, @@ -766,24 +820,6 @@ export const orgLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitDefaultKeys.details(), id] as const, } as const; -export const cryptoAddressKeys = { - /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, - /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAddressKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAddressKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, -} as const; export const connectedAccountKeys = { /** All connectedAccount queries */ all: ['connectedaccount'] as const, /** List query keys */ lists: () => [...connectedAccountKeys.all, 'list'] as const, @@ -802,14 +838,14 @@ export const phoneNumberKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...phoneNumberKeys.details(), id] as const, } as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; export const nodeTypeRegistryKeys = { /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, @@ -820,6 +856,15 @@ export const nodeTypeRegistryKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...nodeTypeRegistryKeys.details(), id] as const, } as const; +export const appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; export const commitKeys = { /** All commit queries */ all: ['commit'] as const, /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, @@ -838,15 +883,6 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, -} as const; export const auditLogKeys = { /** All auditLog queries */ all: ['auditlog'] as const, /** List query keys */ lists: () => [...auditLogKeys.all, 'list'] as const, @@ -865,6 +901,15 @@ export const appLevelKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLevelKeys.details(), id] as const, } as const; +export const emailKeys = { + /** All email queries */ all: ['email'] as const, + /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailKeys.details(), id] as const, +} as const; export const sqlMigrationKeys = { /** All sqlMigration queries */ all: ['sqlmigration'] as const, /** List query keys */ lists: () => [...sqlMigrationKeys.all, 'list'] as const, @@ -883,15 +928,6 @@ export const astMigrationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...astMigrationKeys.details(), id] as const, } as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, -} as const; export const userKeys = { /** All user queries */ all: ['user'] as const, /** List query keys */ lists: () => [...userKeys.all, 'list'] as const, @@ -901,6 +937,15 @@ export const userKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userKeys.details(), id] as const, } as const; +export const appMembershipKeys = { + /** All appMembership queries */ all: ['appmembership'] as const, + /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipKeys.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, @@ -928,6 +973,8 @@ export const customQueryKeys = { /** Query key for stepsAchieved */ stepsAchieved: (variables?: object) => ['stepsAchieved', variables] as const, /** Query key for revParse */ revParse: (variables?: object) => ['revParse', variables] as const, + /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => + ['orgIsManagerOf', variables] as const, /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => ['appPermissionsGetMask', variables] as const, /** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables?: object) => @@ -975,6 +1022,8 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + orgGetManagersRecord: orgGetManagersRecordKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, getAllRecord: getAllRecordKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, @@ -988,7 +1037,6 @@ export const queryKeys = { foreignKeyConstraint: foreignKeyConstraintKeys, fullTextSearch: fullTextSearchKeys, index: indexKeys, - limitFunction: limitFunctionKeys, policy: policyKeys, primaryKeyConstraint: primaryKeyConstraintKeys, tableGrant: tableGrantKeys, @@ -1000,14 +1048,16 @@ export const queryKeys = { viewRule: viewRuleKeys, tableModule: tableModuleKeys, tableTemplateModule: tableTemplateModuleKeys, + secureTableProvision: secureTableProvisionKeys, + relationProvision: relationProvisionKeys, schemaGrant: schemaGrantKeys, + defaultPrivilege: defaultPrivilegeKeys, apiSchema: apiSchemaKeys, apiModule: apiModuleKeys, domain: domainKeys, siteMetadatum: siteMetadatumKeys, siteModule: siteModuleKeys, siteTheme: siteThemeKeys, - procedure: procedureKeys, triggerFunction: triggerFunctionKeys, api: apiKeys, site: siteKeys, @@ -1043,6 +1093,8 @@ export const queryKeys = { orgAdminGrant: orgAdminGrantKeys, orgOwnerGrant: orgOwnerGrantKeys, orgGrant: orgGrantKeys, + orgChartEdge: orgChartEdgeKeys, + orgChartEdgeGrant: orgChartEdgeGrantKeys, appLimit: appLimitKeys, orgLimit: orgLimitKeys, appStep: appStepKeys, @@ -1051,28 +1103,28 @@ export const queryKeys = { claimedInvite: claimedInviteKeys, orgInvite: orgInviteKeys, orgClaimedInvite: orgClaimedInviteKeys, - appPermissionDefault: appPermissionDefaultKeys, ref: refKeys, store: storeKeys, + appPermissionDefault: appPermissionDefaultKeys, roleType: roleTypeKeys, orgPermissionDefault: orgPermissionDefaultKeys, + cryptoAddress: cryptoAddressKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, - cryptoAddress: cryptoAddressKeys, - membershipType: membershipTypeKeys, connectedAccount: connectedAccountKeys, phoneNumber: phoneNumberKeys, - appMembershipDefault: appMembershipDefaultKeys, + membershipType: membershipTypeKeys, nodeTypeRegistry: nodeTypeRegistryKeys, + appMembershipDefault: appMembershipDefaultKeys, commit: commitKeys, orgMembershipDefault: orgMembershipDefaultKeys, - email: emailKeys, auditLog: auditLogKeys, appLevel: appLevelKeys, + email: emailKeys, sqlMigration: sqlMigrationKeys, astMigration: astMigrationKeys, - appMembership: appMembershipKeys, user: userKeys, + appMembership: appMembershipKeys, hierarchyModule: hierarchyModuleKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/public/hooks/skills/limitFunction.md b/sdk/constructive-react/src/public/hooks/skills/limitFunction.md deleted file mode 100644 index 948c7bfcb..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/limitFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-limitFunction - - - -React Query hooks for LimitFunction data operations - -## Usage - -```typescript -useLimitFunctionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } } }) -useLimitFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } } }) -useCreateLimitFunctionMutation({ selection: { fields: { id: true } } }) -useUpdateLimitFunctionMutation({ selection: { fields: { id: true } } }) -useDeleteLimitFunctionMutation({}) -``` - -## Examples - -### List all limitFunctions - -```typescript -const { data, isLoading } = useLimitFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }, -}); -``` - -### Create a limitFunction - -```typescript -const { mutate } = useCreateLimitFunctionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/policy.md b/sdk/constructive-react/src/public/hooks/skills/policy.md deleted file mode 100644 index 278106a05..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-policy - - - -React Query hooks for Policy data operations - -## Usage - -```typescript -usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: 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, roleName: 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 } } }) -useCreatePolicyMutation({ selection: { fields: { id: true } } }) -useUpdatePolicyMutation({ selection: { fields: { id: true } } }) -useDeletePolicyMutation({}) -``` - -## Examples - -### List all policies - -```typescript -const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: 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 } }, -}); -``` - -### Create a policy - -```typescript -const { mutate } = useCreatePolicyMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/procedure.md b/sdk/constructive-react/src/public/hooks/skills/procedure.md deleted file mode 100644 index 08b22d9e5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/procedure.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-procedure - - - -React Query hooks for Procedure data operations - -## Usage - -```typescript -useProceduresQuery({ selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useProcedureQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateProcedureMutation({ selection: { fields: { id: true } } }) -useUpdateProcedureMutation({ selection: { fields: { id: true } } }) -useDeleteProcedureMutation({}) -``` - -## Examples - -### List all procedures - -```typescript -const { data, isLoading } = useProceduresQuery({ - selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a procedure - -```typescript -const { mutate } = useCreateProcedureMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/tableModule.md b/sdk/constructive-react/src/public/hooks/skills/tableModule.md deleted file mode 100644 index 1e3ded3a0..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/tableModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-tableModule - - - -React Query hooks for TableModule data operations - -## Usage - -```typescript -useTableModulesQuery({ selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } } }) -useTableModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } } }) -useCreateTableModuleMutation({ selection: { fields: { id: true } } }) -useUpdateTableModuleMutation({ selection: { fields: { id: true } } }) -useDeleteTableModuleMutation({}) -``` - -## Examples - -### List all tableModules - -```typescript -const { data, isLoading } = useTableModulesQuery({ - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }, -}); -``` - -### Create a tableModule - -```typescript -const { mutate } = useCreateTableModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }); -``` diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index e7b901054..dbb346bd5 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -34,7 +36,6 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `limitFunction` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -46,14 +47,16 @@ const db = createClient({ | `viewRule` | findMany, findOne, create, update, delete | | `tableModule` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | -| `procedure` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | @@ -89,6 +92,8 @@ const db = createClient({ | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -97,32 +102,92 @@ const db = createClient({ | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.getAllRecord` CRUD operations for GetAllRecord records. @@ -638,42 +703,6 @@ const updated = await db.index.update({ where: { id: '' }, data: { databa const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` -### `db.limitFunction` - -CRUD operations for LimitFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `data` | JSON | Yes | -| `security` | Int | Yes | - -**Operations:** - -```typescript -// List all limitFunction records -const items = await db.limitFunction.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Get one by id -const item = await db.limitFunction.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Create -const created = await db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitFunction.delete({ where: { id: '' } }).execute(); -``` - ### `db.policy` CRUD operations for Policy records. @@ -686,7 +715,7 @@ CRUD operations for Policy records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `name` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `permissive` | Boolean | Yes | | `disabled` | Boolean | Yes | @@ -704,13 +733,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, roleName: 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, module: 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, roleName: 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, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -772,8 +801,9 @@ CRUD operations for TableGrant records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `privilege` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -781,13 +811,13 @@ CRUD operations for TableGrant records. ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -966,21 +996,22 @@ CRUD operations for ViewGrant records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1033,9 +1064,11 @@ CRUD operations for TableModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `tableName` | String | Yes | | `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | | `data` | JSON | Yes | | `fields` | UUID | Yes | @@ -1043,13 +1076,13 @@ CRUD operations for TableModule records. ```typescript // List all tableModule records -const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Get one by id -const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Create -const created = await db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute(); +const created = await db.tableModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1095,6 +1128,107 @@ const updated = await db.tableTemplateModule.update({ where: { id: '' }, const deleted = await db.tableTemplateModule.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 | +| `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | 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, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: 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, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', 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.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `nodeType` | String | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | + +**Operations:** + +```typescript +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Get one by id +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Create +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1129,6 +1263,41 @@ const updated = await db.schemaGrant.update({ where: { id: '' }, data: { const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -1327,49 +1496,6 @@ const updated = await db.siteTheme.update({ where: { id: '' }, data: { da const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` -### `db.procedure` - -CRUD operations for Procedure records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `argnames` | String | Yes | -| `argtypes` | String | Yes | -| `argdefaults` | String | Yes | -| `langName` | String | Yes | -| `definition` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all procedure records -const items = await db.procedure.findMany({ select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.procedure.findOne({ id: '', select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.procedure.delete({ where: { id: '' } }).execute(); -``` - ### `db.triggerFunction` CRUD operations for TriggerFunction records. @@ -2135,7 +2261,6 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | -| `bitlen` | Int | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2147,13 +2272,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, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2564,18 +2689,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -2722,6 +2848,79 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdge` + +CRUD operations for OrgChartEdge records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | + +**Operations:** + +```typescript +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Create +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -3008,39 +3207,42 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, dat const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.ref` -CRUD operations for AppPermissionDefault records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -3049,59 +3251,56 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appPermissionDefault` -CRUD operations for Store records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -3165,40 +3364,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.cryptoAddress` -CRUD operations for AppLimitDefault records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3211,87 +3414,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgLimitDefault` -CRUD operations for CryptoAddress records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -3366,39 +3533,36 @@ const updated = await db.phoneNumber.update({ where: { id: '' }, data: { const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3438,6 +3602,41 @@ const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, d const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` +### `db.appMembershipDefault` + +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.commit` CRUD operations for Commit records. @@ -3512,41 +3711,6 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - ### `db.auditLog` CRUD operations for AuditLog records. @@ -3618,6 +3782,41 @@ const updated = await db.appLevel.update({ where: { id: '' }, data: { nam const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` +### `db.email` + +CRUD operations for Email records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.email.delete({ where: { id: '' } }).execute(); +``` + ### `db.sqlMigration` CRUD operations for SqlMigration records. @@ -3700,84 +3899,85 @@ const updated = await db.astMigration.update({ where: { id: '' }, data: { const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.user` -CRUD operations for AppMembership records. +CRUD operations for User records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `username` | String | Yes | +| `displayName` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `searchTsv` | FullText | Yes | +| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | +| `searchTsvRank` | Float | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +// List all user records +const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` -### `db.user` +### `db.appMembership` -CRUD operations for User records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -3926,6 +4126,24 @@ revParse const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.appPermissionsGetMask` appPermissionsGetMask diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index 5bdb26031..238fd616e 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -18,7 +20,6 @@ import { FieldModel } from './models/field'; import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { IndexModel } from './models/index'; -import { LimitFunctionModel } from './models/limitFunction'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { TableGrantModel } from './models/tableGrant'; @@ -30,14 +31,16 @@ import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; import { TableModuleModel } from './models/tableModule'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; -import { ProcedureModel } from './models/procedure'; import { TriggerFunctionModel } from './models/triggerFunction'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; @@ -73,6 +76,8 @@ import { OrgMemberModel } from './models/orgMember'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; @@ -81,28 +86,28 @@ import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RoleTypeModel } from './models/roleType'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { MembershipTypeModel } from './models/membershipType'; import { ConnectedAccountModel } from './models/connectedAccount'; import { PhoneNumberModel } from './models/phoneNumber'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { CommitModel } from './models/commit'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; import { SqlMigrationModel } from './models/sqlMigration'; import { AstMigrationModel } from './models/astMigration'; -import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; +import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -139,6 +144,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -152,7 +159,6 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), index: new IndexModel(client), - limitFunction: new LimitFunctionModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), tableGrant: new TableGrantModel(client), @@ -164,14 +170,16 @@ export function createClient(config: OrmClientConfig) { viewRule: new ViewRuleModel(client), tableModule: new TableModuleModel(client), tableTemplateModule: new TableTemplateModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), - procedure: new ProcedureModel(client), triggerFunction: new TriggerFunctionModel(client), api: new ApiModel(client), site: new SiteModel(client), @@ -207,6 +215,8 @@ export function createClient(config: OrmClientConfig) { orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), @@ -215,28 +225,28 @@ export function createClient(config: OrmClientConfig) { claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), ref: new RefModel(client), store: new StoreModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), roleType: new RoleTypeModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + cryptoAddress: new CryptoAddressModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), - membershipType: new MembershipTypeModel(client), connectedAccount: new ConnectedAccountModel(client), phoneNumber: new PhoneNumberModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), commit: new CommitModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), appLevel: new AppLevelModel(client), + email: new EmailModel(client), sqlMigration: new SqlMigrationModel(client), astMigration: new AstMigrationModel(client), - appMembership: new AppMembershipModel(client), user: new UserModel(client), + appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 392f8060e..f3a162c68 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -233,22 +233,40 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecord { path?: string | null; data?: Record | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } export interface Object { @@ -261,13 +279,18 @@ export interface Object { frzn?: boolean | null; createdAt?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -411,22 +434,12 @@ export interface Index { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunction { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} export interface Policy { id: string; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -460,8 +473,9 @@ export interface TableGrant { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -525,9 +539,10 @@ export interface ViewGrant { id: string; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -543,9 +558,11 @@ export interface ViewRule { export interface TableModule { id: string; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -560,6 +577,178 @@ export interface TableTemplateModule { nodeType?: string | null; data?: Record | null; } +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. 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; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string | 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 policy_type is provided. Defaults to true. */ + useRls?: boolean | null; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: Record | null; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string | null; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: Record | null; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string | null; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string | null; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string | null; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean | null; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string | null; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: 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 generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string | null; +} +/** + * 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. + */ +export interface RelationProvision { + /** 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 | null; + /** + * The type of relation to create. Uses SuperCase naming matching the node_type_registry: + * - 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** 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 | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string | null; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: Record | null; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record | null; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string | null; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string | null; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string | null; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean | null; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string | null; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: Record | null; + /** 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 | null; + /** 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 | null; + /** 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 | null; + /** 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 SchemaGrant { id: string; databaseId?: string | null; @@ -568,65 +757,93 @@ export interface SchemaGrant { createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Metaschema schema being exposed through the API */ schemaId?: string | null; + /** API that exposes this schema */ apiId?: string | null; } +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ export interface ApiModule { + /** Unique identifier for this API module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** API this module configuration belongs to */ apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { + /** Unique identifier for this domain record */ id: string; + /** Reference to the metaschema database this domain belongs to */ databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ siteId?: string | null; + /** Subdomain portion of the hostname */ subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname | null; } +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ export interface SiteMetadatum { + /** Unique identifier for this metadata record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this metadata belongs to */ siteId?: string | null; + /** Page title for SEO (max 120 characters) */ title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ description?: string | null; + /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; } +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { + /** Unique identifier for this site module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this module configuration belongs to */ siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { + /** Unique identifier for this theme record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this theme belongs to */ siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ theme?: Record | null; } -export interface Procedure { - id: string; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunction { id: string; databaseId?: string | null; @@ -635,35 +852,63 @@ export interface TriggerFunction { createdAt?: string | null; updatedAt?: string | null; } +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { + /** Unique identifier for this API */ id: string; + /** Reference to the metaschema database this API serves */ databaseId?: string | null; + /** Unique name for this API within its database */ name?: string | null; + /** PostgreSQL database name to connect to */ dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; } +/** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { + /** Unique identifier for this site */ id: string; + /** Reference to the metaschema database this site belongs to */ databaseId?: string | null; + /** Display title for the site (max 120 characters) */ title?: string | null; + /** Short description of the site (max 120 characters) */ description?: string | null; + /** Open Graph image used for social media link previews */ ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ dbname?: string | null; } +/** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { + /** Unique identifier for this app */ id: string; + /** Reference to the metaschema database this app belongs to */ databaseId?: string | null; + /** Site this app is associated with (one app per site) */ siteId?: string | null; + /** Display name of the app */ name?: string | null; + /** App icon or promotional image */ appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; } export interface ConnectedAccountsModule { @@ -891,7 +1136,6 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1003,166 +1247,280 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: 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 */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: 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; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: 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; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** 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 */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefault { - id: string; - permissions?: string | null; -} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -1185,40 +1543,54 @@ export interface Store { hash?: string | null; createdAt?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} export interface RoleType { id: number; name?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipType { - id: number; +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ name?: string | null; - description?: string | null; - prefix?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -1228,28 +1600,36 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; } /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { @@ -1257,7 +1637,7 @@ export interface NodeTypeRegistry { name?: string | null; /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ slug?: string | null; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ category?: string | null; /** Human-readable display name for UI */ displayName?: string | null; @@ -1270,6 +1650,18 @@ export interface NodeTypeRegistry { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -1289,43 +1681,64 @@ export interface Commit { treeId?: string | null; date?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Levels for achievement */ +/** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { id: string; + /** Unique name of the level */ name?: string | null; + /** Human-readable description of what this level represents */ description?: string | null; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -1359,34 +1772,46 @@ export interface AstMigration { actionId?: string | null; actorId?: string | null; } +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ + searchTsvRank?: number | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModule { id: string; @@ -1423,6 +1848,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -1438,10 +1865,8 @@ export interface DatabaseRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; - procedures?: ConnectionResult; schemaGrants?: ConnectionResult; tableGrants?: ConnectionResult; triggerFunctions?: ConnectionResult; @@ -1450,6 +1875,7 @@ export interface DatabaseRelations { views?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -1483,6 +1909,8 @@ export interface DatabaseRelations { usersModules?: ConnectionResult; uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisions?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -1490,6 +1918,7 @@ export interface SchemaRelations { tables?: ConnectionResult; schemaGrants?: ConnectionResult; views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -1503,7 +1932,6 @@ export interface TableRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; tableGrants?: ConnectionResult; @@ -1514,6 +1942,9 @@ export interface TableRelations { tableModules?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisionsBySourceTableId?: ConnectionResult; + relationProvisionsByTargetTableId?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -1536,10 +1967,6 @@ export interface IndexRelations { database?: Database | null; table?: Table | null; } -export interface LimitFunctionRelations { - database?: Database | null; - table?: Table | null; -} export interface PolicyRelations { database?: Database | null; table?: Table | null; @@ -1582,7 +2009,7 @@ export interface ViewRuleRelations { } export interface TableModuleRelations { database?: Database | null; - privateSchema?: Schema | null; + schema?: Schema | null; table?: Table | null; } export interface TableTemplateModuleRelations { @@ -1592,10 +2019,24 @@ export interface TableTemplateModuleRelations { schema?: Schema | null; table?: Table | null; } +export interface SecureTableProvisionRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface RelationProvisionRelations { + database?: Database | null; + sourceTable?: Table | null; + targetTable?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; } +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1622,9 +2063,6 @@ export interface SiteThemeRelations { database?: Database | null; site?: Site | null; } -export interface ProcedureRelations { - database?: Database | null; -} export interface TriggerFunctionRelations { database?: Database | null; } @@ -1858,6 +2296,17 @@ export interface OrgGrantRelations { entity?: User | null; grantor?: User | null; } +export interface OrgChartEdgeRelations { + child?: User | null; + entity?: User | null; + parent?: User | null; +} +export interface OrgChartEdgeGrantRelations { + child?: User | null; + entity?: User | null; + grantor?: User | null; + parent?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -1888,45 +2337,42 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AppPermissionDefaultRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface AppPermissionDefaultRelations {} export interface RoleTypeRelations {} export interface OrgPermissionDefaultRelations { entity?: User | null; } -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface CryptoAddressRelations { owner?: User | null; } -export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface ConnectedAccountRelations { owner?: User | null; } export interface PhoneNumberRelations { owner?: User | null; } -export interface AppMembershipDefaultRelations {} +export interface MembershipTypeRelations {} export interface NodeTypeRegistryRelations {} +export interface AppMembershipDefaultRelations {} export interface CommitRelations {} export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } export interface AppLevelRelations { owner?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface SqlMigrationRelations {} export interface AstMigrationRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -1945,6 +2391,13 @@ export interface UserRelations { orgOwnerGrantsByGrantorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; + parentOrgChartEdges?: ConnectionResult; + orgChartEdgesByEntityId?: ConnectionResult; + childOrgChartEdges?: ConnectionResult; + parentOrgChartEdgeGrants?: ConnectionResult; + orgChartEdgeGrantsByEntityId?: ConnectionResult; + orgChartEdgeGrantsByGrantorId?: ConnectionResult; + childOrgChartEdgeGrants?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; @@ -1958,6 +2411,9 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; } +export interface AppMembershipRelations { + actor?: User | null; +} export interface HierarchyModuleRelations { chartEdgeGrantsTable?: Table | null; chartEdgesTable?: Table | null; @@ -1969,6 +2425,10 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -1983,7 +2443,6 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type IndexWithRelations = Index & IndexRelations; -export type LimitFunctionWithRelations = LimitFunction & LimitFunctionRelations; export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; @@ -1996,14 +2455,17 @@ export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type TableModuleWithRelations = TableModule & TableModuleRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type ProcedureWithRelations = Procedure & ProcedureRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; @@ -2045,6 +2507,8 @@ export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -2053,34 +2517,42 @@ export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type CommitWithRelations = Commit & CommitRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type UserWithRelations = User & UserRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; @@ -2176,12 +2648,6 @@ export type DatabaseSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2194,12 +2660,6 @@ export type DatabaseSelect = { filter?: PrimaryKeyConstraintFilter; orderBy?: PrimaryKeyConstraintOrderBy[]; }; - procedures?: { - select: ProcedureSelect; - first?: number; - filter?: ProcedureFilter; - orderBy?: ProcedureOrderBy[]; - }; schemaGrants?: { select: SchemaGrantSelect; first?: number; @@ -2248,6 +2708,12 @@ export type DatabaseSelect = { filter?: ViewRuleFilter; orderBy?: ViewRuleOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -2446,10 +2912,22 @@ export type DatabaseSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; + secureTableProvisions?: { + select: SecureTableProvisionSelect; first?: number; - filter?: DatabaseProvisionModuleFilter; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisions?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + databaseProvisionModules?: { + select: DatabaseProvisionModuleSelect; + first?: number; + filter?: DatabaseProvisionModuleFilter; orderBy?: DatabaseProvisionModuleOrderBy[]; }; }; @@ -2489,6 +2967,12 @@ export type SchemaSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -2567,12 +3051,6 @@ export type TableSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2633,6 +3111,24 @@ export type TableSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; + secureTableProvisions?: { + select: SecureTableProvisionSelect; + first?: number; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisionsBySourceTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + relationProvisionsByTargetTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -2759,28 +3255,12 @@ export type IndexSelect = { select: TableSelect; }; }; -export type LimitFunctionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - data?: boolean; - security?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; export type PolicySelect = { id?: boolean; databaseId?: boolean; tableId?: boolean; name?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; permissive?: boolean; disabled?: boolean; @@ -2826,8 +3306,9 @@ export type TableGrantSelect = { databaseId?: boolean; tableId?: boolean; privilege?: boolean; - roleName?: boolean; + granteeName?: boolean; fieldIds?: boolean; + isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; database?: { @@ -2941,9 +3422,10 @@ export type ViewGrantSelect = { id?: boolean; databaseId?: boolean; viewId?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; withGrantOption?: boolean; + isGrant?: boolean; database?: { select: DatabaseSelect; }; @@ -2968,15 +3450,17 @@ export type ViewRuleSelect = { export type TableModuleSelect = { id?: boolean; databaseId?: boolean; - privateSchemaId?: boolean; + schemaId?: boolean; tableId?: boolean; + tableName?: boolean; nodeType?: boolean; + useRls?: boolean; data?: boolean; fields?: boolean; database?: { select: DatabaseSelect; }; - privateSchema?: { + schema?: { select: SchemaSelect; }; table?: { @@ -3009,6 +3493,73 @@ export type TableTemplateModuleSelect = { select: TableSelect; }; }; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodeType?: boolean; + useRls?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFields?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + nodeType?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; + database?: { + select: DatabaseSelect; + }; + sourceTable?: { + select: TableSelect; + }; + targetTable?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -3023,6 +3574,21 @@ export type SchemaGrantSelect = { select: SchemaSelect; }; }; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; export type ApiSchemaSelect = { id?: boolean; databaseId?: boolean; @@ -3107,26 +3673,6 @@ export type SiteThemeSelect = { select: SiteSelect; }; }; -export type ProcedureSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - argnames?: boolean; - argtypes?: boolean; - argdefaults?: boolean; - langName?: boolean; - definition?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type TriggerFunctionSelect = { id?: boolean; databaseId?: boolean; @@ -3718,7 +4264,6 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; - bitlen?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -4005,6 +4550,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; actor?: { select: UserSelect; }; @@ -4079,6 +4625,48 @@ export type OrgGrantSelect = { select: UserSelect; }; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -4199,10 +4787,6 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -4217,6 +4801,10 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; export type RoleTypeSelect = { id?: boolean; name?: boolean; @@ -4229,16 +4817,6 @@ export type OrgPermissionDefaultSelect = { select: UserSelect; }; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type CryptoAddressSelect = { id?: boolean; ownerId?: boolean; @@ -4251,11 +4829,15 @@ export type CryptoAddressSelect = { select: UserSelect; }; }; -export type MembershipTypeSelect = { +export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; }; export type ConnectedAccountSelect = { id?: boolean; @@ -4283,14 +4865,11 @@ export type PhoneNumberSelect = { select: UserSelect; }; }; -export type AppMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; }; export type NodeTypeRegistrySelect = { name?: boolean; @@ -4303,6 +4882,15 @@ export type NodeTypeRegistrySelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -4328,18 +4916,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -4365,6 +4941,18 @@ export type AppLevelSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -4395,26 +4983,6 @@ export type AstMigrationSelect = { actionId?: boolean; actorId?: boolean; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type UserSelect = { id?: boolean; username?: boolean; @@ -4518,6 +5086,48 @@ export type UserSelect = { filter?: OrgGrantFilter; orderBy?: OrgGrantOrderBy[]; }; + parentOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + orgChartEdgesByEntityId?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + childOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + parentOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByEntityId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByGrantorId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + childOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -4591,23 +5201,44 @@ export type UserSelect = { orderBy?: OrgClaimedInviteOrderBy[]; }; }; -export type HierarchyModuleSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; @@ -4638,6 +5269,20 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface GetAllRecordFilter { path?: StringFilter; data?: JSONFilter; @@ -4854,25 +5499,12 @@ export interface IndexFilter { or?: IndexFilter[]; not?: IndexFilter; } -export interface LimitFunctionFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - label?: StringFilter; - description?: StringFilter; - data?: JSONFilter; - security?: IntFilter; - and?: LimitFunctionFilter[]; - or?: LimitFunctionFilter[]; - not?: LimitFunctionFilter; -} export interface PolicyFilter { id?: UUIDFilter; databaseId?: UUIDFilter; tableId?: UUIDFilter; name?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; permissive?: BooleanFilter; disabled?: BooleanFilter; @@ -4912,8 +5544,9 @@ export interface TableGrantFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; privilege?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; fieldIds?: UUIDFilter; + isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; and?: TableGrantFilter[]; @@ -4991,9 +5624,10 @@ export interface ViewGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; viewId?: UUIDFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; withGrantOption?: BooleanFilter; + isGrant?: BooleanFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -5012,9 +5646,11 @@ export interface ViewRuleFilter { export interface TableModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; - privateSchemaId?: UUIDFilter; + schemaId?: UUIDFilter; tableId?: UUIDFilter; + tableName?: StringFilter; nodeType?: StringFilter; + useRls?: BooleanFilter; data?: JSONFilter; fields?: UUIDFilter; and?: TableModuleFilter[]; @@ -5035,6 +5671,61 @@ export interface TableTemplateModuleFilter { or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; } +export interface SecureTableProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + nodeType?: StringFilter; + useRls?: BooleanFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFields?: UUIDFilter; + and?: SecureTableProvisionFilter[]; + or?: SecureTableProvisionFilter[]; + not?: SecureTableProvisionFilter; +} +export interface RelationProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + relationType?: StringFilter; + sourceTableId?: UUIDFilter; + targetTableId?: UUIDFilter; + fieldName?: StringFilter; + deleteAction?: StringFilter; + isRequired?: BooleanFilter; + junctionTableId?: UUIDFilter; + junctionTableName?: StringFilter; + junctionSchemaId?: UUIDFilter; + sourceFieldName?: StringFilter; + targetFieldName?: StringFilter; + useCompositeKey?: BooleanFilter; + nodeType?: StringFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFieldId?: UUIDFilter; + outJunctionTableId?: UUIDFilter; + outSourceFieldId?: UUIDFilter; + outTargetFieldId?: UUIDFilter; + and?: RelationProvisionFilter[]; + or?: RelationProvisionFilter[]; + not?: RelationProvisionFilter; +} export interface SchemaGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5046,6 +5737,18 @@ export interface SchemaGrantFilter { or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; } +export interface DefaultPrivilegeFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + objectType?: StringFilter; + privilege?: StringFilter; + granteeName?: StringFilter; + isGrant?: BooleanFilter; + and?: DefaultPrivilegeFilter[]; + or?: DefaultPrivilegeFilter[]; + not?: DefaultPrivilegeFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5106,26 +5809,6 @@ export interface SiteThemeFilter { or?: SiteThemeFilter[]; not?: SiteThemeFilter; } -export interface ProcedureFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - argnames?: StringFilter; - argtypes?: StringFilter; - argdefaults?: StringFilter; - langName?: StringFilter; - definition?: StringFilter; - smartTags?: JSONFilter; - category?: StringFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ProcedureFilter[]; - or?: ProcedureFilter[]; - not?: ProcedureFilter; -} export interface TriggerFunctionFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5447,7 +6130,6 @@ export interface ProfilesModuleFilter { profileGrantsTableName?: StringFilter; profileDefinitionGrantsTableId?: UUIDFilter; profileDefinitionGrantsTableName?: StringFilter; - bitlen?: IntFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; @@ -5623,6 +6305,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -5673,6 +6356,33 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -5775,13 +6485,6 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } -export interface AppPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - and?: AppPermissionDefaultFilter[]; - or?: AppPermissionDefaultFilter[]; - not?: AppPermissionDefaultFilter; -} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; @@ -5802,6 +6505,13 @@ export interface StoreFilter { or?: StoreFilter[]; not?: StoreFilter; } +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -5817,6 +6527,18 @@ export interface OrgPermissionDefaultFilter { or?: OrgPermissionDefaultFilter[]; not?: OrgPermissionDefaultFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -5833,27 +6555,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface MembershipTypeFilter { - id?: IntFilter; - name?: StringFilter; - description?: StringFilter; - prefix?: StringFilter; - and?: MembershipTypeFilter[]; - or?: MembershipTypeFilter[]; - not?: MembershipTypeFilter; -} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -5880,17 +6581,14 @@ export interface PhoneNumberFilter { or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } -export interface AppMembershipDefaultFilter { - id?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - createdBy?: UUIDFilter; - updatedBy?: UUIDFilter; - isApproved?: BooleanFilter; - isVerified?: BooleanFilter; - and?: AppMembershipDefaultFilter[]; - or?: AppMembershipDefaultFilter[]; - not?: AppMembershipDefaultFilter; +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; } export interface NodeTypeRegistryFilter { name?: StringFilter; @@ -5906,6 +6604,18 @@ export interface NodeTypeRegistryFilter { or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; } +export interface AppMembershipDefaultFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isVerified?: BooleanFilter; + and?: AppMembershipDefaultFilter[]; + or?: AppMembershipDefaultFilter[]; + not?: AppMembershipDefaultFilter; +} export interface CommitFilter { id?: UUIDFilter; message?: StringFilter; @@ -5934,18 +6644,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -5971,6 +6669,18 @@ export interface AppLevelFilter { or?: AppLevelFilter[]; not?: AppLevelFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; @@ -6007,6 +6717,20 @@ export interface AstMigrationFilter { or?: AstMigrationFilter[]; not?: AstMigrationFilter; } +export interface UserFilter { + id?: UUIDFilter; + username?: StringFilter; + displayName?: StringFilter; + profilePicture?: StringFilter; + searchTsv?: FullTextFilter; + type?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + searchTsvRank?: FloatFilter; + and?: UserFilter[]; + or?: UserFilter[]; + not?: UserFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -6023,24 +6747,11 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; } -export interface UserFilter { - id?: UUIDFilter; - username?: StringFilter; - displayName?: StringFilter; - profilePicture?: StringFilter; - searchTsv?: FullTextFilter; - type?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - searchTsvRank?: FloatFilter; - and?: UserFilter[]; - or?: UserFilter[]; - not?: UserFilter; -} export interface HierarchyModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6067,6 +6778,14 @@ export interface HierarchyModuleFilter { not?: HierarchyModuleFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecordCondition { path?: string | null; data?: unknown | null; @@ -6244,22 +6963,12 @@ export interface IndexCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunctionCondition { - id?: string | null; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: unknown | null; - security?: number | null; -} export interface PolicyCondition { id?: string | null; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -6293,8 +7002,9 @@ export interface TableGrantCondition { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -6357,9 +7067,10 @@ export interface ViewGrantCondition { id?: string | null; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface ViewRuleCondition { id?: string | null; @@ -6372,9 +7083,11 @@ export interface ViewRuleCondition { export interface TableModuleCondition { id?: string | null; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: unknown | null; fields?: string | null; } @@ -6389,14 +7102,72 @@ export interface TableTemplateModuleCondition { nodeType?: string | null; data?: unknown | null; } -export interface SchemaGrantCondition { +export interface SecureTableProvisionCondition { id?: string | null; databaseId?: string | null; schemaId?: string | null; - granteeName?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFields?: string | null; +} +export interface RelationProvisionCondition { + id?: string | null; + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface SchemaGrantCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilegeCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} export interface ApiSchemaCondition { id?: string | null; databaseId?: string | null; @@ -6439,23 +7210,6 @@ export interface SiteThemeCondition { siteId?: string | null; theme?: unknown | null; } -export interface ProcedureCondition { - id?: string | null; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: unknown | null; - category?: unknown | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunctionCondition { id?: string | null; databaseId?: string | null; @@ -6720,7 +7474,6 @@ export interface ProfilesModuleCondition { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -6863,6 +7616,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgMemberCondition { id?: string | null; @@ -6898,6 +7652,27 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -6976,10 +7751,6 @@ export interface OrgClaimedInviteCondition { updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefaultCondition { - id?: string | null; - permissions?: string | null; -} export interface RefCondition { id?: string | null; name?: string | null; @@ -6994,6 +7765,10 @@ export interface StoreCondition { hash?: string | null; createdAt?: string | null; } +export interface AppPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; +} export interface RoleTypeCondition { id?: number | null; name?: string | null; @@ -7003,16 +7778,6 @@ export interface OrgPermissionDefaultCondition { permissions?: string | null; entityId?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface CryptoAddressCondition { id?: string | null; ownerId?: string | null; @@ -7022,11 +7787,15 @@ export interface CryptoAddressCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipTypeCondition { - id?: number | null; +export interface AppLimitDefaultCondition { + id?: string | null; name?: string | null; - description?: string | null; - prefix?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; } export interface ConnectedAccountCondition { id?: string | null; @@ -7048,14 +7817,11 @@ export interface PhoneNumberCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefaultCondition { - id?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypeCondition { + id?: number | null; + name?: string | null; + description?: string | null; + prefix?: string | null; } export interface NodeTypeRegistryCondition { name?: string | null; @@ -7068,6 +7834,15 @@ export interface NodeTypeRegistryCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppMembershipDefaultCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} export interface CommitCondition { id?: string | null; message?: string | null; @@ -7090,15 +7865,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -7118,6 +7884,15 @@ export interface AppLevelCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface SqlMigrationCondition { id?: number | null; name?: string | null; @@ -7148,6 +7923,17 @@ export interface AstMigrationCondition { actionId?: string | null; actorId?: string | null; } +export interface UserCondition { + id?: string | null; + username?: string | null; + displayName?: string | null; + profilePicture?: unknown | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + searchTsvRank?: number | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -7164,17 +7950,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; -} -export interface UserCondition { - id?: string | null; - username?: string | null; - displayName?: string | null; - profilePicture?: unknown | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModuleCondition { id?: string | null; @@ -7199,6 +7975,22 @@ export interface HierarchyModuleCondition { createdAt?: string | null; } // ============ 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'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7553,26 +8345,6 @@ export type IndexOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type LimitFunctionOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SECURITY_ASC' - | 'SECURITY_DESC'; export type PolicyOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7585,8 +8357,8 @@ export type PolicyOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'PERMISSIVE_ASC' @@ -7653,10 +8425,12 @@ export type TableGrantOrderBy = | 'TABLE_ID_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'FIELD_IDS_ASC' | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -7781,12 +8555,14 @@ export type ViewGrantOrderBy = | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC'; + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7811,12 +8587,16 @@ export type TableModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'FIELDS_ASC' @@ -7843,6 +8623,104 @@ export type TableTemplateModuleOrderBy = | 'NODE_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type SecureTableProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type RelationProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_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' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_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'; export type SchemaGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7859,6 +8737,24 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ApiSchemaOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7943,40 +8839,6 @@ export type SiteThemeOrderBy = | 'SITE_ID_DESC' | 'THEME_ASC' | 'THEME_DESC'; -export type ProcedureOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ARGNAMES_ASC' - | 'ARGNAMES_DESC' - | 'ARGTYPES_ASC' - | 'ARGTYPES_DESC' - | 'ARGDEFAULTS_ASC' - | 'ARGDEFAULTS_DESC' - | 'LANG_NAME_ASC' - | 'LANG_NAME_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type TriggerFunctionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8507,8 +9369,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8792,7 +9652,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMemberOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8861,6 +9723,48 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9017,14 +9921,6 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppPermissionDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; export type RefOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9053,6 +9949,14 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type AppPermissionDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; export type RoleTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9071,26 +9975,6 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; export type CryptoAddressOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9109,7 +9993,7 @@ export type CryptoAddressOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = +export type AppLimitDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -9117,10 +10001,18 @@ export type MembershipTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type ConnectedAccountOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9161,24 +10053,18 @@ export type PhoneNumberOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | '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'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type NodeTypeRegistryOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9201,6 +10087,24 @@ export type NodeTypeRegistryOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppMembershipDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; export type CommitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9245,24 +10149,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9301,6 +10187,24 @@ export type AppLevelOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SqlMigrationOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9361,6 +10265,28 @@ export type AstMigrationOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type UserOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'USERNAME_ASC' + | 'USERNAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC' + | 'SEARCH_TSV_ASC' + | 'SEARCH_TSV_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9394,29 +10320,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type UserOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type HierarchyModuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9462,6 +10368,46 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateGetAllRecordInput { clientMutationId?: string; getAllRecord: { @@ -9909,43 +10855,13 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateLimitFunctionInput { - clientMutationId?: string; - limitFunction: { - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: Record; - security?: number; - }; -} -export interface LimitFunctionPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} -export interface UpdateLimitFunctionInput { - clientMutationId?: string; - id: string; - limitFunctionPatch: LimitFunctionPatch; -} -export interface DeleteLimitFunctionInput { - clientMutationId?: string; - id: string; -} export interface CreatePolicyInput { clientMutationId?: string; policy: { databaseId?: string; tableId: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -9962,7 +10878,7 @@ export interface PolicyPatch { databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -10025,16 +10941,18 @@ export interface CreateTableGrantInput { databaseId?: string; tableId: string; privilege: string; - roleName: string; + granteeName: string; fieldIds?: string[]; + isGrant?: boolean; }; } export interface TableGrantPatch { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; } export interface UpdateTableGrantInput { clientMutationId?: string; @@ -10192,17 +11110,19 @@ export interface CreateViewGrantInput { viewGrant: { databaseId?: string; viewId: string; - roleName: string; + granteeName: string; privilege: string; withGrantOption?: boolean; + isGrant?: boolean; }; } export interface ViewGrantPatch { databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface UpdateViewGrantInput { clientMutationId?: string; @@ -10243,18 +11163,22 @@ export interface CreateTableModuleInput { clientMutationId?: string; tableModule: { databaseId: string; - privateSchemaId?: string; - tableId: string; + schemaId?: string; + tableId?: string; + tableName?: string; nodeType: string; + useRls?: boolean; data?: Record; fields?: string[]; }; } export interface TableModulePatch { databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -10299,6 +11223,124 @@ export interface DeleteTableTemplateModuleInput { clientMutationId?: string; id: string; } +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType?: string; + useRls?: boolean; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: Record; + outFields?: string[]; + }; +} +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFields?: string | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + nodeType?: string; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: 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; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -10321,6 +11363,34 @@ export interface DeleteSchemaGrantInput { clientMutationId?: string; id: string; } +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -10465,46 +11535,6 @@ export interface DeleteSiteThemeInput { clientMutationId?: string; id: string; } -export interface CreateProcedureInput { - clientMutationId?: string; - procedure: { - databaseId?: string; - name: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ProcedurePatch { - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; -} -export interface UpdateProcedureInput { - clientMutationId?: string; - id: string; - procedurePatch: ProcedurePatch; -} -export interface DeleteProcedureInput { - clientMutationId?: string; - id: string; -} export interface CreateTriggerFunctionInput { clientMutationId?: string; triggerFunction: { @@ -11207,7 +12237,6 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -11228,7 +12257,6 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -11582,6 +12610,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -11597,6 +12626,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -11703,6 +12733,62 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -11915,24 +13001,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -11979,6 +13047,24 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -12017,6 +13103,30 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -12057,52 +13167,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -12155,29 +13219,27 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateNodeTypeRegistryInput { clientMutationId?: string; @@ -12209,6 +13271,30 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -12269,30 +13355,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -12345,6 +13407,30 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -12421,6 +13507,33 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + searchTsvRank?: number | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -12436,6 +13549,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -12451,6 +13565,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -12461,33 +13576,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - searchTsvRank?: number | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { @@ -12550,10 +13638,8 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', - procedures: 'Procedure', schemaGrants: 'SchemaGrant', tableGrants: 'TableGrant', triggerFunctions: 'TriggerFunction', @@ -12562,6 +13648,7 @@ export const connectionFieldsMap = { views: 'View', viewGrants: 'ViewGrant', viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -12595,12 +13682,15 @@ export const connectionFieldsMap = { usersModules: 'UsersModule', uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisions: 'RelationProvision', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { tables: 'Table', schemaGrants: 'SchemaGrant', views: 'View', + defaultPrivileges: 'DefaultPrivilege', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -12611,7 +13701,6 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', tableGrants: 'TableGrant', @@ -12622,6 +13711,9 @@ export const connectionFieldsMap = { tableModules: 'TableModule', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisionsBySourceTableId: 'RelationProvision', + relationProvisionsByTargetTableId: 'RelationProvision', }, View: { viewTables: 'ViewTable', @@ -12654,6 +13746,13 @@ export const connectionFieldsMap = { orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', + parentOrgChartEdges: 'OrgChartEdge', + orgChartEdgesByEntityId: 'OrgChartEdge', + childOrgChartEdges: 'OrgChartEdge', + parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', + childOrgChartEdgeGrants: 'OrgChartEdgeGrant', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', @@ -13743,51 +14842,6 @@ export type DeleteIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was created by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type CreateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was updated by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type UpdateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface DeleteLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was deleted by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type DeleteLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; export interface CreatePolicyPayload { clientMutationId?: string | null; /** The `Policy` that was created by this mutation. */ @@ -14283,6 +15337,96 @@ export type DeleteTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +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 CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -14328,6 +15472,51 @@ export type DeleteSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -14598,51 +15787,6 @@ export type DeleteSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -export interface CreateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was created by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type CreateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface UpdateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was updated by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type UpdateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface DeleteProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was deleted by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type DeleteProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; export interface CreateTriggerFunctionPayload { clientMutationId?: string | null; /** The `TriggerFunction` that was created by this mutation. */ @@ -16218,61 +17362,151 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgChartEdgeGrantPayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; }; orgLimitEdge?: { select: OrgLimitEdgeSelect; @@ -16578,51 +17812,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -16713,6 +17902,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type CreateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type UpdateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type DeleteAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -16803,6 +18037,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -16893,96 +18172,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -17073,49 +18262,49 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -17163,6 +18352,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -17253,51 +18487,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -17384,8 +18573,53 @@ export type DeleteAppLevelPayloadSelect = { appLevel?: { select: AppLevelSelect; }; - appLevelEdge?: { - select: AppLevelEdgeSelect; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreateSqlMigrationPayload { @@ -17410,51 +18644,6 @@ export type CreateAstMigrationPayloadSelect = { select: AstMigrationSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -17500,6 +18689,51 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; export interface CreateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ @@ -17696,18 +18930,30 @@ export type SignUpRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -17824,18 +19070,6 @@ export type IndexEdgeSelect = { select: IndexSelect; }; }; -/** A `LimitFunction` edge in the connection. */ -export interface LimitFunctionEdge { - cursor?: string | null; - /** The `LimitFunction` at the end of the edge. */ - node?: LimitFunction | null; -} -export type LimitFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitFunctionSelect; - }; -}; /** A `Policy` edge in the connection. */ export interface PolicyEdge { cursor?: string | null; @@ -17968,6 +19202,30 @@ export type TableTemplateModuleEdgeSelect = { select: TableTemplateModuleSelect; }; }; +/** 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 `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -17980,6 +19238,18 @@ export type SchemaGrantEdgeSelect = { select: SchemaGrantSelect; }; }; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -18052,18 +19322,6 @@ export type SiteThemeEdgeSelect = { select: SiteThemeSelect; }; }; -/** A `Procedure` edge in the connection. */ -export interface ProcedureEdge { - cursor?: string | null; - /** The `Procedure` at the end of the edge. */ - node?: Procedure | null; -} -export type ProcedureEdgeSelect = { - cursor?: boolean; - node?: { - select: ProcedureSelect; - }; -}; /** A `TriggerFunction` edge in the connection. */ export interface TriggerFunctionEdge { cursor?: string | null; @@ -18484,6 +19742,30 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} +export type OrgChartEdgeEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeSelect; + }; +}; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -18580,18 +19862,6 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -18616,6 +19886,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -18640,6 +19922,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -18664,30 +19958,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -18712,16 +19982,16 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -18736,6 +20006,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; @@ -18760,18 +20042,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -18796,16 +20066,16 @@ export type AppLevelEdgeSelect = { select: AppLevelSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type AppMembershipEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: EmailSelect; }; }; /** A `User` edge in the connection. */ @@ -18820,6 +20090,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts new file mode 100644 index 000000000..73079ad7f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts @@ -0,0 +1,236 @@ +/** + * DefaultPrivilege 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 { + DefaultPrivilege, + DefaultPrivilegeWithRelations, + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, + CreateDefaultPrivilegeInput, + UpdateDefaultPrivilegeInput, + DefaultPrivilegePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DefaultPrivilegeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + 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, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: args?.where, + }, + 'DefaultPrivilegeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivilege: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivilege', + document, + variables, + transform: (data: { + defaultPrivileges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + defaultPrivilege: data.defaultPrivileges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DefaultPrivilege', + 'createDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.data, + 'CreateDefaultPrivilegeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'createDefaultPrivilege', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DefaultPrivilegePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DefaultPrivilege', + 'updateDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.where.id, + args.data, + 'UpdateDefaultPrivilegeInput', + 'id', + 'defaultPrivilegePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'updateDefaultPrivilege', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DefaultPrivilege', + 'deleteDefaultPrivilege', + 'defaultPrivilege', + args.where.id, + 'DeleteDefaultPrivilegeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'deleteDefaultPrivilege', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts index b76148dfe..69c875e89 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -16,7 +18,6 @@ export { FieldModel } from './field'; export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { IndexModel } from './indexModel'; -export { LimitFunctionModel } from './limitFunction'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { TableGrantModel } from './tableGrant'; @@ -28,14 +29,16 @@ export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; export { TableModuleModel } from './tableModule'; export { TableTemplateModuleModel } from './tableTemplateModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; -export { ProcedureModel } from './procedure'; export { TriggerFunctionModel } from './triggerFunction'; export { ApiModel } from './api'; export { SiteModel } from './site'; @@ -71,6 +74,8 @@ export { OrgMemberModel } from './orgMember'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; @@ -79,26 +84,26 @@ export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RoleTypeModel } from './roleType'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { CryptoAddressModel } from './cryptoAddress'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { CryptoAddressModel } from './cryptoAddress'; -export { MembershipTypeModel } from './membershipType'; export { ConnectedAccountModel } from './connectedAccount'; export { PhoneNumberModel } from './phoneNumber'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; export { CommitModel } from './commit'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; export { SqlMigrationModel } from './sqlMigration'; export { AstMigrationModel } from './astMigration'; -export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; +export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/procedure.ts b/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts similarity index 53% rename from sdk/constructive-react/src/public/orm/models/procedure.ts rename to sdk/constructive-react/src/public/orm/models/orgChartEdge.ts index 6725b1577..3ff845429 100644 --- a/sdk/constructive-react/src/public/orm/models/procedure.ts +++ b/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts @@ -1,5 +1,5 @@ /** - * Procedure model for ORM client + * OrgChartEdge model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - Procedure, - ProcedureWithRelations, - ProcedureSelect, - ProcedureFilter, - ProcedureOrderBy, - CreateProcedureInput, - UpdateProcedureInput, - ProcedurePatch, + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ProcedureModel { +export class OrgChartEdgeModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - procedures: ConnectionResult>; + orgChartEdges: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class ProcedureModel { before: args?.before, offset: args?.offset, }, - 'ProcedureFilter', - 'ProcedureOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - procedures: { - nodes: InferSelectResult[]; + orgChartEdges: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'Procedure', - 'procedures', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, }, - 'ProcedureFilter', + 'OrgChartEdgeFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - procedure: InferSelectResult | null; + orgChartEdge: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: { @@ -117,90 +117,90 @@ export class ProcedureModel { }, first: 1, }, - 'ProcedureFilter', - 'ProcedureOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Procedure', - fieldName: 'procedure', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', document, variables, transform: (data: { - procedures?: { - nodes?: InferSelectResult[]; + orgChartEdges?: { + nodes?: InferSelectResult[]; }; }) => ({ - procedure: data.procedures?.nodes?.[0] ?? null, + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createProcedure: { - procedure: InferSelectResult; + createOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'Procedure', - 'createProcedure', - 'procedure', + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', args.select, args.data, - 'CreateProcedureInput', + 'CreateOrgChartEdgeInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Procedure', - fieldName: 'createProcedure', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ProcedurePatch + OrgChartEdgePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateProcedure: { - procedure: InferSelectResult; + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'Procedure', - 'updateProcedure', - 'procedure', + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', args.select, args.where.id, args.data, - 'UpdateProcedureInput', + 'UpdateOrgChartEdgeInput', 'id', - 'procedurePatch', + 'orgChartEdgePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Procedure', - fieldName: 'updateProcedure', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class ProcedureModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteProcedure: { - procedure: InferSelectResult; + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'Procedure', - 'deleteProcedure', - 'procedure', + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', args.where.id, - 'DeleteProcedureInput', + 'DeleteOrgChartEdgeInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class ProcedureModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Procedure', - fieldName: 'deleteProcedure', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', document, variables, }); diff --git a/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant 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 { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + 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, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord 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 { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + 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, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord 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 { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + 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, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/relationProvision.ts b/sdk/constructive-react/src/public/orm/models/relationProvision.ts new file mode 100644 index 000000000..83dcb30fd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/relationProvision.ts @@ -0,0 +1,236 @@ +/** + * RelationProvision 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 { + RelationProvision, + RelationProvisionWithRelations, + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy, + CreateRelationProvisionInput, + UpdateRelationProvisionInput, + RelationProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RelationProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + 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, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: args?.where, + }, + 'RelationProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvision', + document, + variables, + transform: (data: { + relationProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + relationProvision: data.relationProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RelationProvision', + 'createRelationProvision', + 'relationProvision', + args.select, + args.data, + 'CreateRelationProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'createRelationProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RelationProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RelationProvision', + 'updateRelationProvision', + 'relationProvision', + args.select, + args.where.id, + args.data, + 'UpdateRelationProvisionInput', + 'id', + 'relationProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'updateRelationProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RelationProvision', + 'deleteRelationProvision', + 'relationProvision', + args.where.id, + 'DeleteRelationProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'deleteRelationProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts new file mode 100644 index 000000000..713dc44c8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts @@ -0,0 +1,238 @@ +/** + * SecureTableProvision 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 { + SecureTableProvision, + SecureTableProvisionWithRelations, + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, + CreateSecureTableProvisionInput, + UpdateSecureTableProvisionInput, + SecureTableProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecureTableProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + 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, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: args?.where, + }, + 'SecureTableProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvision', + document, + variables, + transform: (data: { + secureTableProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secureTableProvision: data.secureTableProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SecureTableProvision', + 'createSecureTableProvision', + 'secureTableProvision', + args.select, + args.data, + 'CreateSecureTableProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'createSecureTableProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SecureTableProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SecureTableProvision', + 'updateSecureTableProvision', + 'secureTableProvision', + args.select, + args.where.id, + args.data, + 'UpdateSecureTableProvisionInput', + 'id', + 'secureTableProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'updateSecureTableProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SecureTableProvision', + 'deleteSecureTableProvision', + 'secureTableProvision', + args.where.id, + 'DeleteSecureTableProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'deleteSecureTableProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts index 468211e98..12a89b785 100644 --- a/sdk/constructive-react/src/public/orm/query/index.ts +++ b/sdk/constructive-react/src/public/orm/query/index.ts @@ -32,6 +32,12 @@ export interface RevParseVariables { storeId?: string; refname?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface AppPermissionsGetMaskVariables { ids?: string[]; } @@ -301,6 +307,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), appPermissionsGetMask: ( args: AppPermissionsGetMaskVariables, options?: { diff --git a/sdk/constructive-react/src/public/orm/skills/apiModule.md b/sdk/constructive-react/src/public/orm/skills/apiModule.md deleted file mode 100644 index bc5e1a7b6..000000000 --- a/sdk/constructive-react/src/public/orm/skills/apiModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-apiModule - - - -ORM operations for ApiModule records - -## Usage - -```typescript -db.apiModule.findMany({ select: { id: true } }).execute() -db.apiModule.findOne({ id: '', select: { id: true } }).execute() -db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() -db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiModule records - -```typescript -const items = await db.apiModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiModule - -```typescript -const item = await db.apiModule.create({ - data: { databaseId: 'value', apiId: 'value', name: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/apiSchema.md b/sdk/constructive-react/src/public/orm/skills/apiSchema.md deleted file mode 100644 index 965a1cded..000000000 --- a/sdk/constructive-react/src/public/orm/skills/apiSchema.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-apiSchema - - - -ORM operations for ApiSchema records - -## Usage - -```typescript -db.apiSchema.findMany({ select: { id: true } }).execute() -db.apiSchema.findOne({ id: '', select: { id: true } }).execute() -db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() -db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiSchema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiSchema records - -```typescript -const items = await db.apiSchema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiSchema - -```typescript -const item = await db.apiSchema.create({ - data: { databaseId: 'value', schemaId: 'value', apiId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/app.md b/sdk/constructive-react/src/public/orm/skills/app.md deleted file mode 100644 index aa0d12b64..000000000 --- a/sdk/constructive-react/src/public/orm/skills/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-app - - - -ORM operations for App records - -## Usage - -```typescript -db.app.findMany({ select: { id: true } }).execute() -db.app.findOne({ id: '', select: { id: true } }).execute() -db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() -db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.app.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all app records - -```typescript -const items = await db.app.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a app - -```typescript -const item = await db.app.create({ - data: { databaseId: 'value', siteId: 'value', name: 'value', appImage: 'value', appStoreLink: 'value', appStoreId: 'value', appIdPrefix: 'value', playStoreLink: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appAchievement.md b/sdk/constructive-react/src/public/orm/skills/appAchievement.md deleted file mode 100644 index 92ab466a3..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md b/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md deleted file mode 100644 index 82c322958..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembershipDefault - - - -ORM operations for AppMembershipDefault records - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md b/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md deleted file mode 100644 index 89c574dd7..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appOwnerGrant - - - -ORM operations for AppOwnerGrant records - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermission.md b/sdk/constructive-react/src/public/orm/skills/appPermission.md deleted file mode 100644 index a497f7b8a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermission - - - -ORM operations for AppPermission records - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md b/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md deleted file mode 100644 index ef8289183..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermissionDefault - - - -ORM operations for AppPermissionDefault records - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/applyRls.md b/sdk/constructive-react/src/public/orm/skills/applyRls.md deleted file mode 100644 index 4716da759..000000000 --- a/sdk/constructive-react/src/public/orm/skills/applyRls.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-applyRls - - - -Execute the applyRls mutation - -## Usage - -```typescript -db.mutation.applyRls({ input: '' }).execute() -``` - -## Examples - -### Run applyRls - -```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md b/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md deleted file mode 100644 index 89a929c4f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-databaseProvisionModule - - - -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. - -## Usage - -```typescript -db.databaseProvisionModule.findMany({ select: { id: true } }).execute() -db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all databaseProvisionModule records - -```typescript -const items = await db.databaseProvisionModule.findMany({ - select: { id: true, databaseName: true } -}).execute(); -``` - -### Create a databaseProvisionModule - -```typescript -const item = await db.databaseProvisionModule.create({ - data: { databaseName: 'value', ownerId: 'value', subdomain: 'value', domain: 'value', modules: 'value', options: 'value', bootstrapUser: 'value', status: 'value', errorMessage: 'value', databaseId: 'value', completedAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/domain.md b/sdk/constructive-react/src/public/orm/skills/domain.md deleted file mode 100644 index 382a92135..000000000 --- a/sdk/constructive-react/src/public/orm/skills/domain.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-domain - - - -ORM operations for Domain records - -## Usage - -```typescript -db.domain.findMany({ select: { id: true } }).execute() -db.domain.findOne({ id: '', select: { id: true } }).execute() -db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() -db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.domain.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all domain records - -```typescript -const items = await db.domain.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a domain - -```typescript -const item = await db.domain.create({ - data: { databaseId: 'value', apiId: 'value', siteId: 'value', subdomain: 'value', domain: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/email.md b/sdk/constructive-react/src/public/orm/skills/email.md deleted file mode 100644 index 9bc21e74f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-email - - - -ORM operations for Email records - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/emailsModule.md b/sdk/constructive-react/src/public/orm/skills/emailsModule.md deleted file mode 100644 index 2634c1661..000000000 --- a/sdk/constructive-react/src/public/orm/skills/emailsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-emailsModule - - - -ORM operations for EmailsModule records - -## Usage - -```typescript -db.emailsModule.findMany({ select: { id: true } }).execute() -db.emailsModule.findOne({ id: '', select: { id: true } }).execute() -db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.emailsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all emailsModule records - -```typescript -const items = await db.emailsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a emailsModule - -```typescript -const item = await db.emailsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/field.md b/sdk/constructive-react/src/public/orm/skills/field.md deleted file mode 100644 index e22588cfc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/field.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-field - - - -ORM operations for Field records - -## Usage - -```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: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() -db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.field.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all field records - -```typescript -const items = await db.field.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a field - -```typescript -const item = await db.field.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', isRequired: 'value', defaultValue: 'value', defaultValueAst: 'value', isHidden: 'value', type: 'value', fieldOrder: 'value', regexp: 'value', chk: 'value', chkExpr: 'value', min: 'value', max: 'value', tags: 'value', category: 'value', module: 'value', scope: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/fieldModule.md b/sdk/constructive-react/src/public/orm/skills/fieldModule.md deleted file mode 100644 index c4cbbbce9..000000000 --- a/sdk/constructive-react/src/public/orm/skills/fieldModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-fieldModule - - - -ORM operations for FieldModule records - -## Usage - -```typescript -db.fieldModule.findMany({ select: { id: true } }).execute() -db.fieldModule.findOne({ id: '', select: { id: true } }).execute() -db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute() -db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fieldModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fieldModule records - -```typescript -const items = await db.fieldModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fieldModule - -```typescript -const item = await db.fieldModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', fieldId: 'value', nodeType: 'value', data: 'value', triggers: 'value', functions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md b/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md deleted file mode 100644 index fa445e8f4..000000000 --- a/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-foreignKeyConstraint - - - -ORM operations for ForeignKeyConstraint records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all foreignKeyConstraint records - -```typescript -const items = await db.foreignKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a foreignKeyConstraint - -```typescript -const item = await db.foreignKeyConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', refTableId: 'value', refFieldIds: 'value', deleteAction: 'value', updateAction: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/forgotPassword.md b/sdk/constructive-react/src/public/orm/skills/forgotPassword.md deleted file mode 100644 index 38c59f662..000000000 --- a/sdk/constructive-react/src/public/orm/skills/forgotPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: '' }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md b/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md deleted file mode 100644 index 996c517da..000000000 --- a/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-fullTextSearch - - - -ORM operations for FullTextSearch records - -## Usage - -```typescript -db.fullTextSearch.findMany({ select: { id: true } }).execute() -db.fullTextSearch.findOne({ id: '', select: { id: true } }).execute() -db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute() -db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fullTextSearch.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fullTextSearch records - -```typescript -const items = await db.fullTextSearch.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fullTextSearch - -```typescript -const item = await db.fullTextSearch.create({ - data: { databaseId: 'value', tableId: 'value', fieldId: 'value', fieldIds: 'value', weights: 'value', langs: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/index.md b/sdk/constructive-react/src/public/orm/skills/index.md deleted file mode 100644 index 0a848a2e1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/index.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-index - - - -ORM operations for Index records - -## Usage - -```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: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.index.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all index records - -```typescript -const items = await db.index.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a index - -```typescript -const item = await db.index.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', fieldIds: 'value', includeFieldIds: 'value', accessMethod: 'value', indexParams: 'value', whereClause: 'value', isUnique: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/invitesModule.md b/sdk/constructive-react/src/public/orm/skills/invitesModule.md deleted file mode 100644 index 64bdeacaa..000000000 --- a/sdk/constructive-react/src/public/orm/skills/invitesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invitesModule - - - -ORM operations for InvitesModule records - -## Usage - -```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: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute() -db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.invitesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invitesModule records - -```typescript -const items = await db.invitesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a invitesModule - -```typescript -const item = await db.invitesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', emailsTableId: 'value', usersTableId: 'value', invitesTableId: 'value', claimedInvitesTableId: 'value', invitesTableName: 'value', claimedInvitesTableName: 'value', submitInviteCodeFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/limitFunction.md b/sdk/constructive-react/src/public/orm/skills/limitFunction.md deleted file mode 100644 index 7db5044ee..000000000 --- a/sdk/constructive-react/src/public/orm/skills/limitFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitFunction - - - -ORM operations for LimitFunction records - -## Usage - -```typescript -db.limitFunction.findMany({ select: { id: true } }).execute() -db.limitFunction.findOne({ id: '', select: { id: true } }).execute() -db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute() -db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitFunction records - -```typescript -const items = await db.limitFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitFunction - -```typescript -const item = await db.limitFunction.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', data: 'value', security: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/limitsModule.md b/sdk/constructive-react/src/public/orm/skills/limitsModule.md deleted file mode 100644 index 6f9cccea1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/limitsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitsModule - - - -ORM operations for LimitsModule records - -## Usage - -```typescript -db.limitsModule.findMany({ select: { id: true } }).execute() -db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitsModule records - -```typescript -const items = await db.limitsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitsModule - -```typescript -const item = await db.limitsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', limitIncrementFunction: 'value', limitDecrementFunction: 'value', limitIncrementTrigger: 'value', limitDecrementTrigger: 'value', limitUpdateTrigger: 'value', limitCheckFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/membershipType.md b/sdk/constructive-react/src/public/orm/skills/membershipType.md deleted file mode 100644 index 898d85107..000000000 --- a/sdk/constructive-react/src/public/orm/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipType - - - -ORM operations for MembershipType records - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: 'value', description: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md b/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md deleted file mode 100644 index 17b77bb4b..000000000 --- a/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipTypesModule - - - -ORM operations for MembershipTypesModule records - -## Usage - -```typescript -db.membershipTypesModule.findMany({ select: { id: true } }).execute() -db.membershipTypesModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipTypesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipTypesModule records - -```typescript -const items = await db.membershipTypesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipTypesModule - -```typescript -const item = await db.membershipTypesModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/membershipsModule.md b/sdk/constructive-react/src/public/orm/skills/membershipsModule.md deleted file mode 100644 index 6851144a5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/membershipsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipsModule - - - -ORM operations for MembershipsModule records - -## Usage - -```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: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute() -db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipsModule records - -```typescript -const items = await db.membershipsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipsModule - -```typescript -const item = await db.membershipsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', membershipsTableId: 'value', membershipsTableName: 'value', membersTableId: 'value', membersTableName: 'value', membershipDefaultsTableId: 'value', membershipDefaultsTableName: 'value', grantsTableId: 'value', grantsTableName: 'value', actorTableId: 'value', limitsTableId: 'value', defaultLimitsTableId: 'value', permissionsTableId: 'value', defaultPermissionsTableId: 'value', sprtTableId: 'value', adminGrantsTableId: 'value', adminGrantsTableName: 'value', ownerGrantsTableId: 'value', ownerGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', entityTableOwnerId: 'value', prefix: 'value', actorMaskCheck: 'value', actorPermCheck: 'value', entityIdsByMask: 'value', entityIdsByPerm: 'value', entityIdsFunction: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md b/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md deleted file mode 100644 index 0024949c1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-nodeTypeRegistry - - - -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). - -## Usage - -```typescript -db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() -db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() -db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() -``` - -## Examples - -### List all nodeTypeRegistry records - -```typescript -const items = await db.nodeTypeRegistry.findMany({ - select: { name: true, slug: true } -}).execute(); -``` - -### Create a nodeTypeRegistry - -```typescript -const item = await db.nodeTypeRegistry.create({ - data: { slug: 'value', category: 'value', displayName: 'value', description: 'value', parameterSchema: 'value', tags: 'value' }, - select: { name: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md b/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md deleted file mode 100644 index 675b76741..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgAdminGrant - - - -ORM operations for OrgAdminGrant records - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md b/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md deleted file mode 100644 index 5693e2856..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgClaimedInvite - - - -ORM operations for OrgClaimedInvite records - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgGrant.md b/sdk/constructive-react/src/public/orm/skills/orgGrant.md deleted file mode 100644 index ac4c4b896..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgGrant - - - -ORM operations for OrgGrant records - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgLimit.md b/sdk/constructive-react/src/public/orm/skills/orgLimit.md deleted file mode 100644 index 19681fddf..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimit - - - -ORM operations for OrgLimit records - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md b/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md deleted file mode 100644 index 4a4e505bd..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimitDefault - - - -ORM operations for OrgLimitDefault records - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgMembership.md b/sdk/constructive-react/src/public/orm/skills/orgMembership.md deleted file mode 100644 index b98b850b2..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembership - - - -ORM operations for OrgMembership records - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md b/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md deleted file mode 100644 index cd8146f14..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembershipDefault - - - -ORM operations for OrgMembershipDefault records - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md b/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md deleted file mode 100644 index 8a490261b..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgOwnerGrant - - - -ORM operations for OrgOwnerGrant records - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md deleted file mode 100644 index 8d8e20afc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermissionDefault - - - -ORM operations for OrgPermissionDefault records - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index f67397dcc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index a67198a29..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/permissionsModule.md b/sdk/constructive-react/src/public/orm/skills/permissionsModule.md deleted file mode 100644 index 4b11e8d55..000000000 --- a/sdk/constructive-react/src/public/orm/skills/permissionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-permissionsModule - - - -ORM operations for PermissionsModule records - -## Usage - -```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: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute() -db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.permissionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all permissionsModule records - -```typescript -const items = await db.permissionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a permissionsModule - -```typescript -const item = await db.permissionsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', prefix: 'value', getPaddedMask: 'value', getMask: 'value', getByMask: 'value', getMaskByName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md b/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md deleted file mode 100644 index 309f0bc88..000000000 --- a/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumbersModule - - - -ORM operations for PhoneNumbersModule records - -## Usage - -```typescript -db.phoneNumbersModule.findMany({ select: { id: true } }).execute() -db.phoneNumbersModule.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumbersModule records - -```typescript -const items = await db.phoneNumbersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a phoneNumbersModule - -```typescript -const item = await db.phoneNumbersModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/policy.md b/sdk/constructive-react/src/public/orm/skills/policy.md deleted file mode 100644 index c31b2d4dd..000000000 --- a/sdk/constructive-react/src/public/orm/skills/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-policy - - - -ORM operations for Policy records - -## Usage - -```typescript -db.policy.findMany({ select: { id: true } }).execute() -db.policy.findOne({ id: '', select: { id: true } }).execute() -db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.policy.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all policy records - -```typescript -const items = await db.policy.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a policy - -```typescript -const item = await db.policy.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', roleName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md b/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md deleted file mode 100644 index 65e798742..000000000 --- a/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-primaryKeyConstraint - - - -ORM operations for PrimaryKeyConstraint records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all primaryKeyConstraint records - -```typescript -const items = await db.primaryKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a primaryKeyConstraint - -```typescript -const item = await db.primaryKeyConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/procedure.md b/sdk/constructive-react/src/public/orm/skills/procedure.md deleted file mode 100644 index 838b474d3..000000000 --- a/sdk/constructive-react/src/public/orm/skills/procedure.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-procedure - - - -ORM operations for Procedure records - -## Usage - -```typescript -db.procedure.findMany({ select: { id: true } }).execute() -db.procedure.findOne({ id: '', select: { id: true } }).execute() -db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.procedure.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all procedure records - -```typescript -const items = await db.procedure.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a procedure - -```typescript -const item = await db.procedure.create({ - data: { databaseId: 'value', name: 'value', argnames: 'value', argtypes: 'value', argdefaults: 'value', langName: 'value', definition: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/profilesModule.md b/sdk/constructive-react/src/public/orm/skills/profilesModule.md deleted file mode 100644 index b6a9caa1a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/profilesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-profilesModule - - - -ORM operations for ProfilesModule records - -## Usage - -```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: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() -db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.profilesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all profilesModule records - -```typescript -const items = await db.profilesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a profilesModule - -```typescript -const item = await db.profilesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/ref.md b/sdk/constructive-react/src/public/orm/skills/ref.md deleted file mode 100644 index 3165ec41e..000000000 --- a/sdk/constructive-react/src/public/orm/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/rlsModule.md b/sdk/constructive-react/src/public/orm/skills/rlsModule.md deleted file mode 100644 index 2d97f0fe6..000000000 --- a/sdk/constructive-react/src/public/orm/skills/rlsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-rlsModule - - - -ORM operations for RlsModule records - -## Usage - -```typescript -db.rlsModule.findMany({ select: { id: true } }).execute() -db.rlsModule.findOne({ id: '', select: { id: true } }).execute() -db.rlsModule.create({ data: { databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute() -db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rlsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rlsModule records - -```typescript -const items = await db.rlsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rlsModule - -```typescript -const item = await db.rlsModule.create({ - data: { databaseId: 'value', apiId: 'value', schemaId: 'value', privateSchemaId: 'value', sessionCredentialsTableId: 'value', sessionsTableId: 'value', usersTableId: 'value', authenticate: 'value', authenticateStrict: 'value', currentRole: 'value', currentRoleId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/roleType.md b/sdk/constructive-react/src/public/orm/skills/roleType.md deleted file mode 100644 index 261296f03..000000000 --- a/sdk/constructive-react/src/public/orm/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/schema.md b/sdk/constructive-react/src/public/orm/skills/schema.md deleted file mode 100644 index d02fb12ca..000000000 --- a/sdk/constructive-react/src/public/orm/skills/schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-schema - - - -ORM operations for Schema records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schema records - -```typescript -const items = await db.schema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schema - -```typescript -const item = await db.schema.create({ - data: { databaseId: 'value', name: 'value', schemaName: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value', isPublic: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/secretsModule.md b/sdk/constructive-react/src/public/orm/skills/secretsModule.md deleted file mode 100644 index e2e1a03a7..000000000 --- a/sdk/constructive-react/src/public/orm/skills/secretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-secretsModule - - - -ORM operations for SecretsModule records - -## Usage - -```typescript -db.secretsModule.findMany({ select: { id: true } }).execute() -db.secretsModule.findOne({ id: '', select: { id: true } }).execute() -db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.secretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all secretsModule records - -```typescript -const items = await db.secretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a secretsModule - -```typescript -const item = await db.secretsModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/signUp.md b/sdk/constructive-react/src/public/orm/skills/signUp.md deleted file mode 100644 index 8c999d2b8..000000000 --- a/sdk/constructive-react/src/public/orm/skills/signUp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md b/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md deleted file mode 100644 index b1aaf8017..000000000 --- a/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteMetadatum - - - -ORM operations for SiteMetadatum records - -## Usage - -```typescript -db.siteMetadatum.findMany({ select: { id: true } }).execute() -db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() -db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteMetadatum.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteMetadatum records - -```typescript -const items = await db.siteMetadatum.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteMetadatum - -```typescript -const item = await db.siteMetadatum.create({ - data: { databaseId: 'value', siteId: 'value', title: 'value', description: 'value', ogImage: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/siteModule.md b/sdk/constructive-react/src/public/orm/skills/siteModule.md deleted file mode 100644 index 94a650431..000000000 --- a/sdk/constructive-react/src/public/orm/skills/siteModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteModule - - - -ORM operations for SiteModule records - -## Usage - -```typescript -db.siteModule.findMany({ select: { id: true } }).execute() -db.siteModule.findOne({ id: '', select: { id: true } }).execute() -db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() -db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteModule records - -```typescript -const items = await db.siteModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteModule - -```typescript -const item = await db.siteModule.create({ - data: { databaseId: 'value', siteId: 'value', name: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/sqlMigration.md b/sdk/constructive-react/src/public/orm/skills/sqlMigration.md deleted file mode 100644 index f02f86fd5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/sqlMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-sqlMigration - - - -ORM operations for SqlMigration records - -## Usage - -```typescript -db.sqlMigration.findMany({ select: { id: true } }).execute() -db.sqlMigration.findOne({ id: '', select: { id: true } }).execute() -db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.sqlMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sqlMigration records - -```typescript -const items = await db.sqlMigration.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a sqlMigration - -```typescript -const item = await db.sqlMigration.create({ - data: { name: 'value', databaseId: 'value', deploy: 'value', deps: 'value', payload: 'value', content: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md b/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md deleted file mode 100644 index bce806fd4..000000000 --- a/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/stepsRequired.md b/sdk/constructive-react/src/public/orm/skills/stepsRequired.md deleted file mode 100644 index 8ea0ad638..000000000 --- a/sdk/constructive-react/src/public/orm/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/tableModule.md b/sdk/constructive-react/src/public/orm/skills/tableModule.md deleted file mode 100644 index 38fa64d39..000000000 --- a/sdk/constructive-react/src/public/orm/skills/tableModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableModule - - - -ORM operations for TableModule records - -## Usage - -```typescript -db.tableModule.findMany({ select: { id: true } }).execute() -db.tableModule.findOne({ id: '', select: { id: true } }).execute() -db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute() -db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableModule records - -```typescript -const items = await db.tableModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableModule - -```typescript -const item = await db.tableModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', nodeType: 'value', data: 'value', fields: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/user.md b/sdk/constructive-react/src/public/orm/skills/user.md deleted file mode 100644 index e80b99583..000000000 --- a/sdk/constructive-react/src/public/orm/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-user - - - -ORM operations for User records - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/userAuthModule.md b/sdk/constructive-react/src/public/orm/skills/userAuthModule.md deleted file mode 100644 index 4b022d732..000000000 --- a/sdk/constructive-react/src/public/orm/skills/userAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-userAuthModule - - - -ORM operations for UserAuthModule records - -## Usage - -```typescript -db.userAuthModule.findMany({ select: { id: true } }).execute() -db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute() -db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.userAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all userAuthModule records - -```typescript -const items = await db.userAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a userAuthModule - -```typescript -const item = await db.userAuthModule.create({ - data: { databaseId: 'value', schemaId: 'value', emailsTableId: 'value', usersTableId: 'value', secretsTableId: 'value', encryptedTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', auditsTableId: 'value', auditsTableName: 'value', signInFunction: 'value', signUpFunction: 'value', signOutFunction: 'value', setPasswordFunction: 'value', resetPasswordFunction: 'value', forgotPasswordFunction: 'value', sendVerificationEmailFunction: 'value', verifyEmailFunction: 'value', verifyPasswordFunction: 'value', checkPasswordFunction: 'value', sendAccountDeletionEmailFunction: 'value', deleteAccountFunction: 'value', signInOneTimeTokenFunction: 'value', oneTimeTokenFunction: 'value', extendTokenExpires: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/usersModule.md b/sdk/constructive-react/src/public/orm/skills/usersModule.md deleted file mode 100644 index 320d49201..000000000 --- a/sdk/constructive-react/src/public/orm/skills/usersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-usersModule - - - -ORM operations for UsersModule records - -## Usage - -```typescript -db.usersModule.findMany({ select: { id: true } }).execute() -db.usersModule.findOne({ id: '', select: { id: true } }).execute() -db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute() -db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.usersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all usersModule records - -```typescript -const items = await db.usersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a usersModule - -```typescript -const item = await db.usersModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', typeTableId: 'value', typeTableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/viewRule.md b/sdk/constructive-react/src/public/orm/skills/viewRule.md deleted file mode 100644 index e6bd8f1ab..000000000 --- a/sdk/constructive-react/src/public/orm/skills/viewRule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewRule - - - -DO INSTEAD rules for views (e.g., read-only enforcement) - -## Usage - -```typescript -db.viewRule.findMany({ select: { id: true } }).execute() -db.viewRule.findOne({ id: '', select: { id: true } }).execute() -db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() -db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewRule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewRule records - -```typescript -const items = await db.viewRule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewRule - -```typescript -const item = await db.viewRule.create({ - data: { databaseId: 'value', viewId: 'value', name: 'value', event: 'value', action: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index 26e9be0bd..211a47a11 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -35,6 +35,7 @@ import type { Database, DatabaseProvisionModule, DefaultIdsModule, + DefaultPrivilege, DenormalizedTableField, Domain, Email, @@ -50,7 +51,6 @@ import type { Invite, InvitesModule, LevelsModule, - LimitFunction, LimitsModule, MembershipType, MembershipTypesModule, @@ -58,7 +58,11 @@ import type { NodeTypeRegistry, Object, OrgAdminGrant, + OrgChartEdge, + OrgChartEdgeGrant, OrgClaimedInvite, + OrgGetManagersRecord, + OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, @@ -74,14 +78,15 @@ import type { PhoneNumbersModule, Policy, PrimaryKeyConstraint, - Procedure, ProfilesModule, Ref, + RelationProvision, RlsModule, RoleType, Schema, SchemaGrant, SecretsModule, + SecureTableProvision, SessionsModule, Site, SiteMetadatum, @@ -211,19 +216,6 @@ export type IndexOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `LimitFunction`. */ -export type LimitFunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; /** Methods to use when ordering `Policy`. */ export type PolicyOrderBy = | 'NATURAL' @@ -329,10 +321,12 @@ export type ViewGrantOrderBy = | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC'; + | 'PRIVILEGE_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; /** Methods to use when ordering `ViewRule`. */ export type ViewRuleOrderBy = | 'NATURAL' @@ -393,6 +387,34 @@ export type TableTemplateModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_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' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC'; +/** Methods to use when ordering `RelationProvision`. */ +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'; /** Methods to use when ordering `Table`. */ export type TableOrderBy = | 'NATURAL' @@ -425,6 +447,25 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `DefaultPrivilege`. */ +export type DefaultPrivilegeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; /** Methods to use when ordering `ApiModule`. */ export type ApiModuleOrderBy = | 'NATURAL' @@ -435,7 +476,9 @@ export type ApiModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'API_ID_ASC' - | 'API_ID_DESC'; + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `ApiSchema`. */ export type ApiSchemaOrderBy = | 'NATURAL' @@ -516,21 +559,6 @@ export type SchemaOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Procedure`. */ -export type ProcedureOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `TriggerFunction`. */ export type TriggerFunctionOrderBy = | 'NATURAL' @@ -870,7 +898,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `OrgMember`. */ export type OrgMemberOrderBy = | 'NATURAL' @@ -929,6 +959,38 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgChartEdge`. */ +export type 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'; +/** Methods to use when ordering `OrgChartEdgeGrant`. */ +export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC'; /** Methods to use when ordering `AppLimit`. */ export type AppLimitOrderBy = | 'NATURAL' @@ -1057,13 +1119,6 @@ export type OrgClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppPermissionDefault`. */ -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; /** Methods to use when ordering `Ref`. */ export type RefOrderBy = | 'NATURAL' @@ -1084,24 +1139,15 @@ export type StoreOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `OrgPermissionDefault`. */ -export type OrgPermissionDefaultOrderBy = +/** Methods to use when ordering `AppPermissionDefault`. */ +export type AppPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = +/** Methods to use when ordering `RoleType`. */ +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1109,15 +1155,13 @@ export type AppLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = +/** Methods to use when ordering `OrgPermissionDefault`. */ +export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; + | 'ID_DESC'; /** Methods to use when ordering `CryptoAddress`. */ export type CryptoAddressOrderBy = | 'NATURAL' @@ -1131,8 +1175,17 @@ export type CryptoAddressOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1168,6 +1221,26 @@ export type PhoneNumberOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `NodeTypeRegistry`. */ +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -1205,17 +1278,6 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `NodeTypeRegistry`. */ -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; /** Methods to use when ordering `Object`. */ export type ObjectOrderBy = | 'NATURAL' @@ -1253,19 +1315,6 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `Email`. */ -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppLevelRequirement`. */ export type AppLevelRequirementOrderBy = | 'NATURAL' @@ -1305,6 +1354,19 @@ export type AppLevelOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Email`. */ +export type EmailOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SqlMigration`. */ export type SqlMigrationOrderBy = | 'NATURAL' @@ -1349,6 +1411,23 @@ export type AstMigrationOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `User`. */ +export type UserOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'USERNAME_ASC' + | 'USERNAME_DESC' + | 'SEARCH_TSV_ASC' + | 'SEARCH_TSV_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -1369,24 +1448,9 @@ export type AppMembershipOrderBy = | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -/** Methods to use when ordering `User`. */ -export type UserOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `HierarchyModule`. */ export type HierarchyModuleOrderBy = | 'NATURAL' @@ -1818,53 +1882,6 @@ export interface IndexFilter { /** Negates the expression. */ not?: IndexFilter; } -/** - * A condition to be used against `LimitFunction` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface LimitFunctionCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `databaseId` field. */ - databaseId?: string; - /** Checks for equality with the object’s `tableId` field. */ - tableId?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `label` field. */ - label?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `data` field. */ - data?: unknown; - /** Checks for equality with the object’s `security` field. */ - security?: number; -} -/** A filter to be used against `LimitFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface LimitFunctionFilter { - /** 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 `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 `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `security` field. */ - security?: IntFilter; - /** Checks for all expressions in this list. */ - and?: LimitFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitFunctionFilter[]; - /** Negates the expression. */ - not?: LimitFunctionFilter; -} /** A condition to be used against `Policy` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface PolicyCondition { /** Checks for equality with the object’s `id` field. */ @@ -1875,8 +1892,8 @@ export interface PolicyCondition { tableId?: string; /** Checks for equality with the object’s `name` field. */ name?: string; - /** Checks for equality with the object’s `roleName` field. */ - roleName?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; /** Checks for equality with the object’s `privilege` field. */ privilege?: string; /** Checks for equality with the object’s `permissive` field. */ @@ -1912,8 +1929,8 @@ export interface PolicyFilter { tableId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; /** Filter by the object’s `privilege` field. */ privilege?: StringFilter; /** Filter by the object’s `permissive` field. */ @@ -2025,10 +2042,12 @@ export interface TableGrantCondition { tableId?: string; /** Checks for equality with the object’s `privilege` field. */ privilege?: string; - /** Checks for equality with the object’s `roleName` field. */ - roleName?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; /** Checks for equality with the object’s `fieldIds` field. */ fieldIds?: string[]; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; /** Checks for equality with the object’s `createdAt` field. */ createdAt?: string; /** Checks for equality with the object’s `updatedAt` field. */ @@ -2044,10 +2063,12 @@ export interface TableGrantFilter { tableId?: UUIDFilter; /** Filter by the object’s `privilege` field. */ privilege?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; /** Filter by the object’s `fieldIds` field. */ fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -2236,12 +2257,14 @@ export interface ViewGrantCondition { databaseId?: string; /** Checks for equality with the object’s `viewId` field. */ viewId?: string; - /** Checks for equality with the object’s `roleName` field. */ - roleName?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; /** Checks for equality with the object’s `privilege` field. */ privilege?: string; /** Checks for equality with the object’s `withGrantOption` field. */ withGrantOption?: boolean; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; } /** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ export interface ViewGrantFilter { @@ -2251,12 +2274,14 @@ export interface ViewGrantFilter { databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; /** Filter by the object’s `privilege` field. */ privilege?: StringFilter; /** Filter by the object’s `withGrantOption` field. */ withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; /** Checks for all expressions in this list. */ and?: ViewGrantFilter[]; /** Checks for any expressions in this list. */ @@ -2388,12 +2413,16 @@ export interface TableModuleCondition { id?: string; /** Checks for equality with the object’s `databaseId` field. */ databaseId?: string; - /** Checks for equality with the object’s `privateSchemaId` field. */ - privateSchemaId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; /** Checks for equality with the object’s `tableId` field. */ tableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; /** Checks for equality with the object’s `nodeType` field. */ nodeType?: string; + /** Checks for equality with the object’s `useRls` field. */ + useRls?: boolean; /** Checks for equality with the object’s `data` field. */ data?: unknown; /** Checks for equality with the object’s `fields` field. */ @@ -2405,12 +2434,16 @@ export interface TableModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: 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 `nodeType` field. */ nodeType?: StringFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; /** Filter by the object’s `fields` field. */ @@ -2473,6 +2506,216 @@ export interface TableTemplateModuleFilter { /** Negates the expression. */ not?: TableTemplateModuleFilter; } +/** + * A condition to be used against `SecureTableProvision` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface SecureTableProvisionCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; + /** Checks for equality with the object’s `nodeType` field. */ + nodeType?: string; + /** Checks for equality with the object’s `useRls` field. */ + useRls?: boolean; + /** Checks for equality with the object’s `nodeData` field. */ + nodeData?: unknown; + /** Checks for equality with the object’s `grantRoles` field. */ + grantRoles?: string[]; + /** Checks for equality with the object’s `grantPrivileges` field. */ + grantPrivileges?: unknown; + /** Checks for equality with the object’s `policyType` field. */ + policyType?: string; + /** Checks for equality with the object’s `policyPrivileges` field. */ + policyPrivileges?: string[]; + /** Checks for equality with the object’s `policyRole` field. */ + policyRole?: string; + /** Checks for equality with the object’s `policyPermissive` field. */ + policyPermissive?: boolean; + /** Checks for equality with the object’s `policyName` field. */ + policyName?: string; + /** Checks for equality with the object’s `policyData` field. */ + policyData?: unknown; + /** Checks for equality with the object’s `outFields` field. */ + outFields?: string[]; +} +/** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `nodeData` field. */ + nodeData?: JSONFilter; + /** Filter by the object’s `grantRoles` field. */ + grantRoles?: StringListFilter; + /** Filter by the object’s `grantPrivileges` field. */ + grantPrivileges?: JSONFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `policyPrivileges` field. */ + policyPrivileges?: StringListFilter; + /** Filter by the object’s `policyRole` field. */ + policyRole?: StringFilter; + /** Filter by the object’s `policyPermissive` field. */ + policyPermissive?: BooleanFilter; + /** Filter by the object’s `policyName` field. */ + policyName?: StringFilter; + /** Filter by the object’s `policyData` field. */ + policyData?: 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 condition to be used against `RelationProvision` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface RelationProvisionCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `relationType` field. */ + relationType?: string; + /** Checks for equality with the object’s `sourceTableId` field. */ + sourceTableId?: string; + /** Checks for equality with the object’s `targetTableId` field. */ + targetTableId?: string; + /** Checks for equality with the object’s `fieldName` field. */ + fieldName?: string; + /** Checks for equality with the object’s `deleteAction` field. */ + deleteAction?: string; + /** Checks for equality with the object’s `isRequired` field. */ + isRequired?: boolean; + /** Checks for equality with the object’s `junctionTableId` field. */ + junctionTableId?: string; + /** Checks for equality with the object’s `junctionTableName` field. */ + junctionTableName?: string; + /** Checks for equality with the object’s `junctionSchemaId` field. */ + junctionSchemaId?: string; + /** Checks for equality with the object’s `sourceFieldName` field. */ + sourceFieldName?: string; + /** Checks for equality with the object’s `targetFieldName` field. */ + targetFieldName?: string; + /** Checks for equality with the object’s `useCompositeKey` field. */ + useCompositeKey?: boolean; + /** Checks for equality with the object’s `nodeType` field. */ + nodeType?: string; + /** Checks for equality with the object’s `nodeData` field. */ + nodeData?: unknown; + /** Checks for equality with the object’s `grantRoles` field. */ + grantRoles?: string[]; + /** Checks for equality with the object’s `grantPrivileges` field. */ + grantPrivileges?: unknown; + /** Checks for equality with the object’s `policyType` field. */ + policyType?: string; + /** Checks for equality with the object’s `policyPrivileges` field. */ + policyPrivileges?: string[]; + /** Checks for equality with the object’s `policyRole` field. */ + policyRole?: string; + /** Checks for equality with the object’s `policyPermissive` field. */ + policyPermissive?: boolean; + /** Checks for equality with the object’s `policyName` field. */ + policyName?: string; + /** Checks for equality with the object’s `policyData` field. */ + policyData?: unknown; + /** Checks for equality with the object’s `outFieldId` field. */ + outFieldId?: string; + /** Checks for equality with the object’s `outJunctionTableId` field. */ + outJunctionTableId?: string; + /** Checks for equality with the object’s `outSourceFieldId` field. */ + outSourceFieldId?: string; + /** Checks for equality with the object’s `outTargetFieldId` field. */ + outTargetFieldId?: string; +} +/** A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface 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 `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 `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `nodeData` field. */ + nodeData?: JSONFilter; + /** Filter by the object’s `grantRoles` field. */ + grantRoles?: StringListFilter; + /** Filter by the object’s `grantPrivileges` field. */ + grantPrivileges?: JSONFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `policyPrivileges` field. */ + policyPrivileges?: StringListFilter; + /** Filter by the object’s `policyRole` field. */ + policyRole?: StringFilter; + /** Filter by the object’s `policyPermissive` field. */ + policyPermissive?: BooleanFilter; + /** Filter by the object’s `policyName` field. */ + policyName?: StringFilter; + /** Filter by the object’s `policyData` field. */ + policyData?: 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 condition to be used against `Table` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface TableCondition { /** Checks for equality with the object’s `id` field. */ @@ -2600,6 +2843,49 @@ export interface SchemaGrantFilter { /** Negates the expression. */ not?: SchemaGrantFilter; } +/** + * A condition to be used against `DefaultPrivilege` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface DefaultPrivilegeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; + /** Checks for equality with the object’s `objectType` field. */ + objectType?: string; + /** Checks for equality with the object’s `privilege` field. */ + privilege?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; +} +/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; +} /** * A condition to be used against `ApiModule` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -2983,81 +3269,6 @@ export interface SchemaFilter { /** Negates the expression. */ not?: SchemaFilter; } -/** - * A condition to be used against `Procedure` object types. All fields are tested - * for equality and combined with a logical ‘and.’ - */ -export interface ProcedureCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `databaseId` field. */ - databaseId?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `argnames` field. */ - argnames?: string[]; - /** Checks for equality with the object’s `argtypes` field. */ - argtypes?: string[]; - /** Checks for equality with the object’s `argdefaults` field. */ - argdefaults?: string[]; - /** Checks for equality with the object’s `langName` field. */ - langName?: string; - /** Checks for equality with the object’s `definition` field. */ - definition?: string; - /** Checks for equality with the object’s `smartTags` field. */ - smartTags?: unknown; - /** Checks for equality with the object’s `category` field. */ - category?: ObjectCategory; - /** Checks for equality with the object’s `module` field. */ - module?: string; - /** Checks for equality with the object’s `scope` field. */ - scope?: number; - /** Checks for equality with the object’s `tags` field. */ - tags?: string[]; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `Procedure` object types. All fields are combined with a logical ‘and.’ */ -export interface ProcedureFilter { - /** 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 `argnames` field. */ - argnames?: StringListFilter; - /** Filter by the object’s `argtypes` field. */ - argtypes?: StringListFilter; - /** Filter by the object’s `argdefaults` field. */ - argdefaults?: StringListFilter; - /** Filter by the object’s `langName` field. */ - langName?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - 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. */ - tags?: StringListFilter; - /** 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?: ProcedureFilter[]; - /** Checks for any expressions in this list. */ - or?: ProcedureFilter[]; - /** Negates the expression. */ - not?: ProcedureFilter; -} /** * A condition to be used against `TriggerFunction` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -4369,8 +4580,6 @@ export interface ProfilesModuleCondition { profileDefinitionGrantsTableId?: string; /** Checks for equality with the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: string; - /** Checks for equality with the object’s `bitlen` field. */ - bitlen?: number; /** Checks for equality with the object’s `membershipType` field. */ membershipType?: number; /** Checks for equality with the object’s `entityTableId` field. */ @@ -4410,8 +4619,6 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5103,6 +5310,8 @@ export interface OrgMembershipCondition { actorId?: string; /** Checks for equality with the object’s `entityId` field. */ entityId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipFilter { @@ -5136,6 +5345,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; + /** 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. */ @@ -5307,6 +5518,104 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +/** + * A condition to be used against `OrgChartEdge` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; +} +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} +/** + * A condition to be used against `OrgChartEdgeGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeGrantFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeGrantFilter; +} /** * A condition to be used against `AppLimit` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -5738,31 +6047,8 @@ export interface OrgClaimedInviteFilter { /** Negates the expression. */ not?: OrgClaimedInviteFilter; } -/** - * A condition to be used against `AppPermissionDefault` object types. All fields - * are tested for equality and combined with a logical ‘and.’ - */ -export interface AppPermissionDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `permissions` field. */ - permissions?: string; -} -/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} -/** A condition to be used against `Ref` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface RefCondition { +/** A condition to be used against `Ref` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface RefCondition { /** Checks for equality with the object’s `id` field. */ id?: string; /** Checks for equality with the object’s `name` field. */ @@ -5825,6 +6111,29 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +/** + * A condition to be used against `AppPermissionDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface AppPermissionDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; +} +/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultFilter; +} /** * A condition to be used against `RoleType` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -5875,60 +6184,6 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -/** - * A condition to be used against `AppLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface AppLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -/** - * A condition to be used against `OrgLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface OrgLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} /** * A condition to be used against `CryptoAddress` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -5973,35 +6228,58 @@ export interface CryptoAddressFilter { not?: CryptoAddressFilter; } /** - * A condition to be used against `MembershipType` object types. All fields are + * A condition to be used against `AppLimitDefault` object types. All fields are * tested for equality and combined with a logical ‘and.’ */ -export interface MembershipTypeCondition { +export interface AppLimitDefaultCondition { /** Checks for equality with the object’s `id` field. */ - id?: number; + id?: string; /** Checks for equality with the object’s `name` field. */ name?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `prefix` field. */ - prefix?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; } -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppLimitDefaultFilter; +} +/** + * A condition to be used against `OrgLimitDefault` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgLimitDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; } /** * A condition to be used against `ConnectedAccount` object types. All fields are @@ -6097,6 +6375,88 @@ export interface PhoneNumberFilter { /** Negates the expression. */ not?: PhoneNumberFilter; } +/** + * A condition to be used against `MembershipType` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface MembershipTypeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: number; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; +} +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} +/** + * A condition to be used against `NodeTypeRegistry` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface NodeTypeRegistryCondition { + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `slug` field. */ + slug?: string; + /** Checks for equality with the object’s `category` field. */ + category?: string; + /** Checks for equality with the object’s `displayName` field. */ + displayName?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `parameterSchema` field. */ + parameterSchema?: unknown; + /** Checks for equality with the object’s `tags` field. */ + tags?: string[]; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} /** * A condition to be used against `AppPermission` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -6210,57 +6570,6 @@ export interface AppMembershipDefaultFilter { /** Negates the expression. */ not?: AppMembershipDefaultFilter; } -/** - * A condition to be used against `NodeTypeRegistry` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface NodeTypeRegistryCondition { - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `slug` field. */ - slug?: string; - /** Checks for equality with the object’s `category` field. */ - category?: string; - /** Checks for equality with the object’s `displayName` field. */ - displayName?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `parameterSchema` field. */ - parameterSchema?: unknown; - /** Checks for equality with the object’s `tags` field. */ - tags?: string[]; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ -export interface NodeTypeRegistryFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: NodeTypeRegistryFilter[]; - /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; - /** Negates the expression. */ - not?: NodeTypeRegistryFilter; -} /** A condition to be used against `Object` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface ObjectCondition { /** Checks for equality with the object’s `id` field. */ @@ -6400,46 +6709,6 @@ export interface OrgMembershipDefaultFilter { /** Negates the expression. */ not?: OrgMembershipDefaultFilter; } -/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface EmailCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `ownerId` field. */ - ownerId?: string; - /** Checks for equality with the object’s `email` field. */ - email?: ConstructiveInternalTypeEmail; - /** Checks for equality with the object’s `isVerified` field. */ - isVerified?: boolean; - /** Checks for equality with the object’s `isPrimary` field. */ - isPrimary?: boolean; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; -} /** * A condition to be used against `AppLevelRequirement` object types. All fields * are tested for equality and combined with a logical ‘and.’ @@ -6654,6 +6923,46 @@ export interface AppLevelFilter { /** Negates the expression. */ not?: AppLevelFilter; } +/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface EmailCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; + /** Checks for equality with the object’s `isPrimary` field. */ + isPrimary?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; + /** 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?: EmailFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailFilter[]; + /** Negates the expression. */ + not?: EmailFilter; +} /** * A condition to be used against `SqlMigration` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -6786,6 +7095,52 @@ export interface AstMigrationFilter { /** Negates the expression. */ not?: AstMigrationFilter; } +/** A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface UserCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `username` field. */ + username?: string; + /** Checks for equality with the object’s `displayName` field. */ + displayName?: string; + /** Checks for equality with the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `searchTsv` field. */ + searchTsv?: string; + /** Checks for equality with the object’s `type` field. */ + type?: number; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; + /** Full-text search on the `search_tsv` tsvector column using `websearch_to_tsquery`. */ + fullTextSearchTsv?: string; +} +/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ +export interface UserFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `username` field. */ + username?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `searchTsv` field. */ + searchTsv?: FullTextFilter; + /** Filter by the object’s `type` field. */ + type?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: UserFilter[]; + /** Checks for any expressions in this list. */ + or?: UserFilter[]; + /** Negates the expression. */ + not?: UserFilter; +} /** * A condition to be used against `AppMembership` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -6821,6 +7176,8 @@ export interface AppMembershipCondition { granted?: string; /** Checks for equality with the object’s `actorId` field. */ actorId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { @@ -6854,6 +7211,8 @@ export interface AppMembershipFilter { 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. */ @@ -6861,52 +7220,6 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -/** A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface UserCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `username` field. */ - username?: string; - /** Checks for equality with the object’s `displayName` field. */ - displayName?: string; - /** Checks for equality with the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImage; - /** Checks for equality with the object’s `searchTsv` field. */ - searchTsv?: string; - /** Checks for equality with the object’s `type` field. */ - type?: number; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; - /** Full-text search on the `search_tsv` tsvector column using `websearch_to_tsquery`. */ - fullTextSearchTsv?: string; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; -} /** * A condition to be used against `HierarchyModule` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -7219,23 +7532,15 @@ export interface CreateApiSchemaInput { } /** 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; } -export interface CreateSiteThemeInput { - clientMutationId?: string; - /** The `SiteTheme` to be created by this mutation. */ - siteTheme: SiteThemeInput; -} -/** An input for mutations affecting `SiteTheme` */ -export interface SiteThemeInput { - id?: string; - databaseId: string; - siteId: string; - theme: unknown; -} export interface CreateOrgMemberInput { clientMutationId?: string; /** The `OrgMember` to be created by this mutation. */ @@ -7244,19 +7549,28 @@ export interface CreateOrgMemberInput { /** 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; } -export interface CreateAppPermissionDefaultInput { +export interface CreateSiteThemeInput { clientMutationId?: string; - /** The `AppPermissionDefault` to be created by this mutation. */ - appPermissionDefault: AppPermissionDefaultInput; + /** The `SiteTheme` to be created by this mutation. */ + siteTheme: SiteThemeInput; } -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { +/** An input for mutations affecting `SiteTheme` */ +export interface SiteThemeInput { + /** Unique identifier for this theme record */ id?: string; - permissions?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this theme belongs to */ + siteId: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme: unknown; } export interface CreateRefInput { clientMutationId?: string; @@ -7290,32 +7604,6 @@ export interface StoreInput { hash?: string; createdAt?: string; } -export interface CreateApiModuleInput { - clientMutationId?: string; - /** The `ApiModule` to be created by this mutation. */ - apiModule: ApiModuleInput; -} -/** An input for mutations affecting `ApiModule` */ -export interface ApiModuleInput { - id?: string; - databaseId: string; - apiId: string; - name: string; - data: unknown; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - /** The `SiteModule` to be created by this mutation. */ - siteModule: SiteModuleInput; -} -/** An input for mutations affecting `SiteModule` */ -export interface SiteModuleInput { - id?: string; - databaseId: string; - siteId: string; - name: string; - data: unknown; -} export interface CreateEncryptedSecretsModuleInput { clientMutationId?: string; /** The `EncryptedSecretsModule` to be created by this mutation. */ @@ -7368,26 +7656,52 @@ export interface UuidModuleInput { uuidFunction?: string; uuidSeed: string; } -export interface CreateRoleTypeInput { +export interface CreateAppPermissionDefaultInput { clientMutationId?: string; - /** The `RoleType` to be created by this mutation. */ - roleType: RoleTypeInput; + /** The `AppPermissionDefault` to be created by this mutation. */ + appPermissionDefault: AppPermissionDefaultInput; } -/** An input for mutations affecting `RoleType` */ -export interface RoleTypeInput { - id: number; +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + /** The `ApiModule` to be created by this mutation. */ + apiModule: ApiModuleInput; +} +/** An input for mutations affecting `ApiModule` */ +export interface ApiModuleInput { + /** Unique identifier for this API module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API this module configuration belongs to */ + apiId: string; + /** Module name (e.g. auth, uploads, webhooks) */ name: string; + /** JSON configuration data for this module */ + data: unknown; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateSiteModuleInput { clientMutationId?: string; - /** The `OrgPermissionDefault` to be created by this mutation. */ - orgPermissionDefault: OrgPermissionDefaultInput; + /** The `SiteModule` to be created by this mutation. */ + siteModule: SiteModuleInput; } -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { +/** An input for mutations affecting `SiteModule` */ +export interface SiteModuleInput { + /** Unique identifier for this site module record */ id?: string; - permissions?: string; - entityId: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this module configuration belongs to */ + siteId: string; + /** Module name (e.g. user_auth_module, analytics) */ + name: string; + /** JSON configuration data for this module */ + data: unknown; } export interface CreateSchemaGrantInput { clientMutationId?: string; @@ -7417,20 +7731,6 @@ export interface TriggerFunctionInput { createdAt?: string; updatedAt?: string; } -export interface CreateViewGrantInput { - clientMutationId?: string; - /** The `ViewGrant` to be created by this mutation. */ - viewGrant: ViewGrantInput; -} -/** An input for mutations affecting `ViewGrant` */ -export interface ViewGrantInput { - id?: string; - databaseId?: string; - viewId: string; - roleName: string; - privilege: string; - withGrantOption?: boolean; -} export interface CreateViewRuleInput { clientMutationId?: string; /** The `ViewRule` to be created by this mutation. */ @@ -7455,7 +7755,9 @@ export interface CreateAppAdminGrantInput { /** 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 */ actorId: string; grantorId?: string; createdAt?: string; @@ -7469,33 +7771,66 @@ export interface CreateAppOwnerGrantInput { /** 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 */ actorId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; } -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { - id?: string; +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; name: string; - max?: number; } -export interface CreateOrgLimitDefaultInput { +export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; + /** The `OrgPermissionDefault` to be created by this mutation. */ + orgPermissionDefault: OrgPermissionDefaultInput; } -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { id?: string; - name: string; - max?: number; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + /** The `DefaultPrivilege` to be created by this mutation. */ + defaultPrivilege: DefaultPrivilegeInput; +} +/** An input for mutations affecting `DefaultPrivilege` */ +export interface DefaultPrivilegeInput { + id?: string; + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + /** The `ViewGrant` to be created by this mutation. */ + viewGrant: ViewGrantInput; +} +/** An input for mutations affecting `ViewGrant` */ +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; } export interface CreateApiInput { clientMutationId?: string; @@ -7504,12 +7839,19 @@ export interface CreateApiInput { } /** 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; } export interface CreateConnectedAccountsModuleInput { @@ -7557,21 +7899,6 @@ export interface PhoneNumbersModuleInput { ownerTableId?: string; tableName: string; } -export interface CreateTableModuleInput { - clientMutationId?: string; - /** The `TableModule` to be created by this mutation. */ - tableModule: TableModuleInput; -} -/** An input for mutations affecting `TableModule` */ -export interface TableModuleInput { - id?: string; - databaseId: string; - privateSchemaId?: string; - tableId: string; - nodeType: string; - data?: unknown; - fields?: string[]; -} export interface CreateUsersModuleInput { clientMutationId?: string; /** The `UsersModule` to be created by this mutation. */ @@ -7595,8 +7922,11 @@ export interface CreateOrgAdminGrantInput { /** 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 */ actorId: string; + /** The entity (org or group) this admin grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -7610,8 +7940,11 @@ export interface CreateOrgOwnerGrantInput { /** 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 */ actorId: string; + /** The entity (org or group) this ownership grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -7626,23 +7959,40 @@ export interface CreateCryptoAddressInput { 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; createdAt?: string; updatedAt?: string; } -export interface CreateMembershipTypeInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; } -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - id: number; +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ name: string; - description: string; - prefix: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; +} +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: number; } export interface CreateDatabaseInput { clientMutationId?: string; @@ -7660,38 +8010,6 @@ export interface DatabaseInput { createdAt?: string; updatedAt?: string; } -export interface CreateLimitFunctionInput { - clientMutationId?: string; - /** The `LimitFunction` to be created by this mutation. */ - limitFunction: LimitFunctionInput; -} -/** An input for mutations affecting `LimitFunction` */ -export interface LimitFunctionInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: unknown; - security?: number; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - /** The `TableGrant` to be created by this mutation. */ - tableGrant: TableGrantInput; -} -/** An input for mutations affecting `TableGrant` */ -export interface TableGrantInput { - id?: string; - databaseId?: string; - tableId: string; - privilege: string; - roleName: string; - fieldIds?: string[]; - createdAt?: string; - updatedAt?: string; -} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; /** The `CryptoAddressesModule` to be created by this mutation. */ @@ -7723,6 +8041,7 @@ export interface ConnectedAccountInput { identifier: string; /** Additional profile details extracted from this login method */ details: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; @@ -7736,67 +8055,218 @@ export interface CreatePhoneNumberInput { 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; createdAt?: string; updatedAt?: string; } -export interface CreateAppPermissionInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; } -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: 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; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; } -export interface CreateOrgPermissionInput { +export interface CreateFieldModuleInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + /** The `FieldModule` to be created by this mutation. */ + fieldModule: FieldModuleInput; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { +/** An input for mutations affecting `FieldModule` */ +export interface FieldModuleInput { id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; + databaseId: string; + privateSchemaId?: string; + tableId?: string; + fieldId?: string; + nodeType: string; + data?: unknown; + triggers?: string[]; + functions?: string[]; } -export interface CreateAppLimitInput { +export interface CreateTableModuleInput { clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; + /** The `TableModule` to be created by this mutation. */ + tableModule: TableModuleInput; } -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { +/** An input for mutations affecting `TableModule` */ +export interface TableModuleInput { id?: string; - name?: string; - actorId: string; - num?: number; - max?: number; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType: string; + useRls?: boolean; + data?: unknown; + fields?: string[]; } -export interface CreateAppAchievementInput { +export interface CreateTableTemplateModuleInput { clientMutationId?: string; - /** The `AppAchievement` to be created by this mutation. */ - appAchievement: AppAchievementInput; + /** The `TableTemplateModule` to be created by this mutation. */ + tableTemplateModule: TableTemplateModuleInput; } -/** An input for mutations affecting `AppAchievement` */ -export interface AppAchievementInput { +/** An input for mutations affecting `TableTemplateModule` */ +export interface TableTemplateModuleInput { id?: string; - actorId?: string; - name: string; - count?: number; - createdAt?: string; - updatedAt?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + nodeType: string; + data?: unknown; } -export interface CreateAppStepInput { +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + /** The `OrgChartEdgeGrant` to be created by this mutation. */ + orgChartEdgeGrant: OrgChartEdgeGrantInput; +} +/** 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 */ + 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; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + /** The `NodeTypeRegistry` to be created by this mutation. */ + nodeTypeRegistry: NodeTypeRegistryInput; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; + /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ + slug: string; + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ + category: string; + /** Human-readable display name for UI */ + displayName?: string; + /** Description of what this node type does */ + description?: string; + /** JSON Schema defining valid parameters for this node type */ + parameterSchema?: unknown; + /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + /** The `TableGrant` to be created by this mutation. */ + tableGrant: TableGrantInput; +} +/** 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; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; +} +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; +} +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ + max?: number; +} +export interface CreateAppAchievementInput { + clientMutationId?: string; + /** The `AppAchievement` to be created by this mutation. */ + appAchievement: AppAchievementInput; +} +/** An input for mutations affecting `AppAchievement` */ +export interface AppAchievementInput { + id?: string; + actorId?: string; + /** Name identifier of the level requirement being tracked */ + name: string; + /** Cumulative count of completed steps toward this requirement */ + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppStepInput { clientMutationId?: string; /** The `AppStep` to be created by this mutation. */ appStep: AppStepInput; @@ -7805,7 +8275,9 @@ export interface CreateAppStepInput { export interface AppStepInput { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -7818,8 +8290,11 @@ export interface CreateClaimedInviteInput { /** An input for mutations affecting `ClaimedInvite` */ export interface ClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -7836,7 +8311,9 @@ export interface AppMembershipDefaultInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean; } export interface CreateSiteMetadatumInput { @@ -7846,71 +8323,19 @@ export interface CreateSiteMetadatumInput { } /** 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; } -export interface CreateFieldModuleInput { - clientMutationId?: string; - /** The `FieldModule` to be created by this mutation. */ - fieldModule: FieldModuleInput; -} -/** An input for mutations affecting `FieldModule` */ -export interface FieldModuleInput { - id?: string; - databaseId: string; - privateSchemaId?: string; - tableId?: string; - fieldId?: string; - nodeType: string; - data?: unknown; - triggers?: string[]; - functions?: string[]; -} -export interface CreateTableTemplateModuleInput { - clientMutationId?: string; - /** The `TableTemplateModule` to be created by this mutation. */ - tableTemplateModule: TableTemplateModuleInput; -} -/** An input for mutations affecting `TableTemplateModule` */ -export interface TableTemplateModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - nodeType: string; - data?: unknown; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - /** The `NodeTypeRegistry` to be created by this mutation. */ - nodeTypeRegistry: NodeTypeRegistryInput; -} -/** An input for mutations affecting `NodeTypeRegistry` */ -export interface NodeTypeRegistryInput { - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name: string; - /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ - slug: string; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ - category: string; - /** Human-readable display name for UI */ - displayName?: string; - /** Description of what this node type does */ - description?: string; - /** JSON Schema defining valid parameters for this node type */ - parameterSchema?: unknown; - /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} export interface CreateObjectInput { clientMutationId?: string; /** The `Object` to be created by this mutation. */ @@ -7975,9 +8400,13 @@ export interface CreateOrgLimitInput { /** An input for mutations affecting `OrgLimit` */ export interface OrgLimitInput { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId: string; } @@ -7989,8 +8418,11 @@ export interface CreateAppGrantInput { /** 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 */ actorId: string; grantorId?: string; createdAt?: string; @@ -8004,13 +8436,37 @@ export interface CreateOrgClaimedInviteInput { /** An input for mutations affecting `OrgClaimedInvite` */ export interface OrgClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; entityId: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** 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; +} export interface CreateDomainInput { clientMutationId?: string; /** The `Domain` to be created by this mutation. */ @@ -8018,13 +8474,38 @@ export interface CreateDomainInput { } /** 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; } +export interface CreateSessionsModuleInput { + clientMutationId?: string; + /** The `SessionsModule` to be created by this mutation. */ + sessionsModule: SessionsModuleInput; +} +/** 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; +} export interface CreateOrgGrantInput { clientMutationId?: string; /** The `OrgGrant` to be created by this mutation. */ @@ -8033,9 +8514,13 @@ export interface CreateOrgGrantInput { /** 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 */ actorId: string; + /** The entity (org or group) this permission grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -8053,44 +8538,34 @@ export interface OrgMembershipDefaultInput { 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; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } -export interface CreateSessionsModuleInput { +export interface CreateRlsModuleInput { clientMutationId?: string; - /** The `SessionsModule` to be created by this mutation. */ - sessionsModule: SessionsModuleInput; + /** The `RlsModule` to be created by this mutation. */ + rlsModule: RlsModuleInput; } -/** An input for mutations affecting `SessionsModule` */ -export interface SessionsModuleInput { +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { id?: string; databaseId: string; + apiId?: string; schemaId?: string; - sessionsTableId?: string; + privateSchemaId?: string; sessionCredentialsTableId?: string; - authSettingsTableId?: string; + sessionsTableId?: string; usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; } export interface CreateAppLevelRequirementInput { clientMutationId?: string; @@ -8100,10 +8575,15 @@ export interface CreateAppLevelRequirementInput { /** An input for mutations affecting `AppLevelRequirement` */ export interface AppLevelRequirementInput { id?: string; + /** Name identifier of the requirement (matches step names) */ name: string; + /** Name of the level this requirement belongs to */ level: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; @@ -8116,12 +8596,19 @@ export interface CreateAuditLogInput { /** An input for mutations affecting `AuditLog` */ export interface AuditLogInput { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success: boolean; + /** Timestamp when the audit event was recorded */ createdAt?: string; } export interface CreateAppLevelInput { @@ -8132,32 +8619,34 @@ export interface CreateAppLevelInput { /** An input for mutations affecting `AppLevel` */ export interface AppLevelInput { id?: string; + /** Unique name of the level */ name: string; + /** Human-readable description of what this level represents */ description?: string; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ ownerId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateRlsModuleInput { +export interface CreateEmailInput { clientMutationId?: string; - /** The `RlsModule` to be created by this mutation. */ - rlsModule: RlsModuleInput; + /** The `Email` to be created by this mutation. */ + email: EmailInput; } -/** An input for mutations affecting `RlsModule` */ -export interface RlsModuleInput { +/** An input for mutations affecting `Email` */ +export interface EmailInput { id?: string; - databaseId: string; - apiId?: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: 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; + createdAt?: string; + updatedAt?: string; } export interface CreateDenormalizedTableFieldInput { clientMutationId?: string; @@ -8299,127 +8788,10 @@ export interface ViewInput { scope?: number; tags?: string[]; } -export interface CreateAstMigrationInput { +export interface CreatePermissionsModuleInput { clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; -} -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; -} -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; -} -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: 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 { - id?: string; - databaseId: string; - siteId: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - 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 { - id?: string; - databaseId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; -} -export interface CreateUserInput { - clientMutationId?: string; - /** The `User` to be created by this mutation. */ - user: UserInput; -} -/** An input for mutations affecting `User` */ -export interface UserInput { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - /** The `PermissionsModule` to be created by this mutation. */ - permissionsModule: PermissionsModuleInput; + /** The `PermissionsModule` to be created by this mutation. */ + permissionsModule: PermissionsModuleInput; } /** An input for mutations affecting `PermissionsModule` */ export interface PermissionsModuleInput { @@ -8441,26 +8813,68 @@ export interface PermissionsModuleInput { getByMask?: string; getMaskByName?: string; } -export interface CreatePrimaryKeyConstraintInput { +export interface CreateSecureTableProvisionInput { clientMutationId?: string; - /** The `PrimaryKeyConstraint` to be created by this mutation. */ - primaryKeyConstraint: PrimaryKeyConstraintInput; + /** The `SecureTableProvision` to be created by this mutation. */ + secureTableProvision: SecureTableProvisionInput; } -/** An input for mutations affecting `PrimaryKeyConstraint` */ -export interface PrimaryKeyConstraintInput { +/** 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; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: 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 policy_type is provided. Defaults to true. */ + useRls?: boolean; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: unknown; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string[]; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: unknown; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string[]; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} +export interface CreateAstMigrationInput { + clientMutationId?: string; + /** The `AstMigration` to be created by this mutation. */ + astMigration: AstMigrationInput; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; databaseId?: string; - tableId: string; name?: string; - type?: string; - fieldIds: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; + requires?: string[]; + payload?: unknown; + deploys?: string; + deploy?: unknown; + revert?: unknown; + verify?: unknown; createdAt?: string; - updatedAt?: string; + action?: string; + actionId?: string; + actorId?: string; } export interface CreateTriggerInput { clientMutationId?: string; @@ -8483,20 +8897,19 @@ export interface TriggerInput { createdAt?: string; updatedAt?: string; } -export interface CreateCheckConstraintInput { +export interface CreatePrimaryKeyConstraintInput { clientMutationId?: string; - /** The `CheckConstraint` to be created by this mutation. */ - checkConstraint: CheckConstraintInput; + /** The `PrimaryKeyConstraint` to be created by this mutation. */ + primaryKeyConstraint: PrimaryKeyConstraintInput; } -/** An input for mutations affecting `CheckConstraint` */ -export interface CheckConstraintInput { +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { id?: string; databaseId?: string; tableId: string; name?: string; type?: string; fieldIds: string[]; - expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -8527,21 +8940,20 @@ export interface UniqueConstraintInput { createdAt?: string; updatedAt?: string; } -export interface CreateProcedureInput { +export interface CreateCheckConstraintInput { clientMutationId?: string; - /** The `Procedure` to be created by this mutation. */ - procedure: ProcedureInput; + /** The `CheckConstraint` to be created by this mutation. */ + checkConstraint: CheckConstraintInput; } -/** An input for mutations affecting `Procedure` */ -export interface ProcedureInput { +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { id?: string; databaseId?: string; - name: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -8561,7 +8973,7 @@ export interface PolicyInput { databaseId?: string; tableId: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -8575,48 +8987,71 @@ export interface PolicyInput { createdAt?: string; updatedAt?: string; } -export interface CreateInviteInput { +export interface CreateAppInput { clientMutationId?: string; - /** The `Invite` to be created by this mutation. */ - invite: InviteInput; + /** The `App` to be created by this mutation. */ + app: AppInput; } -/** An input for mutations affecting `Invite` */ -export interface InviteInput { +/** An input for mutations affecting `App` */ +export interface AppInput { + /** Unique identifier for this app */ id?: string; - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: unknown; - expiresAt?: string; - createdAt?: string; - updatedAt?: 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 CreateIndexInput { +export interface CreateSiteInput { clientMutationId?: string; - /** The `Index` to be created by this mutation. */ - index: IndexInput; + /** The `Site` to be created by this mutation. */ + site: SiteInput; } -/** An input for mutations affecting `Index` */ -export interface IndexInput { +/** 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; - tableId: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: unknown; - whereClause?: unknown; - isUnique?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: 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 CreateUserInput { + clientMutationId?: string; + /** The `User` to be created by this mutation. */ + user: UserInput; +} +/** An input for mutations affecting `User` */ +export interface UserInput { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; createdAt?: string; updatedAt?: string; } @@ -8646,28 +9081,6 @@ export interface LimitsModuleInput { entityTableId?: string; actorTableId?: string; } -export interface CreateSchemaInput { - clientMutationId?: string; - /** The `Schema` to be created by this mutation. */ - schema: SchemaInput; -} -/** An input for mutations affecting `Schema` */ -export interface SchemaInput { - id?: string; - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface CreateProfilesModuleInput { clientMutationId?: string; /** The `ProfilesModule` to be created by this mutation. */ @@ -8687,7 +9100,6 @@ export interface ProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -8695,27 +9107,149 @@ export interface ProfilesModuleInput { membershipsTableId?: string; prefix?: string; } -export interface CreateOrgInviteInput { +export interface CreateIndexInput { clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; + /** The `Index` to be created by this mutation. */ + index: IndexInput; } -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { +/** An input for mutations affecting `Index` */ +export interface IndexInput { + id?: string; + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: unknown; + whereClause?: unknown; + isUnique?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; +} +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { 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; +} +export interface CreateOrgMembershipInput { + clientMutationId?: string; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { + id?: string; + 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 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; + profileId?: string; +} +export interface CreateInviteInput { + clientMutationId?: string; + /** The `Invite` to be created by this mutation. */ + invite: InviteInput; +} +/** An input for mutations affecting `Invite` */ +export interface InviteInput { + id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; - receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + /** The `Schema` to be created by this mutation. */ + schema: SchemaInput; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; } export interface CreateHierarchyModuleInput { clientMutationId?: string; @@ -8745,6 +9279,38 @@ export interface HierarchyModuleInput { isManagerOfFunction?: string; createdAt?: string; } +export interface CreateOrgInviteInput { + clientMutationId?: string; + /** The `OrgInvite` to be created by this mutation. */ + orgInvite: OrgInviteInput; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} export interface CreateForeignKeyConstraintInput { clientMutationId?: string; /** The `ForeignKeyConstraint` to be created by this mutation. */ @@ -8898,6 +9464,137 @@ export interface FieldInput { createdAt?: string; updatedAt?: string; } +export interface CreateRelationProvisionInput { + clientMutationId?: string; + /** The `RelationProvision` to be created by this mutation. */ + relationProvision: RelationProvisionInput; +} +/** 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 matching the node_type_registry: + * - 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; + /** + * 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; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: unknown; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string[]; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: unknown; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string[]; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: unknown; + /** 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; +} export interface CreateMembershipsModuleInput { clientMutationId?: string; /** The `MembershipsModule` to be created by this mutation. */ @@ -8963,30 +9660,22 @@ export interface ViewTablePatch { } export interface UpdateApiSchemaInput { clientMutationId?: string; + /** Unique identifier for this API-schema mapping */ id: string; /** An object where the defined keys will be set on the `ApiSchema` being updated. */ apiSchemaPatch: ApiSchemaPatch; } /** Represents an update to a `ApiSchema`. Fields that are set will be updated. */ export interface ApiSchemaPatch { + /** 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; } -export interface UpdateSiteThemeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SiteTheme` being updated. */ - siteThemePatch: SiteThemePatch; -} -/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ -export interface SiteThemePatch { - id?: string; - databaseId?: string; - siteId?: string; - theme?: unknown; -} export interface UpdateOrgMemberInput { clientMutationId?: string; id: string; @@ -8996,20 +9685,30 @@ export interface UpdateOrgMemberInput { /** Represents an update to a `OrgMember`. Fields that are set will be updated. */ export interface OrgMemberPatch { 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; } -export interface UpdateAppPermissionDefaultInput { +export interface UpdateSiteThemeInput { clientMutationId?: string; + /** Unique identifier for this theme record */ id: string; - /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ - appPermissionDefaultPatch: AppPermissionDefaultPatch; + /** An object where the defined keys will be set on the `SiteTheme` being updated. */ + siteThemePatch: SiteThemePatch; } -/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ -export interface AppPermissionDefaultPatch { +/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ +export interface SiteThemePatch { + /** Unique identifier for this theme record */ id?: string; - permissions?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this theme belongs to */ + siteId?: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: unknown; } export interface UpdateRefInput { clientMutationId?: string; @@ -9048,34 +9747,6 @@ export interface StorePatch { hash?: string; createdAt?: string; } -export interface UpdateApiModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ApiModule` being updated. */ - apiModulePatch: ApiModulePatch; -} -/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ -export interface ApiModulePatch { - id?: string; - databaseId?: string; - apiId?: string; - name?: string; - data?: unknown; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SiteModule` being updated. */ - siteModulePatch: SiteModulePatch; -} -/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ -export interface SiteModulePatch { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - data?: unknown; -} export interface UpdateEncryptedSecretsModuleInput { clientMutationId?: string; id: string; @@ -9132,28 +9803,57 @@ export interface UuidModulePatch { uuidFunction?: string; uuidSeed?: string; } -export interface UpdateRoleTypeInput { +export interface UpdateAppPermissionDefaultInput { clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `RoleType` being updated. */ - roleTypePatch: RoleTypePatch; + id: string; + /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ + appPermissionDefaultPatch: AppPermissionDefaultPatch; } -/** Represents an update to a `RoleType`. Fields that are set will be updated. */ -export interface RoleTypePatch { - id?: number; +/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ +export interface AppPermissionDefaultPatch { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + /** Unique identifier for this API module record */ + id: string; + /** An object where the defined keys will be set on the `ApiModule` being updated. */ + apiModulePatch: ApiModulePatch; +} +/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ +export interface ApiModulePatch { + /** Unique identifier for this API module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** API this module configuration belongs to */ + apiId?: string; + /** Module name (e.g. auth, uploads, webhooks) */ name?: string; + /** JSON configuration data for this module */ + data?: unknown; } -export interface UpdateOrgPermissionDefaultInput { +export interface UpdateSiteModuleInput { clientMutationId?: string; + /** Unique identifier for this site module record */ id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + /** An object where the defined keys will be set on the `SiteModule` being updated. */ + siteModulePatch: SiteModulePatch; } -/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPatch { +/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ +export interface SiteModulePatch { + /** Unique identifier for this site module record */ id?: string; - permissions?: string; - entityId?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this module configuration belongs to */ + siteId?: string; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string; + /** JSON configuration data for this module */ + data?: unknown; } export interface UpdateSchemaGrantInput { clientMutationId?: string; @@ -9185,21 +9885,6 @@ export interface TriggerFunctionPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ViewGrant` being updated. */ - viewGrantPatch: ViewGrantPatch; -} -/** Represents an update to a `ViewGrant`. Fields that are set will be updated. */ -export interface ViewGrantPatch { - id?: string; - databaseId?: string; - viewId?: string; - roleName?: string; - privilege?: string; - withGrantOption?: boolean; -} export interface UpdateViewRuleInput { clientMutationId?: string; id: string; @@ -9226,7 +9911,9 @@ export interface UpdateAppAdminGrantInput { /** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ export interface AppAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; grantorId?: string; createdAt?: string; @@ -9241,50 +9928,93 @@ export interface UpdateAppOwnerGrantInput { /** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ export interface AppOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + /** An object where the defined keys will be set on the `RoleType` being updated. */ + roleTypePatch: RoleTypePatch; +} +/** Represents an update to a `RoleType`. Fields that are set will be updated. */ +export interface RoleTypePatch { + id?: number; + name?: string; +} +export interface UpdateOrgPermissionDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; + /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; } -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { +/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPatch { id?: string; - name?: string; - max?: number; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId?: string; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; + /** An object where the defined keys will be set on the `DefaultPrivilege` being updated. */ + defaultPrivilegePatch: DefaultPrivilegePatch; } -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { +/** Represents an update to a `DefaultPrivilege`. Fields that are set will be updated. */ +export interface DefaultPrivilegePatch { id?: string; - name?: string; - max?: number; + databaseId?: string; + schemaId?: string; + objectType?: string; + privilege?: string; + granteeName?: string; + isGrant?: boolean; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewGrant` being updated. */ + viewGrantPatch: ViewGrantPatch; +} +/** Represents an update to a `ViewGrant`. Fields that are set will be updated. */ +export interface ViewGrantPatch { + id?: string; + databaseId?: string; + viewId?: string; + granteeName?: string; + privilege?: string; + withGrantOption?: boolean; + isGrant?: boolean; } export interface UpdateApiInput { clientMutationId?: string; + /** Unique identifier for this API */ id: string; /** An object where the defined keys will be set on the `Api` being updated. */ apiPatch: ApiPatch; } /** Represents an update to a `Api`. Fields that are set will be updated. */ export interface ApiPatch { + /** 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; } export interface UpdateConnectedAccountsModuleInput { @@ -9335,22 +10065,6 @@ export interface PhoneNumbersModulePatch { ownerTableId?: string; tableName?: string; } -export interface UpdateTableModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableModule` being updated. */ - tableModulePatch: TableModulePatch; -} -/** Represents an update to a `TableModule`. Fields that are set will be updated. */ -export interface TableModulePatch { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - nodeType?: string; - data?: unknown; - fields?: string[]; -} export interface UpdateUsersModuleInput { clientMutationId?: string; id: string; @@ -9376,8 +10090,11 @@ export interface UpdateOrgAdminGrantInput { /** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ export interface OrgAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; + /** The entity (org or group) this admin grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -9392,8 +10109,11 @@ export interface UpdateOrgOwnerGrantInput { /** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ export interface OrgOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; + /** The entity (org or group) this ownership grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -9409,24 +10129,42 @@ export interface UpdateCryptoAddressInput { export interface CryptoAddressPatch { 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; createdAt?: string; updatedAt?: string; } -export interface UpdateMembershipTypeInput { +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; +} +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; + id: string; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - id?: number; +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ name?: string; - description?: string; - prefix?: string; + /** Default maximum usage allowed for this limit */ + max?: number; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -9445,40 +10183,6 @@ export interface DatabasePatch { createdAt?: string; updatedAt?: string; } -export interface UpdateLimitFunctionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `LimitFunction` being updated. */ - limitFunctionPatch: LimitFunctionPatch; -} -/** Represents an update to a `LimitFunction`. Fields that are set will be updated. */ -export interface LimitFunctionPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - label?: string; - description?: string; - data?: unknown; - security?: number; -} -export interface UpdateTableGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableGrant` being updated. */ - tableGrantPatch: TableGrantPatch; -} -/** Represents an update to a `TableGrant`. Fields that are set will be updated. */ -export interface TableGrantPatch { - id?: string; - databaseId?: string; - tableId?: string; - privilege?: string; - roleName?: string; - fieldIds?: string[]; - createdAt?: string; - updatedAt?: string; -} export interface UpdateCryptoAddressesModuleInput { clientMutationId?: string; id: string; @@ -9512,6 +10216,7 @@ export interface ConnectedAccountPatch { identifier?: string; /** Additional profile details extracted from this login method */ details?: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; @@ -9526,13 +10231,159 @@ export interface UpdatePhoneNumberInput { export interface PhoneNumberPatch { 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; createdAt?: string; updatedAt?: string; } +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; +} +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; +} +export interface UpdateFieldModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `FieldModule` being updated. */ + fieldModulePatch: FieldModulePatch; +} +/** Represents an update to a `FieldModule`. Fields that are set will be updated. */ +export interface FieldModulePatch { + id?: string; + databaseId?: string; + privateSchemaId?: string; + tableId?: string; + fieldId?: string; + nodeType?: string; + data?: unknown; + triggers?: string[]; + functions?: string[]; +} +export interface UpdateTableModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableModule` being updated. */ + tableModulePatch: TableModulePatch; +} +/** Represents an update to a `TableModule`. Fields that are set will be updated. */ +export interface TableModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType?: string; + useRls?: boolean; + data?: unknown; + fields?: string[]; +} +export interface UpdateTableTemplateModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableTemplateModule` being updated. */ + tableTemplateModulePatch: TableTemplateModulePatch; +} +/** Represents an update to a `TableTemplateModule`. Fields that are set will be updated. */ +export interface TableTemplateModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + nodeType?: string; + data?: unknown; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ +export interface OrgChartEdgeGrantPatch { + 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 */ + 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; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; + /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ +export interface NodeTypeRegistryPatch { + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name?: string; + /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ + slug?: string; + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ + category?: string; + /** Human-readable display name for UI */ + displayName?: string; + /** Description of what this node type does */ + description?: string; + /** JSON Schema defining valid parameters for this node type */ + parameterSchema?: unknown; + /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableGrant` being updated. */ + tableGrantPatch: TableGrantPatch; +} +/** Represents an update to a `TableGrant`. Fields that are set will be updated. */ +export interface TableGrantPatch { + id?: string; + databaseId?: string; + tableId?: string; + privilege?: string; + granteeName?: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; @@ -9542,9 +10393,13 @@ export interface UpdateAppPermissionInput { /** Represents an update to a `AppPermission`. Fields that are set will be updated. */ export interface AppPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateOrgPermissionInput { @@ -9556,9 +10411,13 @@ export interface UpdateOrgPermissionInput { /** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ export interface OrgPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateAppLimitInput { @@ -9570,9 +10429,13 @@ export interface UpdateAppLimitInput { /** Represents an update to a `AppLimit`. Fields that are set will be updated. */ export interface AppLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; } export interface UpdateAppAchievementInput { @@ -9585,7 +10448,9 @@ export interface UpdateAppAchievementInput { export interface AppAchievementPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement being tracked */ name?: string; + /** Cumulative count of completed steps toward this requirement */ count?: number; createdAt?: string; updatedAt?: string; @@ -9600,7 +10465,9 @@ export interface UpdateAppStepInput { export interface AppStepPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name?: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -9614,8 +10481,11 @@ export interface UpdateClaimedInviteInput { /** Represents an update to a `ClaimedInvite`. Fields that are set will be updated. */ export interface ClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -9623,95 +10493,44 @@ export interface ClaimedInvitePatch { export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ - siteMetadatumPatch: SiteMetadatumPatch; -} -/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ -export interface SiteMetadatumPatch { - id?: string; - databaseId?: string; - siteId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; -} -export interface UpdateFieldModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `FieldModule` being updated. */ - fieldModulePatch: FieldModulePatch; -} -/** Represents an update to a `FieldModule`. Fields that are set will be updated. */ -export interface FieldModulePatch { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - fieldId?: string; - nodeType?: string; - data?: unknown; - triggers?: string[]; - functions?: string[]; -} -export interface UpdateTableTemplateModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableTemplateModule` being updated. */ - tableTemplateModulePatch: TableTemplateModulePatch; -} -/** Represents an update to a `TableTemplateModule`. Fields that are set will be updated. */ -export interface TableTemplateModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - nodeType?: string; - data?: unknown; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name: string; - /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ -export interface NodeTypeRegistryPatch { - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name?: string; - /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ - slug?: string; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ - category?: string; - /** Human-readable display name for UI */ - displayName?: string; - /** Description of what this node type does */ - description?: string; - /** JSON Schema defining valid parameters for this node type */ - parameterSchema?: unknown; - /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ - tags?: string[]; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { + id?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; + /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ + siteMetadatumPatch: SiteMetadatumPatch; +} +/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ +export interface SiteMetadatumPatch { + /** Unique identifier for this metadata record */ + 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; + /** Upload for Open Graph image for social media previews */ + ogImageUpload?: File; } export interface UpdateObjectInput { clientMutationId?: string; @@ -9785,9 +10604,13 @@ export interface UpdateOrgLimitInput { /** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ export interface OrgLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId?: string; } @@ -9800,8 +10623,11 @@ export interface UpdateAppGrantInput { /** Represents an update to a `AppGrant`. Fields that are set will be updated. */ export interface AppGrantPatch { 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 */ actorId?: string; grantorId?: string; createdAt?: string; @@ -9816,28 +10642,80 @@ export interface UpdateOrgClaimedInviteInput { /** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ export interface OrgClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; entityId?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + 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; +} export interface UpdateDomainInput { clientMutationId?: string; + /** Unique identifier for this domain record */ id: string; /** An object where the defined keys will be set on the `Domain` being updated. */ domainPatch: DomainPatch; } /** Represents an update to a `Domain`. Fields that are set will be updated. */ export interface DomainPatch { + /** 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; } +export interface UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SessionsModule` being updated. */ + sessionsModulePatch: SessionsModulePatch; +} +/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ +export interface SessionsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; @@ -9847,9 +10725,13 @@ export interface UpdateOrgGrantInput { /** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ export interface OrgGrantPatch { 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 */ actorId?: string; + /** The entity (org or group) this permission grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -9868,46 +10750,35 @@ export interface OrgMembershipDefaultPatch { 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; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } -export interface UpdateSessionsModuleInput { +export interface UpdateRlsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `SessionsModule` being updated. */ - sessionsModulePatch: SessionsModulePatch; + /** An object where the defined keys will be set on the `RlsModule` being updated. */ + rlsModulePatch: RlsModulePatch; } -/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ -export interface SessionsModulePatch { +/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ +export interface RlsModulePatch { id?: string; databaseId?: string; + apiId?: string; schemaId?: string; - sessionsTableId?: string; + privateSchemaId?: string; sessionCredentialsTableId?: string; - authSettingsTableId?: string; + sessionsTableId?: string; usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; } export interface UpdateAppLevelRequirementInput { clientMutationId?: string; @@ -9918,10 +10789,15 @@ export interface UpdateAppLevelRequirementInput { /** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ export interface AppLevelRequirementPatch { id?: string; + /** Name identifier of the requirement (matches step names) */ name?: string; + /** Name of the level this requirement belongs to */ level?: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; @@ -9935,12 +10811,19 @@ export interface UpdateAuditLogInput { /** Represents an update to a `AuditLog`. Fields that are set will be updated. */ export interface AuditLogPatch { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success?: boolean; + /** Timestamp when the audit event was recorded */ createdAt?: string; } export interface UpdateAppLevelInput { @@ -9952,33 +10835,37 @@ export interface UpdateAppLevelInput { /** Represents an update to a `AppLevel`. Fields that are set will be updated. */ export interface AppLevelPatch { id?: string; + /** Unique name of the level */ name?: string; + /** Human-readable description of what this level represents */ description?: string; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ ownerId?: string; createdAt?: string; updatedAt?: string; + /** Upload for Badge or icon image associated with this level */ + imageUpload?: File; } -export interface UpdateRlsModuleInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `RlsModule` being updated. */ - rlsModulePatch: RlsModulePatch; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; } -/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ -export interface RlsModulePatch { +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { id?: string; - databaseId?: string; - apiId?: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: 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; + createdAt?: string; + updatedAt?: string; } export interface UpdateDenormalizedTableFieldInput { clientMutationId?: string; @@ -10104,107 +10991,6 @@ export interface ViewPatch { scope?: number; tags?: string[]; } -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; -} -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId?: string; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId?: string; - entityId?: string; -} -export interface UpdateAppInput { - clientMutationId?: string; - 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 { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; -} -export interface UpdateSiteInput { - clientMutationId?: string; - 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 { - id?: string; - databaseId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `User` being updated. */ - userPatch: UserPatch; -} -/** Represents an update to a `User`. Fields that are set will be updated. */ -export interface UserPatch { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; -} export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; @@ -10231,27 +11017,49 @@ export interface PermissionsModulePatch { getByMask?: string; getMaskByName?: string; } -export interface UpdatePrimaryKeyConstraintInput { +export interface UpdateSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; - /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; + /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ + secureTableProvisionPatch: SecureTableProvisionPatch; } -/** Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. */ -export interface PrimaryKeyConstraintPatch { +/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ +export interface SecureTableProvisionPatch { + /** Unique identifier for this provision row. */ id?: string; + /** The database this provision belongs to. Required. */ databaseId?: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ tableId?: string; - name?: string; - type?: string; - fieldIds?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: 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; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: 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 policy_type is provided. Defaults to true. */ + useRls?: boolean; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: unknown; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string[]; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: unknown; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string[]; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -10275,21 +11083,20 @@ export interface TriggerPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateCheckConstraintInput { +export interface UpdatePrimaryKeyConstraintInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ - checkConstraintPatch: CheckConstraintPatch; + /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; } -/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ -export interface CheckConstraintPatch { +/** Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. */ +export interface PrimaryKeyConstraintPatch { id?: string; databaseId?: string; tableId?: string; name?: string; type?: string; fieldIds?: string[]; - expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -10321,22 +11128,21 @@ export interface UniqueConstraintPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateProcedureInput { +export interface UpdateCheckConstraintInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `Procedure` being updated. */ - procedurePatch: ProcedurePatch; + /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ + checkConstraintPatch: CheckConstraintPatch; } -/** Represents an update to a `Procedure`. Fields that are set will be updated. */ -export interface ProcedurePatch { +/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ +export interface CheckConstraintPatch { id?: string; databaseId?: string; + tableId?: string; name?: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; + type?: string; + fieldIds?: string[]; + expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -10357,7 +11163,7 @@ export interface PolicyPatch { databaseId?: string; tableId?: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -10371,52 +11177,90 @@ export interface PolicyPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateInviteInput { +export interface UpdateAppInput { clientMutationId?: string; + /** Unique identifier for this app */ id: string; - /** An object where the defined keys will be set on the `Invite` being updated. */ - invitePatch: InvitePatch; + /** An object where the defined keys will be set on the `App` being updated. */ + appPatch: AppPatch; } -/** Represents an update to a `Invite`. Fields that are set will be updated. */ -export interface InvitePatch { +/** Represents an update to a `App`. Fields that are set will be updated. */ +export interface AppPatch { + /** Unique identifier for this app */ id?: string; - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: unknown; - expiresAt?: string; - createdAt?: string; - updatedAt?: 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 UpdateIndexInput { +export interface UpdateSiteInput { clientMutationId?: string; + /** Unique identifier for this site */ id: string; - /** An object where the defined keys will be set on the `Index` being updated. */ - indexPatch: IndexPatch; + /** An object where the defined keys will be set on the `Site` being updated. */ + sitePatch: SitePatch; } -/** Represents an update to a `Index`. Fields that are set will be updated. */ -export interface IndexPatch { +/** 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; - tableId?: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: unknown; - whereClause?: unknown; - isUnique?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: 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 UpdateUserInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `User` being updated. */ + userPatch: UserPatch; +} +/** Represents an update to a `User`. Fields that are set will be updated. */ +export interface UserPatch { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; createdAt?: string; updatedAt?: string; + /** File upload for the `profilePicture` field. */ + profilePictureUpload?: File; } export interface UpdateLimitsModuleInput { clientMutationId?: string; @@ -10445,29 +11289,6 @@ export interface LimitsModulePatch { entityTableId?: string; actorTableId?: string; } -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Schema` being updated. */ - schemaPatch: SchemaPatch; -} -/** Represents an update to a `Schema`. Fields that are set will be updated. */ -export interface SchemaPatch { - id?: string; - databaseId?: string; - name?: string; - schemaName?: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface UpdateProfilesModuleInput { clientMutationId?: string; id: string; @@ -10488,7 +11309,6 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType?: number; entityTableId?: string; actorTableId?: string; @@ -10496,28 +11316,154 @@ export interface ProfilesModulePatch { membershipsTableId?: string; prefix?: string; } -export interface UpdateOrgInviteInput { +export interface UpdateIndexInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgInvite` being updated. */ - orgInvitePatch: OrgInvitePatch; + /** An object where the defined keys will be set on the `Index` being updated. */ + indexPatch: IndexPatch; } -/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ -export interface OrgInvitePatch { +/** Represents an update to a `Index`. Fields that are set will be updated. */ +export interface IndexPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: unknown; + whereClause?: unknown; + isUnique?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembership` being updated. */ + appMembershipPatch: AppMembershipPatch; +} +/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ +export interface AppMembershipPatch { + 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; +} +export interface UpdateOrgMembershipInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; +} +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { + 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 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; + profileId?: string; +} +export interface UpdateInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Invite` being updated. */ + invitePatch: InvitePatch; +} +/** Represents an update to a `Invite`. Fields that are set will be updated. */ +export interface InvitePatch { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; - receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId?: string; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Schema` being updated. */ + schemaPatch: SchemaPatch; +} +/** Represents an update to a `Schema`. Fields that are set will be updated. */ +export interface SchemaPatch { + id?: string; + databaseId?: string; + name?: string; + schemaName?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; } export interface UpdateHierarchyModuleInput { clientMutationId?: string; @@ -10548,6 +11494,39 @@ export interface HierarchyModulePatch { isManagerOfFunction?: string; createdAt?: string; } +export interface UpdateOrgInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgInvite` being updated. */ + orgInvitePatch: OrgInvitePatch; +} +/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ +export interface OrgInvitePatch { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} export interface UpdateForeignKeyConstraintInput { clientMutationId?: string; id: string; @@ -10706,6 +11685,139 @@ export interface FieldPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + /** Unique identifier for this relation provision row. */ + id: string; + /** An object where the defined keys will be set on the `RelationProvision` being updated. */ + relationProvisionPatch: RelationProvisionPatch; +} +/** Represents an update to a `RelationProvision`. Fields that are set will be updated. */ +export interface RelationProvisionPatch { + /** 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 matching the node_type_registry: + * - 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; + /** + * 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; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: unknown; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string[]; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: unknown; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string[]; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: unknown; + /** 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; +} export interface UpdateMembershipsModuleInput { clientMutationId?: string; id: string; @@ -10756,18 +11868,16 @@ export interface DeleteViewTableInput { } export interface DeleteApiSchemaInput { clientMutationId?: string; - id: string; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; + /** Unique identifier for this API-schema mapping */ id: string; } export interface DeleteOrgMemberInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionDefaultInput { +export interface DeleteSiteThemeInput { clientMutationId?: string; + /** Unique identifier for this theme record */ id: string; } export interface DeleteRefInput { @@ -10781,14 +11891,6 @@ export interface DeleteStoreInput { /** The primary unique identifier for the store. */ id: string; } -export interface DeleteApiModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSiteModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteEncryptedSecretsModuleInput { clientMutationId?: string; id: string; @@ -10805,23 +11907,25 @@ export interface DeleteUuidModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRoleTypeInput { +export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; - id: number; + id: string; } -export interface DeleteOrgPermissionDefaultInput { +export interface DeleteApiModuleInput { clientMutationId?: string; + /** Unique identifier for this API module record */ id: string; } -export interface DeleteSchemaGrantInput { +export interface DeleteSiteModuleInput { clientMutationId?: string; + /** Unique identifier for this site module record */ id: string; } -export interface DeleteTriggerFunctionInput { +export interface DeleteSchemaGrantInput { clientMutationId?: string; id: string; } -export interface DeleteViewGrantInput { +export interface DeleteTriggerFunctionInput { clientMutationId?: string; id: string; } @@ -10837,16 +11941,25 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewGrantInput { clientMutationId?: string; id: string; } export interface DeleteApiInput { clientMutationId?: string; + /** Unique identifier for this API */ id: string; } export interface DeleteConnectedAccountsModuleInput { @@ -10861,10 +11974,6 @@ export interface DeletePhoneNumbersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteTableModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteUsersModuleInput { clientMutationId?: string; id: string; @@ -10881,19 +11990,15 @@ export interface DeleteCryptoAddressInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface DeleteDatabaseInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteLimitFunctionInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteTableGrantInput { +export interface DeleteDatabaseInput { clientMutationId?: string; id: string; } @@ -10909,50 +12014,68 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; +} +export interface DeleteFieldModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionInput { +export interface DeleteTableModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { +export interface DeleteTableTemplateModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppAchievementInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppStepInput { +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; +} +export interface DeleteTableGrantInput { clientMutationId?: string; id: string; } -export interface DeleteClaimedInviteInput { +export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteSiteMetadatumInput { +export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface DeleteFieldModuleInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface DeleteTableTemplateModuleInput { +export interface DeleteAppStepInput { clientMutationId?: string; id: string; } -export interface DeleteNodeTypeRegistryInput { +export interface DeleteClaimedInviteInput { clientMutationId?: string; - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name: string; + id: string; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; } export interface DeleteObjectInput { clientMutationId?: string; @@ -10982,23 +12105,28 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface DeleteDomainInput { clientMutationId?: string; + /** Unique identifier for this domain record */ id: string; } -export interface DeleteOrgGrantInput { +export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteSessionsModuleInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { +export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } @@ -11014,7 +12142,7 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } -export interface DeleteRlsModuleInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } @@ -11038,79 +12166,82 @@ export interface DeleteViewInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; } -export interface DeleteAppInput { +export interface DeleteTriggerInput { clientMutationId?: string; id: string; } -export interface DeleteSiteInput { +export interface DeletePrimaryKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteUserInput { +export interface DeleteUniqueConstraintInput { clientMutationId?: string; id: string; } -export interface DeletePermissionsModuleInput { +export interface DeleteCheckConstraintInput { clientMutationId?: string; id: string; } -export interface DeletePrimaryKeyConstraintInput { +export interface DeletePolicyInput { clientMutationId?: string; id: string; } -export interface DeleteTriggerInput { +export interface DeleteAppInput { clientMutationId?: string; + /** Unique identifier for this app */ id: string; } -export interface DeleteCheckConstraintInput { +export interface DeleteSiteInput { clientMutationId?: string; + /** Unique identifier for this site */ id: string; } -export interface DeleteUniqueConstraintInput { +export interface DeleteUserInput { clientMutationId?: string; id: string; } -export interface DeleteProcedureInput { +export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface DeletePolicyInput { +export interface DeleteProfilesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteInviteInput { +export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface DeleteIndexInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteLimitsModuleInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteSchemaInput { +export interface DeleteInviteInput { clientMutationId?: string; id: string; } -export interface DeleteProfilesModuleInput { +export interface DeleteSchemaInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface DeleteHierarchyModuleInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } @@ -11134,10 +12265,29 @@ export interface DeleteFieldInput { clientMutationId?: string; id: string; } +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + /** Unique identifier for this relation provision row. */ + id: string; +} export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } +/** A connection to a list of `OrgGetManagersRecord` values. */ +export interface OrgGetManagersConnection { + nodes: OrgGetManagersRecord[]; + edges: OrgGetManagersEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgGetSubordinatesRecord` values. */ +export interface OrgGetSubordinatesConnection { + nodes: OrgGetSubordinatesRecord[]; + edges: OrgGetSubordinatesEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `GetAllRecord` values. */ export interface GetAllConnection { nodes: GetAllRecord[]; @@ -11194,13 +12344,6 @@ export interface ApiSchemaConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SiteTheme` values. */ -export interface SiteThemeConnection { - nodes: SiteTheme[]; - edges: SiteThemeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgMember` values. */ export interface OrgMemberConnection { nodes: OrgMember[]; @@ -11208,10 +12351,10 @@ export interface OrgMemberConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppPermissionDefault` values. */ -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; +/** A connection to a list of `SiteTheme` values. */ +export interface SiteThemeConnection { + nodes: SiteTheme[]; + edges: SiteThemeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11229,20 +12372,6 @@ export interface StoreConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ApiModule` values. */ -export interface ApiModuleConnection { - nodes: ApiModule[]; - edges: ApiModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteModule` values. */ -export interface SiteModuleConnection { - nodes: SiteModule[]; - edges: SiteModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EncryptedSecretsModule` values. */ export interface EncryptedSecretsModuleConnection { nodes: EncryptedSecretsModule[]; @@ -11271,17 +12400,24 @@ export interface UuidModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RoleType` values. */ -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; +/** A connection to a list of `AppPermissionDefault` values. */ +export interface AppPermissionDefaultConnection { + nodes: AppPermissionDefault[]; + edges: AppPermissionDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgPermissionDefault` values. */ -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; +/** A connection to a list of `ApiModule` values. */ +export interface ApiModuleConnection { + nodes: ApiModule[]; + edges: ApiModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteModule` values. */ +export interface SiteModuleConnection { + nodes: SiteModule[]; + edges: SiteModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11299,13 +12435,6 @@ export interface TriggerFunctionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ViewGrant` values. */ -export interface ViewGrantConnection { - nodes: ViewGrant[]; - edges: ViewGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ViewRule` values. */ export interface ViewRuleConnection { nodes: ViewRule[]; @@ -11327,17 +12456,31 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; +/** A connection to a list of `RoleType` values. */ +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; +/** A connection to a list of `OrgPermissionDefault` values. */ +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DefaultPrivilege` values. */ +export interface DefaultPrivilegeConnection { + nodes: DefaultPrivilege[]; + edges: DefaultPrivilegeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ViewGrant` values. */ +export interface ViewGrantConnection { + nodes: ViewGrant[]; + edges: ViewGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11363,16 +12506,9 @@ export interface EmailsModuleConnection { totalCount: number; } /** A connection to a list of `PhoneNumbersModule` values. */ -export interface PhoneNumbersModuleConnection { - nodes: PhoneNumbersModule[]; - edges: PhoneNumbersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableModule` values. */ -export interface TableModuleConnection { - nodes: TableModule[]; - edges: TableModuleEdge[]; +export interface PhoneNumbersModuleConnection { + nodes: PhoneNumbersModule[]; + edges: PhoneNumbersModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11404,10 +12540,17 @@ export interface CryptoAddressConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11418,20 +12561,6 @@ export interface DatabaseConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `LimitFunction` values. */ -export interface LimitFunctionConnection { - nodes: LimitFunction[]; - edges: LimitFunctionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableGrant` values. */ -export interface TableGrantConnection { - nodes: TableGrant[]; - edges: TableGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `CryptoAddressesModule` values. */ export interface CryptoAddressesModuleConnection { nodes: CryptoAddressesModule[]; @@ -11453,6 +12582,55 @@ export interface PhoneNumberConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `FieldModule` values. */ +export interface FieldModuleConnection { + nodes: FieldModule[]; + edges: FieldModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableModule` values. */ +export interface TableModuleConnection { + nodes: TableModule[]; + edges: TableModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableTemplateModule` values. */ +export interface TableTemplateModuleConnection { + nodes: TableTemplateModule[]; + edges: TableTemplateModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NodeTypeRegistry` values. */ +export interface NodeTypeRegistryConnection { + nodes: NodeTypeRegistry[]; + edges: NodeTypeRegistryEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableGrant` values. */ +export interface TableGrantConnection { + nodes: TableGrant[]; + edges: TableGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimit` values. */ export interface AppLimitConnection { nodes: AppLimit[]; @@ -11495,27 +12673,6 @@ export interface SiteMetadatumConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `FieldModule` values. */ -export interface FieldModuleConnection { - nodes: FieldModule[]; - edges: FieldModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableTemplateModule` values. */ -export interface TableTemplateModuleConnection { - nodes: TableTemplateModule[]; - edges: TableTemplateModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `NodeTypeRegistry` values. */ -export interface NodeTypeRegistryConnection { - nodes: NodeTypeRegistry[]; - edges: NodeTypeRegistryEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `FullTextSearch` values. */ export interface FullTextSearchConnection { nodes: FullTextSearch[]; @@ -11551,6 +12708,13 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Domain` values. */ export interface DomainConnection { nodes: Domain[]; @@ -11558,6 +12722,13 @@ export interface DomainConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SessionsModule` values. */ +export interface SessionsModuleConnection { + nodes: SessionsModule[]; + edges: SessionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgGrant` values. */ export interface OrgGrantConnection { nodes: OrgGrant[]; @@ -11572,17 +12743,10 @@ export interface OrgMembershipDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SessionsModule` values. */ -export interface SessionsModuleConnection { - nodes: SessionsModule[]; - edges: SessionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; +/** A connection to a list of `RlsModule` values. */ +export interface RlsModuleConnection { + nodes: RlsModule[]; + edges: RlsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11600,10 +12764,10 @@ export interface AppLevelConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RlsModule` values. */ -export interface RlsModuleConnection { - nodes: RlsModule[]; - edges: RlsModuleEdge[]; +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11649,6 +12813,20 @@ export interface ViewConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PermissionsModule` values. */ +export interface PermissionsModuleConnection { + nodes: PermissionsModule[]; + edges: PermissionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SecureTableProvision` values. */ +export interface SecureTableProvisionConnection { + nodes: SecureTableProvision[]; + edges: SecureTableProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AstMigration` values. */ export interface AstMigrationConnection { nodes: AstMigration[]; @@ -11656,17 +12834,38 @@ export interface AstMigrationConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; +/** A connection to a list of `Trigger` values. */ +export interface TriggerConnection { + nodes: Trigger[]; + edges: TriggerEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; +/** A connection to a list of `PrimaryKeyConstraint` values. */ +export interface PrimaryKeyConstraintConnection { + nodes: PrimaryKeyConstraint[]; + edges: PrimaryKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UniqueConstraint` values. */ +export interface UniqueConstraintConnection { + nodes: UniqueConstraint[]; + edges: UniqueConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CheckConstraint` values. */ +export interface CheckConstraintConnection { + nodes: CheckConstraint[]; + edges: CheckConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Policy` values. */ +export interface PolicyConnection { + nodes: Policy[]; + edges: PolicyEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11691,52 +12890,38 @@ export interface UserConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PermissionsModule` values. */ -export interface PermissionsModuleConnection { - nodes: PermissionsModule[]; - edges: PermissionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PrimaryKeyConstraint` values. */ -export interface PrimaryKeyConstraintConnection { - nodes: PrimaryKeyConstraint[]; - edges: PrimaryKeyConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Trigger` values. */ -export interface TriggerConnection { - nodes: Trigger[]; - edges: TriggerEdge[]; +/** A connection to a list of `LimitsModule` values. */ +export interface LimitsModuleConnection { + nodes: LimitsModule[]; + edges: LimitsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `CheckConstraint` values. */ -export interface CheckConstraintConnection { - nodes: CheckConstraint[]; - edges: CheckConstraintEdge[]; +/** A connection to a list of `ProfilesModule` values. */ +export interface ProfilesModuleConnection { + nodes: ProfilesModule[]; + edges: ProfilesModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UniqueConstraint` values. */ -export interface UniqueConstraintConnection { - nodes: UniqueConstraint[]; - edges: UniqueConstraintEdge[]; +/** A connection to a list of `Index` values. */ +export interface IndexConnection { + nodes: Index[]; + edges: IndexEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Procedure` values. */ -export interface ProcedureConnection { - nodes: Procedure[]; - edges: ProcedureEdge[]; +/** A connection to a list of `AppMembership` values. */ +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Policy` values. */ -export interface PolicyConnection { - nodes: Policy[]; - edges: PolicyEdge[]; +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11747,20 +12932,6 @@ export interface InviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Index` values. */ -export interface IndexConnection { - nodes: Index[]; - edges: IndexEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `LimitsModule` values. */ -export interface LimitsModuleConnection { - nodes: LimitsModule[]; - edges: LimitsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Schema` values. */ export interface SchemaConnection { nodes: Schema[]; @@ -11768,10 +12939,10 @@ export interface SchemaConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ProfilesModule` values. */ -export interface ProfilesModuleConnection { - nodes: ProfilesModule[]; - edges: ProfilesModuleEdge[]; +/** A connection to a list of `HierarchyModule` values. */ +export interface HierarchyModuleConnection { + nodes: HierarchyModule[]; + edges: HierarchyModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11782,13 +12953,6 @@ export interface OrgInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `HierarchyModule` values. */ -export interface HierarchyModuleConnection { - nodes: HierarchyModule[]; - edges: HierarchyModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ForeignKeyConstraint` values. */ export interface ForeignKeyConstraintConnection { nodes: ForeignKeyConstraint[]; @@ -11824,6 +12988,13 @@ export interface FieldConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RelationProvision` values. */ +export interface RelationProvisionConnection { + nodes: RelationProvision[]; + edges: RelationProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `MembershipsModule` values. */ export interface MembershipsModuleConnection { nodes: MembershipsModule[]; @@ -11970,23 +13141,17 @@ export interface CreateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface CreateAppPermissionDefaultPayload { +export interface CreateSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface CreateRefPayload { clientMutationId?: string | null; @@ -12000,18 +13165,6 @@ export interface CreateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface CreateEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was created by this mutation. */ @@ -12036,17 +13189,23 @@ export interface CreateUuidModulePayload { uuidModule?: UuidModule | null; uuidModuleEdge?: UuidModuleEdge | null; } -export interface CreateRoleTypePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface CreateOrgPermissionDefaultPayload { +export interface CreateApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface CreateSchemaGrantPayload { clientMutationId?: string | null; @@ -12060,12 +13219,6 @@ export interface CreateTriggerFunctionPayload { triggerFunction?: TriggerFunction | null; triggerFunctionEdge?: TriggerFunctionEdge | null; } -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was created by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} export interface CreateViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was created by this mutation. */ @@ -12084,17 +13237,29 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateAppLimitDefaultPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; } export interface CreateApiPayload { clientMutationId?: string | null; @@ -12120,12 +13285,6 @@ export interface CreatePhoneNumbersModulePayload { phoneNumbersModule?: PhoneNumbersModule | null; phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export interface CreateTableModulePayload { - clientMutationId?: string | null; - /** The `TableModule` that was created by this mutation. */ - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} export interface CreateUsersModulePayload { clientMutationId?: string | null; /** The `UsersModule` that was created by this mutation. */ @@ -12150,11 +13309,17 @@ export interface CreateCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface CreateMembershipTypePayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface CreateDatabasePayload { clientMutationId?: string | null; @@ -12162,18 +13327,6 @@ export interface CreateDatabasePayload { database?: Database | null; databaseEdge?: DatabaseEdge | null; } -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was created by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was created by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -12192,6 +13345,48 @@ export interface CreatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was created by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface CreateTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was created by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface CreateTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was created by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -12240,24 +13435,6 @@ export interface CreateSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface CreateFieldModulePayload { - clientMutationId?: string | null; - /** The `FieldModule` that was created by this mutation. */ - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface CreateTableTemplateModulePayload { - clientMutationId?: string | null; - /** The `TableTemplateModule` that was created by this mutation. */ - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} export interface CreateObjectPayload { clientMutationId?: string | null; /** The `Object` that was created by this mutation. */ @@ -12294,12 +13471,24 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateDomainPayload { clientMutationId?: string | null; /** The `Domain` that was created by this mutation. */ domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -12312,17 +13501,11 @@ export interface CreateOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface CreateEmailPayload { +export interface CreateRlsModulePayload { clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; @@ -12342,11 +13525,11 @@ export interface CreateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } -export interface CreateRlsModulePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface CreateDenormalizedTableFieldPayload { clientMutationId?: string | null; @@ -12383,46 +13566,28 @@ export interface CreateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; -} -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface CreateAppPayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface CreateSitePayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface CreateUserPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export interface CreatePermissionsModulePayload { +export interface CreateTriggerPayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; } export interface CreatePrimaryKeyConstraintPayload { clientMutationId?: string | null; @@ -12430,41 +13595,53 @@ export interface CreatePrimaryKeyConstraintPayload { primaryKeyConstraint?: PrimaryKeyConstraint | null; primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } -export interface CreateTriggerPayload { +export interface CreateUniqueConstraintPayload { clientMutationId?: string | null; - /** The `Trigger` that was created by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; } export interface CreateCheckConstraintPayload { clientMutationId?: string | null; - /** The `CheckConstraint` that was created by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + 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 CreateUniqueConstraintPayload { +export interface CreateSitePayload { clientMutationId?: string | null; - /** The `UniqueConstraint` that was created by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; } -export interface CreateProcedurePayload { +export interface CreateUserPayload { clientMutationId?: string | null; - /** The `Procedure` that was created by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } -export interface CreatePolicyPayload { +export interface CreateLimitsModulePayload { clientMutationId?: string | null; - /** The `Policy` that was created by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; } -export interface CreateInvitePayload { +export interface CreateProfilesModulePayload { clientMutationId?: string | null; - /** The `Invite` that was created by this mutation. */ - invite?: Invite | null; - inviteEdge?: InviteEdge | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; } export interface CreateIndexPayload { clientMutationId?: string | null; @@ -12472,11 +13649,23 @@ export interface CreateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface CreateLimitsModulePayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface CreateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was created by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; } export interface CreateSchemaPayload { clientMutationId?: string | null; @@ -12484,11 +13673,11 @@ export interface CreateSchemaPayload { schema?: Schema | null; schemaEdge?: SchemaEdge | null; } -export interface CreateProfilesModulePayload { +export interface CreateHierarchyModulePayload { clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; } export interface CreateOrgInvitePayload { clientMutationId?: string | null; @@ -12496,12 +13685,6 @@ export interface CreateOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was created by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} export interface CreateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was created by this mutation. */ @@ -12532,6 +13715,12 @@ export interface CreateFieldPayload { field?: Field | null; fieldEdge?: FieldEdge | null; } +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface CreateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was created by this mutation. */ @@ -12556,23 +13745,17 @@ export interface UpdateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface UpdateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface UpdateAppPermissionDefaultPayload { +export interface UpdateSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface UpdateRefPayload { clientMutationId?: string | null; @@ -12586,18 +13769,6 @@ export interface UpdateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface UpdateEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was updated by this mutation. */ @@ -12622,17 +13793,23 @@ export interface UpdateUuidModulePayload { uuidModule?: UuidModule | null; uuidModuleEdge?: UuidModuleEdge | null; } -export interface UpdateRoleTypePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface UpdateOrgPermissionDefaultPayload { +export interface UpdateApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface UpdateSchemaGrantPayload { clientMutationId?: string | null; @@ -12646,12 +13823,6 @@ export interface UpdateTriggerFunctionPayload { triggerFunction?: TriggerFunction | null; triggerFunctionEdge?: TriggerFunctionEdge | null; } -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was updated by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} export interface UpdateViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was updated by this mutation. */ @@ -12670,17 +13841,29 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; } export interface UpdateApiPayload { clientMutationId?: string | null; @@ -12706,12 +13889,6 @@ export interface UpdatePhoneNumbersModulePayload { phoneNumbersModule?: PhoneNumbersModule | null; phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export interface UpdateTableModulePayload { - clientMutationId?: string | null; - /** The `TableModule` that was updated by this mutation. */ - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} export interface UpdateUsersModulePayload { clientMutationId?: string | null; /** The `UsersModule` that was updated by this mutation. */ @@ -12736,11 +13913,17 @@ export interface UpdateCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface UpdateMembershipTypePayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface UpdateDatabasePayload { clientMutationId?: string | null; @@ -12748,18 +13931,6 @@ export interface UpdateDatabasePayload { database?: Database | null; databaseEdge?: DatabaseEdge | null; } -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was updated by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was updated by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was updated by this mutation. */ @@ -12778,6 +13949,48 @@ export interface UpdatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface UpdateFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was updated by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface UpdateTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was updated by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface UpdateTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was updated by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} export interface UpdateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ @@ -12826,24 +14039,6 @@ export interface UpdateSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface UpdateFieldModulePayload { - clientMutationId?: string | null; - /** The `FieldModule` that was updated by this mutation. */ - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface UpdateTableTemplateModulePayload { - clientMutationId?: string | null; - /** The `TableTemplateModule` that was updated by this mutation. */ - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} export interface UpdateObjectPayload { clientMutationId?: string | null; /** The `Object` that was updated by this mutation. */ @@ -12880,12 +14075,24 @@ export interface UpdateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateDomainPayload { clientMutationId?: string | null; /** The `Domain` that was updated by this mutation. */ domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} export interface UpdateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was updated by this mutation. */ @@ -12898,17 +14105,11 @@ export interface UpdateOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface UpdateEmailPayload { +export interface UpdateRlsModulePayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } export interface UpdateAppLevelRequirementPayload { clientMutationId?: string | null; @@ -12928,11 +14129,11 @@ export interface UpdateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } -export interface UpdateRlsModulePayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `RlsModule` that was updated by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface UpdateDenormalizedTableFieldPayload { clientMutationId?: string | null; @@ -12964,47 +14165,17 @@ export interface UpdateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | 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 UpdateUserPayload { - clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was updated by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface UpdatePrimaryKeyConstraintPayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was updated by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } export interface UpdateTriggerPayload { clientMutationId?: string | null; @@ -13012,11 +14183,11 @@ export interface UpdateTriggerPayload { trigger?: Trigger | null; triggerEdge?: TriggerEdge | null; } -export interface UpdateCheckConstraintPayload { +export interface UpdatePrimaryKeyConstraintPayload { clientMutationId?: string | null; - /** The `CheckConstraint` that was updated by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export interface UpdateUniqueConstraintPayload { clientMutationId?: string | null; @@ -13024,11 +14195,11 @@ export interface UpdateUniqueConstraintPayload { uniqueConstraint?: UniqueConstraint | null; uniqueConstraintEdge?: UniqueConstraintEdge | null; } -export interface UpdateProcedurePayload { +export interface UpdateCheckConstraintPayload { clientMutationId?: string | null; - /** The `Procedure` that was updated by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; } export interface UpdatePolicyPayload { clientMutationId?: string | null; @@ -13036,17 +14207,23 @@ export interface UpdatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface UpdateInvitePayload { +export interface UpdateAppPayload { clientMutationId?: string | null; - /** The `Invite` that was updated by this mutation. */ - invite?: Invite | null; - inviteEdge?: InviteEdge | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; } -export interface UpdateIndexPayload { +export interface UpdateSitePayload { clientMutationId?: string | null; - /** The `Index` that was updated by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface UpdateUserPayload { + clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface UpdateLimitsModulePayload { clientMutationId?: string | null; @@ -13054,23 +14231,41 @@ export interface UpdateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} export interface UpdateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was updated by this mutation. */ profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface UpdateOrgInvitePayload { +export interface UpdateIndexPayload { clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface UpdateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; } export interface UpdateHierarchyModulePayload { clientMutationId?: string | null; @@ -13078,6 +14273,12 @@ export interface UpdateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface UpdateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was updated by this mutation. */ @@ -13108,6 +14309,12 @@ export interface UpdateFieldPayload { field?: Field | null; fieldEdge?: FieldEdge | null; } +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface UpdateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was updated by this mutation. */ @@ -13132,23 +14339,17 @@ export interface DeleteApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface DeleteOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface DeleteAppPermissionDefaultPayload { +export interface DeleteSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface DeleteRefPayload { clientMutationId?: string | null; @@ -13162,18 +14363,6 @@ export interface DeleteStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface DeleteEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was deleted by this mutation. */ @@ -13198,17 +14387,23 @@ export interface DeleteUuidModulePayload { uuidModule?: UuidModule | null; uuidModuleEdge?: UuidModuleEdge | null; } -export interface DeleteRoleTypePayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface DeleteSchemaGrantPayload { clientMutationId?: string | null; @@ -13222,12 +14417,6 @@ export interface DeleteTriggerFunctionPayload { triggerFunction?: TriggerFunction | null; triggerFunctionEdge?: TriggerFunctionEdge | null; } -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was deleted by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} export interface DeleteViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was deleted by this mutation. */ @@ -13246,17 +14435,29 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteAppLimitDefaultPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; } export interface DeleteApiPayload { clientMutationId?: string | null; @@ -13282,12 +14483,6 @@ export interface DeletePhoneNumbersModulePayload { phoneNumbersModule?: PhoneNumbersModule | null; phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export interface DeleteTableModulePayload { - clientMutationId?: string | null; - /** The `TableModule` that was deleted by this mutation. */ - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} export interface DeleteUsersModulePayload { clientMutationId?: string | null; /** The `UsersModule` that was deleted by this mutation. */ @@ -13312,23 +14507,77 @@ export interface DeleteCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } -export interface DeleteDatabasePayload { +export interface DeleteFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was deleted by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface DeleteTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was deleted by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface DeleteTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was deleted by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface DeleteOrgChartEdgeGrantPayload { clientMutationId?: string | null; - /** The `Database` that was deleted by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface DeleteLimitFunctionPayload { +export interface DeleteNodeTypeRegistryPayload { clientMutationId?: string | null; - /** The `LimitFunction` that was deleted by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export interface DeleteTableGrantPayload { clientMutationId?: string | null; @@ -13336,24 +14585,6 @@ export interface DeleteTableGrantPayload { tableGrant?: TableGrant | null; tableGrantEdge?: TableGrantEdge | null; } -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was deleted by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} export interface DeleteAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ @@ -13402,24 +14633,6 @@ export interface DeleteSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface DeleteFieldModulePayload { - clientMutationId?: string | null; - /** The `FieldModule` that was deleted by this mutation. */ - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface DeleteTableTemplateModulePayload { - clientMutationId?: string | null; - /** The `TableTemplateModule` that was deleted by this mutation. */ - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} export interface DeleteObjectPayload { clientMutationId?: string | null; /** The `Object` that was deleted by this mutation. */ @@ -13456,12 +14669,24 @@ export interface DeleteOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteDomainPayload { clientMutationId?: string | null; /** The `Domain` that was deleted by this mutation. */ domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} export interface DeleteOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was deleted by this mutation. */ @@ -13474,17 +14699,11 @@ export interface DeleteOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface DeleteEmailPayload { +export interface DeleteRlsModulePayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } export interface DeleteAppLevelRequirementPayload { clientMutationId?: string | null; @@ -13504,11 +14723,11 @@ export interface DeleteAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } -export interface DeleteRlsModulePayload { +export interface DeleteEmailPayload { clientMutationId?: string | null; - /** The `RlsModule` that was deleted by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; @@ -13540,47 +14759,17 @@ export interface DeleteViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | 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 DeleteUserPayload { - clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} export interface DeletePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was deleted by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface DeletePrimaryKeyConstraintPayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } export interface DeleteTriggerPayload { clientMutationId?: string | null; @@ -13588,11 +14777,11 @@ export interface DeleteTriggerPayload { trigger?: Trigger | null; triggerEdge?: TriggerEdge | null; } -export interface DeleteCheckConstraintPayload { +export interface DeletePrimaryKeyConstraintPayload { clientMutationId?: string | null; - /** The `CheckConstraint` that was deleted by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export interface DeleteUniqueConstraintPayload { clientMutationId?: string | null; @@ -13600,11 +14789,11 @@ export interface DeleteUniqueConstraintPayload { uniqueConstraint?: UniqueConstraint | null; uniqueConstraintEdge?: UniqueConstraintEdge | null; } -export interface DeleteProcedurePayload { +export interface DeleteCheckConstraintPayload { clientMutationId?: string | null; - /** The `Procedure` that was deleted by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; } export interface DeletePolicyPayload { clientMutationId?: string | null; @@ -13612,17 +14801,23 @@ export interface DeletePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface DeleteInvitePayload { +export interface DeleteAppPayload { clientMutationId?: string | null; - /** The `Invite` that was deleted by this mutation. */ - invite?: Invite | null; - inviteEdge?: InviteEdge | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; } -export interface DeleteIndexPayload { +export interface DeleteSitePayload { clientMutationId?: string | null; - /** The `Index` that was deleted by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface DeleteUserPayload { + clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface DeleteLimitsModulePayload { clientMutationId?: string | null; @@ -13630,23 +14825,41 @@ export interface DeleteLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} export interface DeleteProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was deleted by this mutation. */ profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface DeleteOrgInvitePayload { +export interface DeleteIndexPayload { clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface DeleteInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; } export interface DeleteHierarchyModulePayload { clientMutationId?: string | null; @@ -13654,6 +14867,12 @@ export interface DeleteHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface DeleteForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was deleted by this mutation. */ @@ -13684,17 +14903,23 @@ export interface DeleteFieldPayload { field?: Field | null; fieldEdge?: FieldEdge | null; } +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface DeleteMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was deleted by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } -/** A `GetAllRecord` edge in the connection. */ -export interface GetAllEdge { +/** A `OrgGetManagersRecord` edge in the connection. */ +export interface OrgGetManagersEdge { cursor?: string | null; - /** The `GetAllRecord` at the end of the edge. */ - node?: GetAllRecord | null; + /** The `OrgGetManagersRecord` at the end of the edge. */ + node?: OrgGetManagersRecord | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -13707,6 +14932,18 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } +/** A `OrgGetSubordinatesRecord` edge in the connection. */ +export interface OrgGetSubordinatesEdge { + cursor?: string | null; + /** The `OrgGetSubordinatesRecord` at the end of the edge. */ + node?: OrgGetSubordinatesRecord | null; +} +/** A `GetAllRecord` edge in the connection. */ +export interface GetAllEdge { + cursor?: string | null; + /** The `GetAllRecord` at the end of the edge. */ + node?: GetAllRecord | null; +} /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -13749,23 +14986,17 @@ export interface ApiSchemaEdge { /** The `ApiSchema` at the end of the edge. */ node?: ApiSchema | null; } -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; } -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; } /** A `Ref` edge in the connection. */ export interface RefEdge { @@ -13779,18 +15010,6 @@ export interface StoreEdge { /** The `Store` at the end of the edge. */ node?: Store | null; } -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} /** A `EncryptedSecretsModule` edge in the connection. */ export interface EncryptedSecretsModuleEdge { cursor?: string | null; @@ -13815,17 +15034,23 @@ export interface UuidModuleEdge { /** The `UuidModule` at the end of the edge. */ node?: UuidModule | null; } -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; } -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; } /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { @@ -13839,12 +15064,6 @@ export interface TriggerFunctionEdge { /** The `TriggerFunction` at the end of the edge. */ node?: TriggerFunction | null; } -/** A `ViewGrant` edge in the connection. */ -export interface ViewGrantEdge { - cursor?: string | null; - /** The `ViewGrant` at the end of the edge. */ - node?: ViewGrant | null; -} /** A `ViewRule` edge in the connection. */ export interface ViewRuleEdge { cursor?: string | null; @@ -13863,17 +15082,29 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; } /** A `Api` edge in the connection. */ export interface ApiEdge { @@ -13899,12 +15130,6 @@ export interface PhoneNumbersModuleEdge { /** The `PhoneNumbersModule` at the end of the edge. */ node?: PhoneNumbersModule | null; } -/** A `TableModule` edge in the connection. */ -export interface TableModuleEdge { - cursor?: string | null; - /** The `TableModule` at the end of the edge. */ - node?: TableModule | null; -} /** A `UsersModule` edge in the connection. */ export interface UsersModuleEdge { cursor?: string | null; @@ -13929,11 +15154,17 @@ export interface CryptoAddressEdge { /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; } -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } /** A `Database` edge in the connection. */ export interface DatabaseEdge { @@ -13941,18 +15172,6 @@ export interface DatabaseEdge { /** The `Database` at the end of the edge. */ node?: Database | null; } -/** A `LimitFunction` edge in the connection. */ -export interface LimitFunctionEdge { - cursor?: string | null; - /** The `LimitFunction` at the end of the edge. */ - node?: LimitFunction | null; -} -/** A `TableGrant` edge in the connection. */ -export interface TableGrantEdge { - cursor?: string | null; - /** The `TableGrant` at the end of the edge. */ - node?: TableGrant | null; -} /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -13971,6 +15190,48 @@ export interface PhoneNumberEdge { /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { + cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; +} +/** A `FieldModule` edge in the connection. */ +export interface FieldModuleEdge { + cursor?: string | null; + /** The `FieldModule` at the end of the edge. */ + node?: FieldModule | null; +} +/** A `TableModule` edge in the connection. */ +export interface TableModuleEdge { + cursor?: string | null; + /** The `TableModule` at the end of the edge. */ + node?: TableModule | null; +} +/** A `TableTemplateModule` edge in the connection. */ +export interface TableTemplateModuleEdge { + cursor?: string | null; + /** The `TableTemplateModule` at the end of the edge. */ + node?: TableTemplateModule | null; +} +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -14007,24 +15268,6 @@ export interface SiteMetadatumEdge { /** The `SiteMetadatum` at the end of the edge. */ node?: SiteMetadatum | null; } -/** A `FieldModule` edge in the connection. */ -export interface FieldModuleEdge { - cursor?: string | null; - /** The `FieldModule` at the end of the edge. */ - node?: FieldModule | null; -} -/** A `TableTemplateModule` edge in the connection. */ -export interface TableTemplateModuleEdge { - cursor?: string | null; - /** The `TableTemplateModule` at the end of the edge. */ - node?: TableTemplateModule | null; -} -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} /** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { cursor?: string | null; @@ -14055,12 +15298,24 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `Domain` edge in the connection. */ export interface DomainEdge { cursor?: string | null; /** The `Domain` at the end of the edge. */ node?: Domain | null; } +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | null; +} /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { cursor?: string | null; @@ -14073,17 +15328,11 @@ export interface OrgMembershipDefaultEdge { /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } -/** A `SessionsModule` edge in the connection. */ -export interface SessionsModuleEdge { - cursor?: string | null; - /** The `SessionsModule` at the end of the edge. */ - node?: SessionsModule | null; -} -/** A `Email` edge in the connection. */ -export interface EmailEdge { +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; } /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { @@ -14097,11 +15346,11 @@ export interface AppLevelEdge { /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; } -/** A `RlsModule` edge in the connection. */ -export interface RlsModuleEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `RlsModule` at the end of the edge. */ - node?: RlsModule | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { @@ -14139,23 +15388,53 @@ export interface ViewEdge { /** The `View` at the end of the edge. */ node?: View | null; } +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} /** A `AstMigration` edge in the connection. */ export interface AstMigrationEdge { cursor?: string | null; /** The `AstMigration` at the end of the edge. */ node?: AstMigration | null; } -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; } -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +/** A `Policy` edge in the connection. */ +export interface PolicyEdge { + cursor?: string | null; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; } /** A `App` edge in the connection. */ export interface AppEdge { @@ -14175,47 +15454,35 @@ export interface UserEdge { /** The `User` at the end of the edge. */ node?: User | null; } -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -/** A `PrimaryKeyConstraint` edge in the connection. */ -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - /** The `PrimaryKeyConstraint` at the end of the edge. */ - node?: PrimaryKeyConstraint | null; -} -/** A `Trigger` edge in the connection. */ -export interface TriggerEdge { +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { cursor?: string | null; - /** The `Trigger` at the end of the edge. */ - node?: Trigger | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; } -/** A `CheckConstraint` edge in the connection. */ -export interface CheckConstraintEdge { +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { cursor?: string | null; - /** The `CheckConstraint` at the end of the edge. */ - node?: CheckConstraint | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; } -/** A `UniqueConstraint` edge in the connection. */ -export interface UniqueConstraintEdge { +/** A `Index` edge in the connection. */ +export interface IndexEdge { cursor?: string | null; - /** The `UniqueConstraint` at the end of the edge. */ - node?: UniqueConstraint | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; } -/** A `Procedure` edge in the connection. */ -export interface ProcedureEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `Procedure` at the end of the edge. */ - node?: Procedure | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -/** A `Policy` edge in the connection. */ -export interface PolicyEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `Policy` at the end of the edge. */ - node?: Policy | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } /** A `Invite` edge in the connection. */ export interface InviteEdge { @@ -14223,29 +15490,17 @@ export interface InviteEdge { /** The `Invite` at the end of the edge. */ node?: Invite | null; } -/** A `Index` edge in the connection. */ -export interface IndexEdge { - cursor?: string | null; - /** The `Index` at the end of the edge. */ - node?: Index | null; -} -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; /** The `Schema` at the end of the edge. */ node?: Schema | null; } -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { +/** A `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; } /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { @@ -14253,12 +15508,6 @@ export interface OrgInviteEdge { /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | 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 `ForeignKeyConstraint` edge in the connection. */ export interface ForeignKeyConstraintEdge { cursor?: string | null; @@ -14289,6 +15538,12 @@ export interface FieldEdge { /** The `Field` at the end of the edge. */ node?: Field | null; } +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} /** A `MembershipsModule` edge in the connection. */ export interface MembershipsModuleEdge { cursor?: string | null; @@ -14352,18 +15607,30 @@ export interface SignUpRecord { isVerified?: boolean | null; totpEnabled?: boolean | null; } +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index ef7ecf2ed..432fc6f8d 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -10,6 +10,14 @@ export type ConstructiveInternalTypeHostname = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; +export interface OrgGetManagersRecord { + userId: string | null; + depth: number | null; +} +export interface OrgGetSubordinatesRecord { + userId: string | null; + depth: number | null; +} export interface GetAllRecord { path: string[] | null; data: unknown | null; @@ -187,22 +195,12 @@ export interface Index { createdAt: string | null; updatedAt: string | null; } -export interface LimitFunction { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - label: string | null; - description: string | null; - data: unknown | null; - security: number | null; -} export interface Policy { id: string | null; databaseId: string | null; tableId: string | null; name: string | null; - roleName: string | null; + granteeName: string | null; privilege: string | null; permissive: boolean | null; disabled: boolean | null; @@ -236,8 +234,9 @@ export interface TableGrant { databaseId: string | null; tableId: string | null; privilege: string | null; - roleName: string | null; + granteeName: string | null; fieldIds: string[] | null; + isGrant: boolean | null; createdAt: string | null; updatedAt: string | null; } @@ -300,9 +299,10 @@ export interface ViewGrant { id: string | null; databaseId: string | null; viewId: string | null; - roleName: string | null; + granteeName: string | null; privilege: string | null; withGrantOption: boolean | null; + isGrant: boolean | null; } export interface ViewRule { id: string | null; @@ -315,9 +315,11 @@ export interface ViewRule { export interface TableModule { id: string | null; databaseId: string | null; - privateSchemaId: string | null; + schemaId: string | null; tableId: string | null; + tableName: string | null; nodeType: string | null; + useRls: boolean | null; data: unknown | null; fields: string[] | null; } @@ -332,6 +334,55 @@ export interface TableTemplateModule { nodeType: string | null; data: unknown | null; } +export interface SecureTableProvision { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + nodeType: string | null; + useRls: boolean | null; + nodeData: unknown | null; + grantRoles: string[] | null; + grantPrivileges: unknown | null; + policyType: string | null; + policyPrivileges: string[] | null; + policyRole: string | null; + policyPermissive: boolean | null; + policyName: string | null; + policyData: unknown | null; + outFields: string[] | null; +} +export interface RelationProvision { + id: string | null; + databaseId: string | null; + relationType: string | null; + sourceTableId: string | null; + targetTableId: string | null; + fieldName: string | null; + deleteAction: string | null; + isRequired: boolean | null; + junctionTableId: string | null; + junctionTableName: string | null; + junctionSchemaId: string | null; + sourceFieldName: string | null; + targetFieldName: string | null; + useCompositeKey: boolean | null; + nodeType: string | null; + nodeData: unknown | null; + grantRoles: string[] | null; + grantPrivileges: unknown | null; + policyType: string | null; + policyPrivileges: string[] | null; + policyRole: string | null; + policyPermissive: boolean | null; + policyName: string | null; + policyData: unknown | null; + outFieldId: string | null; + outJunctionTableId: string | null; + outSourceFieldId: string | null; + outTargetFieldId: string | null; +} export interface SchemaGrant { id: string | null; databaseId: string | null; @@ -340,6 +391,15 @@ export interface SchemaGrant { createdAt: string | null; updatedAt: string | null; } +export interface DefaultPrivilege { + id: string | null; + databaseId: string | null; + schemaId: string | null; + objectType: string | null; + privilege: string | null; + granteeName: string | null; + isGrant: boolean | null; +} export interface ApiSchema { id: string | null; databaseId: string | null; @@ -382,23 +442,6 @@ export interface SiteTheme { siteId: string | null; theme: unknown | null; } -export interface Procedure { - id: string | null; - databaseId: string | null; - name: string | null; - argnames: string[] | null; - argtypes: string[] | null; - argdefaults: string[] | null; - langName: string | null; - definition: string | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} export interface TriggerFunction { id: string | null; databaseId: string | null; @@ -663,7 +706,6 @@ export interface ProfilesModule { profileGrantsTableName: string | null; profileDefinitionGrantsTableId: string | null; profileDefinitionGrantsTableName: string | null; - bitlen: number | null; membershipType: number | null; entityTableId: string | null; actorTableId: string | null; @@ -806,6 +848,7 @@ export interface OrgMembership { granted: string | null; actorId: string | null; entityId: string | null; + profileId: string | null; } export interface OrgMember { id: string | null; @@ -841,6 +884,27 @@ export interface OrgGrant { createdAt: string | null; updatedAt: string | null; } +export interface OrgChartEdge { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; +} +export interface OrgChartEdgeGrant { + id: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + grantorId: string | null; + isGrant: boolean | null; + positionTitle: string | null; + positionLevel: number | null; + createdAt: string | null; +} export interface AppLimit { id: string | null; name: string | null; @@ -919,10 +983,6 @@ export interface OrgClaimedInvite { updatedAt: string | null; entityId: string | null; } -export interface AppPermissionDefault { - id: string | null; - permissions: string | null; -} export interface Ref { id: string | null; name: string | null; @@ -937,6 +997,10 @@ export interface Store { hash: string | null; createdAt: string | null; } +export interface AppPermissionDefault { + id: string | null; + permissions: string | null; +} export interface RoleType { id: number | null; name: string | null; @@ -946,16 +1010,6 @@ export interface OrgPermissionDefault { permissions: string | null; entityId: string | null; } -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} export interface CryptoAddress { id: string | null; ownerId: string | null; @@ -965,11 +1019,15 @@ export interface CryptoAddress { createdAt: string | null; updatedAt: string | null; } -export interface MembershipType { - id: number | null; +export interface AppLimitDefault { + id: string | null; name: string | null; - description: string | null; - prefix: string | null; + max: number | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: number | null; } export interface ConnectedAccount { id: string | null; @@ -991,14 +1049,11 @@ export interface PhoneNumber { createdAt: string | null; updatedAt: string | null; } -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; } export interface NodeTypeRegistry { name: string | null; @@ -1011,6 +1066,15 @@ export interface NodeTypeRegistry { createdAt: string | null; updatedAt: string | null; } +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} export interface Commit { id: string | null; message: string | null; @@ -1033,15 +1097,6 @@ export interface OrgMembershipDefault { deleteMemberCascadeGroups: boolean | null; createGroupsCascadeMembers: boolean | null; } -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} export interface AuditLog { id: string | null; event: string | null; @@ -1061,6 +1116,15 @@ export interface AppLevel { createdAt: string | null; updatedAt: string | null; } +export interface Email { + id: string | null; + ownerId: string | null; + email: ConstructiveInternalTypeEmail | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} export interface SqlMigration { id: number | null; name: string | null; @@ -1091,6 +1155,17 @@ export interface AstMigration { actionId: string | null; actorId: string | null; } +export interface User { + id: string | null; + username: string | null; + displayName: string | null; + profilePicture: ConstructiveInternalTypeImage | null; + searchTsv: string | null; + type: number | null; + createdAt: string | null; + updatedAt: string | null; + searchTsvRank: number | null; +} export interface AppMembership { id: string | null; createdAt: string | null; @@ -1107,17 +1182,7 @@ export interface AppMembership { permissions: string | null; granted: string | null; actorId: string | null; -} -export interface User { - id: string | null; - username: string | null; - displayName: string | null; - profilePicture: ConstructiveInternalTypeImage | null; - searchTsv: string | null; - type: number | null; - createdAt: string | null; - updatedAt: string | null; - searchTsvRank: number | null; + profileId: string | null; } export interface HierarchyModule { id: string | null; diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index e133ef99d..99649bb6b 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 28 -- **Custom queries:** 10 +- **Tables:** 32 +- **Custom queries:** 11 - **Custom mutations:** 2 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index a3154dc57..4269dd02c 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | @@ -29,11 +31,12 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -43,15 +46,76 @@ const db = createClient({ | `orgLimit` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.appPermission` CRUD operations for AppPermission records. @@ -315,136 +379,136 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgAdminGrant` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.orgOwnerGrant` -CRUD operations for OrgLimitDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.appLimitDefault` -CRUD operations for OrgAdminGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.orgLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -479,6 +543,43 @@ const updated = await db.membershipType.update({ where: { id: '' }, data: const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -789,9 +890,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgChartEdge` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -800,65 +901,66 @@ CRUD operations for OrgMembershipDefault records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeGroups` | Boolean | Yes | -| `createGroupsCascadeMembers` | Boolean | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLevel` +### `db.orgMembershipDefault` -CRUD operations for AppLevel records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeGroups` | Boolean | Yes | +| `createGroupsCascadeMembers` | Boolean | Yes | **Operations:** ```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -901,6 +1003,41 @@ const updated = await db.invite.update({ where: { id: '' }, data: { email const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLevel` + +CRUD operations for AppLevel records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembership` CRUD operations for AppMembership records. @@ -924,18 +1061,19 @@ CRUD operations for AppMembership records. | `permissions` | BitString | Yes | | `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -967,18 +1105,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1061,6 +1200,24 @@ orgPermissionsGetPaddedMask const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.stepsAchieved` stepsAchieved diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index 877700d3e..524d28db3 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; @@ -13,11 +15,12 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; @@ -27,9 +30,10 @@ import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgLimitModel } from './models/orgLimit'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AppLevelModel } from './models/appLevel'; import { InviteModel } from './models/invite'; +import { AppLevelModel } from './models/appLevel'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgInviteModel } from './models/orgInvite'; @@ -68,6 +72,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), appLevelRequirement: new AppLevelRequirementModel(client), @@ -76,11 +82,12 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), membershipType: new MembershipTypeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), @@ -90,9 +97,10 @@ export function createClient(config: OrmClientConfig) { orgLimit: new OrgLimitModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - appLevel: new AppLevelModel(client), invite: new InviteModel(client), + appLevel: new AppLevelModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), orgInvite: new OrgInviteModel(client), diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index aca539f61..6bc1887db 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -227,254 +227,435 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | 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; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: 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 */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; } +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Levels for achievement */ -export interface AppLevel { - id: string; - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: 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 */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -493,6 +674,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} export interface AppLevelRequirementRelations {} @@ -501,11 +684,12 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface OrgAdminGrantRelations {} export interface OrgOwnerGrantRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface MembershipTypeRelations {} +export interface OrgChartEdgeGrantRelations {} export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} @@ -515,13 +699,18 @@ export interface AppMembershipDefaultRelations {} export interface OrgLimitRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipDefaultRelations {} -export interface AppLevelRelations {} export interface InviteRelations {} +export interface AppLevelRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; @@ -532,11 +721,12 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -547,14 +737,23 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type InviteWithRelations = Invite & InviteRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -610,16 +809,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -638,12 +827,33 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; }; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -720,6 +930,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipDefaultSelect = { id?: boolean; createdAt?: boolean; @@ -731,15 +951,6 @@ export type OrgMembershipDefaultSelect = { deleteMemberCascadeGroups?: boolean; createGroupsCascadeMembers?: boolean; }; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -754,6 +965,15 @@ export type InviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -770,6 +990,7 @@ export type AppMembershipSelect = { permissions?: boolean; granted?: boolean; actorId?: boolean; + profileId?: boolean; }; export type OrgMembershipSelect = { id?: boolean; @@ -787,6 +1008,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -805,6 +1027,20 @@ export type OrgInviteSelect = { entityId?: boolean; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface AppPermissionFilter { id?: UUIDFilter; name?: StringFilter; @@ -884,22 +1120,6 @@ export interface AppOwnerGrantFilter { or?: AppOwnerGrantFilter[]; not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: AppLimitDefaultFilter[]; - or?: AppLimitDefaultFilter[]; - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: OrgLimitDefaultFilter[]; - or?: OrgLimitDefaultFilter[]; - not?: OrgLimitDefaultFilter; -} export interface OrgAdminGrantFilter { id?: UUIDFilter; isGrant?: BooleanFilter; @@ -924,6 +1144,22 @@ export interface OrgOwnerGrantFilter { or?: OrgOwnerGrantFilter[]; not?: OrgOwnerGrantFilter; } +export interface AppLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: AppLimitDefaultFilter[]; + or?: AppLimitDefaultFilter[]; + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: OrgLimitDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; + not?: OrgLimitDefaultFilter; +} export interface MembershipTypeFilter { id?: IntFilter; name?: StringFilter; @@ -933,6 +1169,20 @@ export interface MembershipTypeFilter { or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; } +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -1036,6 +1286,19 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} export interface OrgMembershipDefaultFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1050,18 +1313,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -1079,6 +1330,18 @@ export interface InviteFilter { or?: InviteFilter[]; not?: InviteFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1095,6 +1358,7 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; @@ -1115,6 +1379,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -1139,6 +1404,14 @@ export interface OrgInviteFilter { not?: OrgInviteFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface AppPermissionCondition { id?: string | null; name?: string | null; @@ -1194,16 +1467,6 @@ export interface AppOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface OrgAdminGrantCondition { id?: string | null; isGrant?: boolean | null; @@ -1222,12 +1485,33 @@ export interface OrgOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} export interface MembershipTypeCondition { id?: number | null; name?: string | null; description?: string | null; prefix?: string | null; } +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -1304,6 +1588,16 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} export interface OrgMembershipDefaultCondition { id?: string | null; createdAt?: string | null; @@ -1315,15 +1609,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface AppLevelCondition { - id?: string | null; - name?: string | null; - description?: string | null; - image?: unknown | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface InviteCondition { id?: string | null; email?: unknown | null; @@ -1338,6 +1623,15 @@ export interface InviteCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLevelCondition { + id?: string | null; + name?: string | null; + description?: string | null; + image?: unknown | null; + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -1354,6 +1648,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface OrgMembershipCondition { id?: string | null; @@ -1371,6 +1666,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgInviteCondition { id?: string | null; @@ -1389,6 +1685,22 @@ export interface OrgInviteCondition { entityId?: string | null; } // ============ 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'; export type AppPermissionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1499,27 +1811,7 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -1555,6 +1847,26 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1567,6 +1879,28 @@ export type MembershipTypeOrderBy = | 'DESCRIPTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1719,6 +2053,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; export type OrgMembershipDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1741,24 +2095,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type AppLevelOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type InviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1787,6 +2123,24 @@ export type InviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLevelOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1820,7 +2174,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1854,7 +2210,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgInviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1888,6 +2246,46 @@ export type OrgInviteOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -2066,46 +2464,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: number; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: number; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { @@ -2154,6 +2512,46 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: number; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: number; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2176,6 +2574,36 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -2390,6 +2818,32 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { @@ -2418,30 +2872,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateInviteInput { clientMutationId?: string; invite: { @@ -2476,6 +2906,30 @@ export interface DeleteInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + }; +} +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; +} +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + appLevelPatch: AppLevelPatch; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -2491,6 +2945,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -2506,6 +2961,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -2531,6 +2987,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -2546,6 +3003,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -3039,184 +3497,184 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgAdminGrantPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateOrgAdminGrantPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgAdminGrantPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteOrgAdminGrantPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateOrgOwnerGrantPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateOrgOwnerGrantPayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateMembershipTypePayload { @@ -3264,6 +3722,51 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type CreateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -3669,6 +4172,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ @@ -3714,51 +4262,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; export interface CreateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ @@ -3804,6 +4307,51 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -4052,30 +4600,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -4100,6 +4624,30 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -4112,6 +4660,18 @@ export type MembershipTypeEdgeSelect = { select: MembershipTypeSelect; }; }; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -4220,28 +4780,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: OrgChartEdgeSelect; }; }; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppLevelEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppLevelSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `Invite` edge in the connection. */ @@ -4256,6 +4816,18 @@ export type InviteEdgeSelect = { select: InviteSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts index 635d44b66..f20a6d0a4 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; export { AppLevelRequirementModel } from './appLevelRequirement'; @@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; @@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgLimitModel } from './orgLimit'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AppLevelModel } from './appLevel'; export { InviteModel } from './invite'; +export { AppLevelModel } from './appLevel'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-react/src/public/orm/models/limitFunction.ts b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdge.ts similarity index 52% rename from sdk/constructive-react/src/public/orm/models/limitFunction.ts rename to sdk/constructive-sdk/src/admin/orm/models/orgChartEdge.ts index 9df58af2a..3ff845429 100644 --- a/sdk/constructive-react/src/public/orm/models/limitFunction.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdge.ts @@ -1,5 +1,5 @@ /** - * LimitFunction model for ORM client + * OrgChartEdge model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - LimitFunction, - LimitFunctionWithRelations, - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy, - CreateLimitFunctionInput, - UpdateLimitFunctionInput, - LimitFunctionPatch, + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class LimitFunctionModel { +export class OrgChartEdgeModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - limitFunctions: ConnectionResult>; + orgChartEdges: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class LimitFunctionModel { before: args?.before, offset: args?.offset, }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - limitFunctions: { - nodes: InferSelectResult[]; + orgChartEdges: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'LimitFunction', - 'limitFunctions', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, }, - 'LimitFunctionFilter', + 'OrgChartEdgeFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - limitFunction: InferSelectResult | null; + orgChartEdge: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: { @@ -117,90 +117,90 @@ export class LimitFunctionModel { }, first: 1, }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunction', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', document, variables, transform: (data: { - limitFunctions?: { - nodes?: InferSelectResult[]; + orgChartEdges?: { + nodes?: InferSelectResult[]; }; }) => ({ - limitFunction: data.limitFunctions?.nodes?.[0] ?? null, + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createLimitFunction: { - limitFunction: InferSelectResult; + createOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'LimitFunction', - 'createLimitFunction', - 'limitFunction', + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', args.select, args.data, - 'CreateLimitFunctionInput', + 'CreateOrgChartEdgeInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'createLimitFunction', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - LimitFunctionPatch + OrgChartEdgePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateLimitFunction: { - limitFunction: InferSelectResult; + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'LimitFunction', - 'updateLimitFunction', - 'limitFunction', + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', args.select, args.where.id, args.data, - 'UpdateLimitFunctionInput', + 'UpdateOrgChartEdgeInput', 'id', - 'limitFunctionPatch', + 'orgChartEdgePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'updateLimitFunction', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class LimitFunctionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteLimitFunction: { - limitFunction: InferSelectResult; + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'LimitFunction', - 'deleteLimitFunction', - 'limitFunction', + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', args.where.id, - 'DeleteLimitFunctionInput', + 'DeleteOrgChartEdgeInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class LimitFunctionModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'deleteLimitFunction', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', document, variables, }); diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant 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 { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + 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, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord 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 { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + 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, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord 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 { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + 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, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index 58c216770..db637075c 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -18,6 +18,12 @@ export interface AppPermissionsGetPaddedMaskVariables { export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface StepsAchievedVariables { vlevel?: string; vroleId?: string; @@ -131,6 +137,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), stepsAchieved: ( args: StepsAchievedVariables, options?: { diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md deleted file mode 100644 index eb070a028..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimitDefault - - - -ORM operations for AppLimitDefault records - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md b/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md deleted file mode 100644 index 07e8f9763..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembership - - - -ORM operations for AppMembership records - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md deleted file mode 100644 index ceca5548f..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index c3f40dddc..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index accce0eed..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md deleted file mode 100644 index 3d5de6b3b..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-claimedInvite - - - -ORM operations for ClaimedInvite records - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md deleted file mode 100644 index 2aadbafd3..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMember - - - -ORM operations for OrgMember records - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md b/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md deleted file mode 100644 index 0ceff0ee1..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 8b32eca79..19b4a6b78 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -25,8 +25,8 @@ const db = createClient({ | `cryptoAddress` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations @@ -168,75 +168,75 @@ const updated = await db.connectedAccount.update({ where: { id: '' }, dat const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.auditLog` -CRUD operations for Email records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.email` -CRUD operations for AuditLog records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` ### `db.user` diff --git a/sdk/constructive-sdk/src/auth/orm/index.ts b/sdk/constructive-sdk/src/auth/orm/index.ts index da3c30436..3718b175a 100644 --- a/sdk/constructive-sdk/src/auth/orm/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/index.ts @@ -9,8 +9,8 @@ import { RoleTypeModel } from './models/roleType'; import { CryptoAddressModel } from './models/cryptoAddress'; import { PhoneNumberModel } from './models/phoneNumber'; import { ConnectedAccountModel } from './models/connectedAccount'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; +import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -51,8 +51,8 @@ export function createClient(config: OrmClientConfig) { cryptoAddress: new CryptoAddressModel(client), phoneNumber: new PhoneNumberModel(client), connectedAccount: new ConnectedAccountModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), + email: new EmailModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index eaf804378..4cc717c63 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -232,25 +232,35 @@ export interface RoleType { id: number; name?: string | null; } +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -260,29 +270,42 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface User { id: string; username?: string | null; @@ -318,12 +341,12 @@ export interface PhoneNumberRelations { export interface ConnectedAccountRelations { owner?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface UserRelations { roleType?: RoleType | null; } @@ -332,8 +355,8 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ export type RoleTypeSelect = { @@ -378,18 +401,6 @@ export type ConnectedAccountSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -403,6 +414,18 @@ export type AuditLogSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -463,18 +486,6 @@ export interface ConnectedAccountFilter { or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -488,6 +499,18 @@ export interface AuditLogFilter { or?: AuditLogFilter[]; not?: AuditLogFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -536,15 +559,6 @@ export interface ConnectedAccountCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -555,6 +569,15 @@ export interface AuditLogCondition { success?: boolean | null; createdAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface UserCondition { id?: string | null; username?: string | null; @@ -633,24 +656,6 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -671,6 +676,24 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type UserOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -788,30 +811,6 @@ export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -840,6 +839,30 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateUserInput { clientMutationId?: string; user: { @@ -1283,51 +1306,6 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -1373,6 +1351,51 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -1476,18 +1499,30 @@ export type ExtendTokenExpiresRecordSelect = { sessionId?: boolean; expiresAt?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -1556,18 +1591,6 @@ export type ConnectedAccountEdgeSelect = { select: ConnectedAccountSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -1580,6 +1603,18 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/auth/orm/models/index.ts b/sdk/constructive-sdk/src/auth/orm/models/index.ts index f0e6c6b1f..67ded861a 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/index.ts @@ -7,6 +7,6 @@ export { RoleTypeModel } from './roleType'; export { CryptoAddressModel } from './cryptoAddress'; export { PhoneNumberModel } from './phoneNumber'; export { ConnectedAccountModel } from './connectedAccount'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; +export { EmailModel } from './email'; export { UserModel } from './user'; diff --git a/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md b/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md deleted file mode 100644 index d7eed269a..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-auditLog - - - -ORM operations for AuditLog records - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md deleted file mode 100644 index 1c5c3d8ba..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: '' }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md b/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md deleted file mode 100644 index 4d76c3194..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: '' }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md b/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md deleted file mode 100644 index ff7e10281..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccount - - - -ORM operations for ConnectedAccount records - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md deleted file mode 100644 index ca907fcb4..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md deleted file mode 100644 index c27ebc8c5..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md b/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md deleted file mode 100644 index 2a77480fa..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumber - - - -ORM operations for PhoneNumber records - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signIn.md b/sdk/constructive-sdk/src/auth/orm/skills/signIn.md deleted file mode 100644 index d49334136..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/signIn.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signOut.md b/sdk/constructive-sdk/src/auth/orm/skills/signOut.md deleted file mode 100644 index 7ada67374..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/signOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/commit.md b/sdk/constructive-sdk/src/objects/orm/skills/commit.md deleted file mode 100644 index 85ded9d62..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md b/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md deleted file mode 100644 index b3f195547..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: '' }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md b/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md deleted file mode 100644 index 9c61daad2..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md deleted file mode 100644 index 2e9db15a0..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/object.md b/sdk/constructive-sdk/src/objects/orm/skills/object.md deleted file mode 100644 index e006a0b5a..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md deleted file mode 100644 index 116c41c0a..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md deleted file mode 100644 index 7f09dab97..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: '' }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md deleted file mode 100644 index d1a7bbf95..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 21d586f6c..c3a4634e2 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 99 -- **Custom queries:** 18 +- **Tables:** 104 +- **Custom queries:** 19 - **Custom mutations:** 31 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index e7b901054..dbb346bd5 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -34,7 +36,6 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `limitFunction` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -46,14 +47,16 @@ const db = createClient({ | `viewRule` | findMany, findOne, create, update, delete | | `tableModule` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | -| `procedure` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | @@ -89,6 +92,8 @@ const db = createClient({ | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -97,32 +102,92 @@ const db = createClient({ | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.getAllRecord` CRUD operations for GetAllRecord records. @@ -638,42 +703,6 @@ const updated = await db.index.update({ where: { id: '' }, data: { databa const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` -### `db.limitFunction` - -CRUD operations for LimitFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `data` | JSON | Yes | -| `security` | Int | Yes | - -**Operations:** - -```typescript -// List all limitFunction records -const items = await db.limitFunction.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Get one by id -const item = await db.limitFunction.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Create -const created = await db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitFunction.delete({ where: { id: '' } }).execute(); -``` - ### `db.policy` CRUD operations for Policy records. @@ -686,7 +715,7 @@ CRUD operations for Policy records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `name` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `permissive` | Boolean | Yes | | `disabled` | Boolean | Yes | @@ -704,13 +733,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, roleName: 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, module: 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, roleName: 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, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -772,8 +801,9 @@ CRUD operations for TableGrant records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `privilege` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -781,13 +811,13 @@ CRUD operations for TableGrant records. ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -966,21 +996,22 @@ CRUD operations for ViewGrant records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1033,9 +1064,11 @@ CRUD operations for TableModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `tableName` | String | Yes | | `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | | `data` | JSON | Yes | | `fields` | UUID | Yes | @@ -1043,13 +1076,13 @@ CRUD operations for TableModule records. ```typescript // List all tableModule records -const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Get one by id -const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Create -const created = await db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute(); +const created = await db.tableModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1095,6 +1128,107 @@ const updated = await db.tableTemplateModule.update({ where: { id: '' }, const deleted = await db.tableTemplateModule.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 | +| `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | 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, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: 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, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', 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.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `nodeType` | String | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | + +**Operations:** + +```typescript +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Get one by id +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Create +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1129,6 +1263,41 @@ const updated = await db.schemaGrant.update({ where: { id: '' }, data: { const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -1327,49 +1496,6 @@ const updated = await db.siteTheme.update({ where: { id: '' }, data: { da const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` -### `db.procedure` - -CRUD operations for Procedure records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `argnames` | String | Yes | -| `argtypes` | String | Yes | -| `argdefaults` | String | Yes | -| `langName` | String | Yes | -| `definition` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all procedure records -const items = await db.procedure.findMany({ select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.procedure.findOne({ id: '', select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.procedure.delete({ where: { id: '' } }).execute(); -``` - ### `db.triggerFunction` CRUD operations for TriggerFunction records. @@ -2135,7 +2261,6 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | -| `bitlen` | Int | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2147,13 +2272,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, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2564,18 +2689,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -2722,6 +2848,79 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdge` + +CRUD operations for OrgChartEdge records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | + +**Operations:** + +```typescript +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Create +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -3008,39 +3207,42 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, dat const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.ref` -CRUD operations for AppPermissionDefault records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -3049,59 +3251,56 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appPermissionDefault` -CRUD operations for Store records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -3165,40 +3364,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.cryptoAddress` -CRUD operations for AppLimitDefault records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3211,87 +3414,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgLimitDefault` -CRUD operations for CryptoAddress records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -3366,39 +3533,36 @@ const updated = await db.phoneNumber.update({ where: { id: '' }, data: { const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3438,6 +3602,41 @@ const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, d const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` +### `db.appMembershipDefault` + +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.commit` CRUD operations for Commit records. @@ -3512,41 +3711,6 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - ### `db.auditLog` CRUD operations for AuditLog records. @@ -3618,6 +3782,41 @@ const updated = await db.appLevel.update({ where: { id: '' }, data: { nam const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` +### `db.email` + +CRUD operations for Email records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.email.delete({ where: { id: '' } }).execute(); +``` + ### `db.sqlMigration` CRUD operations for SqlMigration records. @@ -3700,84 +3899,85 @@ const updated = await db.astMigration.update({ where: { id: '' }, data: { const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.user` -CRUD operations for AppMembership records. +CRUD operations for User records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `username` | String | Yes | +| `displayName` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `searchTsv` | FullText | Yes | +| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | +| `searchTsvRank` | Float | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +// List all user records +const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` -### `db.user` +### `db.appMembership` -CRUD operations for User records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -3926,6 +4126,24 @@ revParse const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.appPermissionsGetMask` appPermissionsGetMask diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index 5bdb26031..238fd616e 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -18,7 +20,6 @@ import { FieldModel } from './models/field'; import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { IndexModel } from './models/index'; -import { LimitFunctionModel } from './models/limitFunction'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { TableGrantModel } from './models/tableGrant'; @@ -30,14 +31,16 @@ import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; import { TableModuleModel } from './models/tableModule'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; -import { ProcedureModel } from './models/procedure'; import { TriggerFunctionModel } from './models/triggerFunction'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; @@ -73,6 +76,8 @@ import { OrgMemberModel } from './models/orgMember'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; @@ -81,28 +86,28 @@ import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RoleTypeModel } from './models/roleType'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { MembershipTypeModel } from './models/membershipType'; import { ConnectedAccountModel } from './models/connectedAccount'; import { PhoneNumberModel } from './models/phoneNumber'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { CommitModel } from './models/commit'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; import { SqlMigrationModel } from './models/sqlMigration'; import { AstMigrationModel } from './models/astMigration'; -import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; +import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -139,6 +144,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -152,7 +159,6 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), index: new IndexModel(client), - limitFunction: new LimitFunctionModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), tableGrant: new TableGrantModel(client), @@ -164,14 +170,16 @@ export function createClient(config: OrmClientConfig) { viewRule: new ViewRuleModel(client), tableModule: new TableModuleModel(client), tableTemplateModule: new TableTemplateModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), - procedure: new ProcedureModel(client), triggerFunction: new TriggerFunctionModel(client), api: new ApiModel(client), site: new SiteModel(client), @@ -207,6 +215,8 @@ export function createClient(config: OrmClientConfig) { orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), @@ -215,28 +225,28 @@ export function createClient(config: OrmClientConfig) { claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), ref: new RefModel(client), store: new StoreModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), roleType: new RoleTypeModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + cryptoAddress: new CryptoAddressModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), - membershipType: new MembershipTypeModel(client), connectedAccount: new ConnectedAccountModel(client), phoneNumber: new PhoneNumberModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), commit: new CommitModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), appLevel: new AppLevelModel(client), + email: new EmailModel(client), sqlMigration: new SqlMigrationModel(client), astMigration: new AstMigrationModel(client), - appMembership: new AppMembershipModel(client), user: new UserModel(client), + appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 392f8060e..f3a162c68 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -233,22 +233,40 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecord { path?: string | null; data?: Record | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } export interface Object { @@ -261,13 +279,18 @@ export interface Object { frzn?: boolean | null; createdAt?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -411,22 +434,12 @@ export interface Index { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunction { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} export interface Policy { id: string; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -460,8 +473,9 @@ export interface TableGrant { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -525,9 +539,10 @@ export interface ViewGrant { id: string; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -543,9 +558,11 @@ export interface ViewRule { export interface TableModule { id: string; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -560,6 +577,178 @@ export interface TableTemplateModule { nodeType?: string | null; data?: Record | null; } +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. 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; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string | 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 policy_type is provided. Defaults to true. */ + useRls?: boolean | null; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: Record | null; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string | null; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: Record | null; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string | null; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string | null; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string | null; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean | null; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string | null; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: 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 generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string | null; +} +/** + * 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. + */ +export interface RelationProvision { + /** 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 | null; + /** + * The type of relation to create. Uses SuperCase naming matching the node_type_registry: + * - 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** 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 | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string | null; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: Record | null; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record | null; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string | null; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string | null; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string | null; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean | null; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string | null; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: Record | null; + /** 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 | null; + /** 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 | null; + /** 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 | null; + /** 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 SchemaGrant { id: string; databaseId?: string | null; @@ -568,65 +757,93 @@ export interface SchemaGrant { createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Metaschema schema being exposed through the API */ schemaId?: string | null; + /** API that exposes this schema */ apiId?: string | null; } +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ export interface ApiModule { + /** Unique identifier for this API module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** API this module configuration belongs to */ apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { + /** Unique identifier for this domain record */ id: string; + /** Reference to the metaschema database this domain belongs to */ databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ siteId?: string | null; + /** Subdomain portion of the hostname */ subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname | null; } +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ export interface SiteMetadatum { + /** Unique identifier for this metadata record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this metadata belongs to */ siteId?: string | null; + /** Page title for SEO (max 120 characters) */ title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ description?: string | null; + /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; } +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { + /** Unique identifier for this site module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this module configuration belongs to */ siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { + /** Unique identifier for this theme record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this theme belongs to */ siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ theme?: Record | null; } -export interface Procedure { - id: string; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunction { id: string; databaseId?: string | null; @@ -635,35 +852,63 @@ export interface TriggerFunction { createdAt?: string | null; updatedAt?: string | null; } +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { + /** Unique identifier for this API */ id: string; + /** Reference to the metaschema database this API serves */ databaseId?: string | null; + /** Unique name for this API within its database */ name?: string | null; + /** PostgreSQL database name to connect to */ dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; } +/** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { + /** Unique identifier for this site */ id: string; + /** Reference to the metaschema database this site belongs to */ databaseId?: string | null; + /** Display title for the site (max 120 characters) */ title?: string | null; + /** Short description of the site (max 120 characters) */ description?: string | null; + /** Open Graph image used for social media link previews */ ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ dbname?: string | null; } +/** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { + /** Unique identifier for this app */ id: string; + /** Reference to the metaschema database this app belongs to */ databaseId?: string | null; + /** Site this app is associated with (one app per site) */ siteId?: string | null; + /** Display name of the app */ name?: string | null; + /** App icon or promotional image */ appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; } export interface ConnectedAccountsModule { @@ -891,7 +1136,6 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1003,166 +1247,280 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: 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 */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: 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; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: 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; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** 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 */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: 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; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefault { - id: string; - permissions?: string | null; -} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -1185,40 +1543,54 @@ export interface Store { hash?: string | null; createdAt?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} export interface RoleType { id: number; name?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipType { - id: number; +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ name?: string | null; - description?: string | null; - prefix?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -1228,28 +1600,36 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; } /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { @@ -1257,7 +1637,7 @@ export interface NodeTypeRegistry { name?: string | null; /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ slug?: string | null; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ category?: string | null; /** Human-readable display name for UI */ displayName?: string | null; @@ -1270,6 +1650,18 @@ export interface NodeTypeRegistry { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -1289,43 +1681,64 @@ export interface Commit { treeId?: string | null; date?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Levels for achievement */ +/** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { id: string; + /** Unique name of the level */ name?: string | null; + /** Human-readable description of what this level represents */ description?: string | null; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -1359,34 +1772,46 @@ export interface AstMigration { actionId?: string | null; actorId?: string | null; } +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ + searchTsvRank?: number | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModule { id: string; @@ -1423,6 +1848,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -1438,10 +1865,8 @@ export interface DatabaseRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; - procedures?: ConnectionResult; schemaGrants?: ConnectionResult; tableGrants?: ConnectionResult; triggerFunctions?: ConnectionResult; @@ -1450,6 +1875,7 @@ export interface DatabaseRelations { views?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -1483,6 +1909,8 @@ export interface DatabaseRelations { usersModules?: ConnectionResult; uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisions?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -1490,6 +1918,7 @@ export interface SchemaRelations { tables?: ConnectionResult
; schemaGrants?: ConnectionResult; views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -1503,7 +1932,6 @@ export interface TableRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; tableGrants?: ConnectionResult; @@ -1514,6 +1942,9 @@ export interface TableRelations { tableModules?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisionsBySourceTableId?: ConnectionResult; + relationProvisionsByTargetTableId?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -1536,10 +1967,6 @@ export interface IndexRelations { database?: Database | null; table?: Table | null; } -export interface LimitFunctionRelations { - database?: Database | null; - table?: Table | null; -} export interface PolicyRelations { database?: Database | null; table?: Table | null; @@ -1582,7 +2009,7 @@ export interface ViewRuleRelations { } export interface TableModuleRelations { database?: Database | null; - privateSchema?: Schema | null; + schema?: Schema | null; table?: Table | null; } export interface TableTemplateModuleRelations { @@ -1592,10 +2019,24 @@ export interface TableTemplateModuleRelations { schema?: Schema | null; table?: Table | null; } +export interface SecureTableProvisionRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface RelationProvisionRelations { + database?: Database | null; + sourceTable?: Table | null; + targetTable?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; } +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1622,9 +2063,6 @@ export interface SiteThemeRelations { database?: Database | null; site?: Site | null; } -export interface ProcedureRelations { - database?: Database | null; -} export interface TriggerFunctionRelations { database?: Database | null; } @@ -1858,6 +2296,17 @@ export interface OrgGrantRelations { entity?: User | null; grantor?: User | null; } +export interface OrgChartEdgeRelations { + child?: User | null; + entity?: User | null; + parent?: User | null; +} +export interface OrgChartEdgeGrantRelations { + child?: User | null; + entity?: User | null; + grantor?: User | null; + parent?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -1888,45 +2337,42 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AppPermissionDefaultRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface AppPermissionDefaultRelations {} export interface RoleTypeRelations {} export interface OrgPermissionDefaultRelations { entity?: User | null; } -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface CryptoAddressRelations { owner?: User | null; } -export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface ConnectedAccountRelations { owner?: User | null; } export interface PhoneNumberRelations { owner?: User | null; } -export interface AppMembershipDefaultRelations {} +export interface MembershipTypeRelations {} export interface NodeTypeRegistryRelations {} +export interface AppMembershipDefaultRelations {} export interface CommitRelations {} export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } export interface AppLevelRelations { owner?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface SqlMigrationRelations {} export interface AstMigrationRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -1945,6 +2391,13 @@ export interface UserRelations { orgOwnerGrantsByGrantorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; + parentOrgChartEdges?: ConnectionResult; + orgChartEdgesByEntityId?: ConnectionResult; + childOrgChartEdges?: ConnectionResult; + parentOrgChartEdgeGrants?: ConnectionResult; + orgChartEdgeGrantsByEntityId?: ConnectionResult; + orgChartEdgeGrantsByGrantorId?: ConnectionResult; + childOrgChartEdgeGrants?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; @@ -1958,6 +2411,9 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; } +export interface AppMembershipRelations { + actor?: User | null; +} export interface HierarchyModuleRelations { chartEdgeGrantsTable?: Table | null; chartEdgesTable?: Table | null; @@ -1969,6 +2425,10 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -1983,7 +2443,6 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type IndexWithRelations = Index & IndexRelations; -export type LimitFunctionWithRelations = LimitFunction & LimitFunctionRelations; export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; @@ -1996,14 +2455,17 @@ export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type TableModuleWithRelations = TableModule & TableModuleRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type ProcedureWithRelations = Procedure & ProcedureRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; @@ -2045,6 +2507,8 @@ export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -2053,34 +2517,42 @@ export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type CommitWithRelations = Commit & CommitRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type UserWithRelations = User & UserRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; @@ -2176,12 +2648,6 @@ export type DatabaseSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2194,12 +2660,6 @@ export type DatabaseSelect = { filter?: PrimaryKeyConstraintFilter; orderBy?: PrimaryKeyConstraintOrderBy[]; }; - procedures?: { - select: ProcedureSelect; - first?: number; - filter?: ProcedureFilter; - orderBy?: ProcedureOrderBy[]; - }; schemaGrants?: { select: SchemaGrantSelect; first?: number; @@ -2248,6 +2708,12 @@ export type DatabaseSelect = { filter?: ViewRuleFilter; orderBy?: ViewRuleOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -2446,10 +2912,22 @@ export type DatabaseSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; + secureTableProvisions?: { + select: SecureTableProvisionSelect; first?: number; - filter?: DatabaseProvisionModuleFilter; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisions?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + databaseProvisionModules?: { + select: DatabaseProvisionModuleSelect; + first?: number; + filter?: DatabaseProvisionModuleFilter; orderBy?: DatabaseProvisionModuleOrderBy[]; }; }; @@ -2489,6 +2967,12 @@ export type SchemaSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -2567,12 +3051,6 @@ export type TableSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2633,6 +3111,24 @@ export type TableSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; + secureTableProvisions?: { + select: SecureTableProvisionSelect; + first?: number; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisionsBySourceTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + relationProvisionsByTargetTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -2759,28 +3255,12 @@ export type IndexSelect = { select: TableSelect; }; }; -export type LimitFunctionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - data?: boolean; - security?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; export type PolicySelect = { id?: boolean; databaseId?: boolean; tableId?: boolean; name?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; permissive?: boolean; disabled?: boolean; @@ -2826,8 +3306,9 @@ export type TableGrantSelect = { databaseId?: boolean; tableId?: boolean; privilege?: boolean; - roleName?: boolean; + granteeName?: boolean; fieldIds?: boolean; + isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; database?: { @@ -2941,9 +3422,10 @@ export type ViewGrantSelect = { id?: boolean; databaseId?: boolean; viewId?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; withGrantOption?: boolean; + isGrant?: boolean; database?: { select: DatabaseSelect; }; @@ -2968,15 +3450,17 @@ export type ViewRuleSelect = { export type TableModuleSelect = { id?: boolean; databaseId?: boolean; - privateSchemaId?: boolean; + schemaId?: boolean; tableId?: boolean; + tableName?: boolean; nodeType?: boolean; + useRls?: boolean; data?: boolean; fields?: boolean; database?: { select: DatabaseSelect; }; - privateSchema?: { + schema?: { select: SchemaSelect; }; table?: { @@ -3009,6 +3493,73 @@ export type TableTemplateModuleSelect = { select: TableSelect; }; }; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodeType?: boolean; + useRls?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFields?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + nodeType?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; + database?: { + select: DatabaseSelect; + }; + sourceTable?: { + select: TableSelect; + }; + targetTable?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -3023,6 +3574,21 @@ export type SchemaGrantSelect = { select: SchemaSelect; }; }; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; export type ApiSchemaSelect = { id?: boolean; databaseId?: boolean; @@ -3107,26 +3673,6 @@ export type SiteThemeSelect = { select: SiteSelect; }; }; -export type ProcedureSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - argnames?: boolean; - argtypes?: boolean; - argdefaults?: boolean; - langName?: boolean; - definition?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type TriggerFunctionSelect = { id?: boolean; databaseId?: boolean; @@ -3718,7 +4264,6 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; - bitlen?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -4005,6 +4550,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; actor?: { select: UserSelect; }; @@ -4079,6 +4625,48 @@ export type OrgGrantSelect = { select: UserSelect; }; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -4199,10 +4787,6 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -4217,6 +4801,10 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; export type RoleTypeSelect = { id?: boolean; name?: boolean; @@ -4229,16 +4817,6 @@ export type OrgPermissionDefaultSelect = { select: UserSelect; }; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type CryptoAddressSelect = { id?: boolean; ownerId?: boolean; @@ -4251,11 +4829,15 @@ export type CryptoAddressSelect = { select: UserSelect; }; }; -export type MembershipTypeSelect = { +export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; }; export type ConnectedAccountSelect = { id?: boolean; @@ -4283,14 +4865,11 @@ export type PhoneNumberSelect = { select: UserSelect; }; }; -export type AppMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; }; export type NodeTypeRegistrySelect = { name?: boolean; @@ -4303,6 +4882,15 @@ export type NodeTypeRegistrySelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -4328,18 +4916,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -4365,6 +4941,18 @@ export type AppLevelSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -4395,26 +4983,6 @@ export type AstMigrationSelect = { actionId?: boolean; actorId?: boolean; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type UserSelect = { id?: boolean; username?: boolean; @@ -4518,6 +5086,48 @@ export type UserSelect = { filter?: OrgGrantFilter; orderBy?: OrgGrantOrderBy[]; }; + parentOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + orgChartEdgesByEntityId?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + childOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + parentOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByEntityId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByGrantorId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + childOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -4591,23 +5201,44 @@ export type UserSelect = { orderBy?: OrgClaimedInviteOrderBy[]; }; }; -export type HierarchyModuleSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; @@ -4638,6 +5269,20 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface GetAllRecordFilter { path?: StringFilter; data?: JSONFilter; @@ -4854,25 +5499,12 @@ export interface IndexFilter { or?: IndexFilter[]; not?: IndexFilter; } -export interface LimitFunctionFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - label?: StringFilter; - description?: StringFilter; - data?: JSONFilter; - security?: IntFilter; - and?: LimitFunctionFilter[]; - or?: LimitFunctionFilter[]; - not?: LimitFunctionFilter; -} export interface PolicyFilter { id?: UUIDFilter; databaseId?: UUIDFilter; tableId?: UUIDFilter; name?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; permissive?: BooleanFilter; disabled?: BooleanFilter; @@ -4912,8 +5544,9 @@ export interface TableGrantFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; privilege?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; fieldIds?: UUIDFilter; + isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; and?: TableGrantFilter[]; @@ -4991,9 +5624,10 @@ export interface ViewGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; viewId?: UUIDFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; withGrantOption?: BooleanFilter; + isGrant?: BooleanFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -5012,9 +5646,11 @@ export interface ViewRuleFilter { export interface TableModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; - privateSchemaId?: UUIDFilter; + schemaId?: UUIDFilter; tableId?: UUIDFilter; + tableName?: StringFilter; nodeType?: StringFilter; + useRls?: BooleanFilter; data?: JSONFilter; fields?: UUIDFilter; and?: TableModuleFilter[]; @@ -5035,6 +5671,61 @@ export interface TableTemplateModuleFilter { or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; } +export interface SecureTableProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + nodeType?: StringFilter; + useRls?: BooleanFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFields?: UUIDFilter; + and?: SecureTableProvisionFilter[]; + or?: SecureTableProvisionFilter[]; + not?: SecureTableProvisionFilter; +} +export interface RelationProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + relationType?: StringFilter; + sourceTableId?: UUIDFilter; + targetTableId?: UUIDFilter; + fieldName?: StringFilter; + deleteAction?: StringFilter; + isRequired?: BooleanFilter; + junctionTableId?: UUIDFilter; + junctionTableName?: StringFilter; + junctionSchemaId?: UUIDFilter; + sourceFieldName?: StringFilter; + targetFieldName?: StringFilter; + useCompositeKey?: BooleanFilter; + nodeType?: StringFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFieldId?: UUIDFilter; + outJunctionTableId?: UUIDFilter; + outSourceFieldId?: UUIDFilter; + outTargetFieldId?: UUIDFilter; + and?: RelationProvisionFilter[]; + or?: RelationProvisionFilter[]; + not?: RelationProvisionFilter; +} export interface SchemaGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5046,6 +5737,18 @@ export interface SchemaGrantFilter { or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; } +export interface DefaultPrivilegeFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + objectType?: StringFilter; + privilege?: StringFilter; + granteeName?: StringFilter; + isGrant?: BooleanFilter; + and?: DefaultPrivilegeFilter[]; + or?: DefaultPrivilegeFilter[]; + not?: DefaultPrivilegeFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5106,26 +5809,6 @@ export interface SiteThemeFilter { or?: SiteThemeFilter[]; not?: SiteThemeFilter; } -export interface ProcedureFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - argnames?: StringFilter; - argtypes?: StringFilter; - argdefaults?: StringFilter; - langName?: StringFilter; - definition?: StringFilter; - smartTags?: JSONFilter; - category?: StringFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ProcedureFilter[]; - or?: ProcedureFilter[]; - not?: ProcedureFilter; -} export interface TriggerFunctionFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5447,7 +6130,6 @@ export interface ProfilesModuleFilter { profileGrantsTableName?: StringFilter; profileDefinitionGrantsTableId?: UUIDFilter; profileDefinitionGrantsTableName?: StringFilter; - bitlen?: IntFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; @@ -5623,6 +6305,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -5673,6 +6356,33 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -5775,13 +6485,6 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } -export interface AppPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - and?: AppPermissionDefaultFilter[]; - or?: AppPermissionDefaultFilter[]; - not?: AppPermissionDefaultFilter; -} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; @@ -5802,6 +6505,13 @@ export interface StoreFilter { or?: StoreFilter[]; not?: StoreFilter; } +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -5817,6 +6527,18 @@ export interface OrgPermissionDefaultFilter { or?: OrgPermissionDefaultFilter[]; not?: OrgPermissionDefaultFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -5833,27 +6555,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface MembershipTypeFilter { - id?: IntFilter; - name?: StringFilter; - description?: StringFilter; - prefix?: StringFilter; - and?: MembershipTypeFilter[]; - or?: MembershipTypeFilter[]; - not?: MembershipTypeFilter; -} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -5880,17 +6581,14 @@ export interface PhoneNumberFilter { or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } -export interface AppMembershipDefaultFilter { - id?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - createdBy?: UUIDFilter; - updatedBy?: UUIDFilter; - isApproved?: BooleanFilter; - isVerified?: BooleanFilter; - and?: AppMembershipDefaultFilter[]; - or?: AppMembershipDefaultFilter[]; - not?: AppMembershipDefaultFilter; +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; } export interface NodeTypeRegistryFilter { name?: StringFilter; @@ -5906,6 +6604,18 @@ export interface NodeTypeRegistryFilter { or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; } +export interface AppMembershipDefaultFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isVerified?: BooleanFilter; + and?: AppMembershipDefaultFilter[]; + or?: AppMembershipDefaultFilter[]; + not?: AppMembershipDefaultFilter; +} export interface CommitFilter { id?: UUIDFilter; message?: StringFilter; @@ -5934,18 +6644,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -5971,6 +6669,18 @@ export interface AppLevelFilter { or?: AppLevelFilter[]; not?: AppLevelFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; @@ -6007,6 +6717,20 @@ export interface AstMigrationFilter { or?: AstMigrationFilter[]; not?: AstMigrationFilter; } +export interface UserFilter { + id?: UUIDFilter; + username?: StringFilter; + displayName?: StringFilter; + profilePicture?: StringFilter; + searchTsv?: FullTextFilter; + type?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + searchTsvRank?: FloatFilter; + and?: UserFilter[]; + or?: UserFilter[]; + not?: UserFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -6023,24 +6747,11 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; } -export interface UserFilter { - id?: UUIDFilter; - username?: StringFilter; - displayName?: StringFilter; - profilePicture?: StringFilter; - searchTsv?: FullTextFilter; - type?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - searchTsvRank?: FloatFilter; - and?: UserFilter[]; - or?: UserFilter[]; - not?: UserFilter; -} export interface HierarchyModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6067,6 +6778,14 @@ export interface HierarchyModuleFilter { not?: HierarchyModuleFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecordCondition { path?: string | null; data?: unknown | null; @@ -6244,22 +6963,12 @@ export interface IndexCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunctionCondition { - id?: string | null; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: unknown | null; - security?: number | null; -} export interface PolicyCondition { id?: string | null; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -6293,8 +7002,9 @@ export interface TableGrantCondition { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -6357,9 +7067,10 @@ export interface ViewGrantCondition { id?: string | null; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface ViewRuleCondition { id?: string | null; @@ -6372,9 +7083,11 @@ export interface ViewRuleCondition { export interface TableModuleCondition { id?: string | null; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: unknown | null; fields?: string | null; } @@ -6389,14 +7102,72 @@ export interface TableTemplateModuleCondition { nodeType?: string | null; data?: unknown | null; } -export interface SchemaGrantCondition { +export interface SecureTableProvisionCondition { id?: string | null; databaseId?: string | null; schemaId?: string | null; - granteeName?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFields?: string | null; +} +export interface RelationProvisionCondition { + id?: string | null; + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface SchemaGrantCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilegeCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} export interface ApiSchemaCondition { id?: string | null; databaseId?: string | null; @@ -6439,23 +7210,6 @@ export interface SiteThemeCondition { siteId?: string | null; theme?: unknown | null; } -export interface ProcedureCondition { - id?: string | null; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: unknown | null; - category?: unknown | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunctionCondition { id?: string | null; databaseId?: string | null; @@ -6720,7 +7474,6 @@ export interface ProfilesModuleCondition { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -6863,6 +7616,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgMemberCondition { id?: string | null; @@ -6898,6 +7652,27 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -6976,10 +7751,6 @@ export interface OrgClaimedInviteCondition { updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefaultCondition { - id?: string | null; - permissions?: string | null; -} export interface RefCondition { id?: string | null; name?: string | null; @@ -6994,6 +7765,10 @@ export interface StoreCondition { hash?: string | null; createdAt?: string | null; } +export interface AppPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; +} export interface RoleTypeCondition { id?: number | null; name?: string | null; @@ -7003,16 +7778,6 @@ export interface OrgPermissionDefaultCondition { permissions?: string | null; entityId?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface CryptoAddressCondition { id?: string | null; ownerId?: string | null; @@ -7022,11 +7787,15 @@ export interface CryptoAddressCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipTypeCondition { - id?: number | null; +export interface AppLimitDefaultCondition { + id?: string | null; name?: string | null; - description?: string | null; - prefix?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; } export interface ConnectedAccountCondition { id?: string | null; @@ -7048,14 +7817,11 @@ export interface PhoneNumberCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefaultCondition { - id?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypeCondition { + id?: number | null; + name?: string | null; + description?: string | null; + prefix?: string | null; } export interface NodeTypeRegistryCondition { name?: string | null; @@ -7068,6 +7834,15 @@ export interface NodeTypeRegistryCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppMembershipDefaultCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} export interface CommitCondition { id?: string | null; message?: string | null; @@ -7090,15 +7865,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -7118,6 +7884,15 @@ export interface AppLevelCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface SqlMigrationCondition { id?: number | null; name?: string | null; @@ -7148,6 +7923,17 @@ export interface AstMigrationCondition { actionId?: string | null; actorId?: string | null; } +export interface UserCondition { + id?: string | null; + username?: string | null; + displayName?: string | null; + profilePicture?: unknown | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + searchTsvRank?: number | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -7164,17 +7950,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; -} -export interface UserCondition { - id?: string | null; - username?: string | null; - displayName?: string | null; - profilePicture?: unknown | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModuleCondition { id?: string | null; @@ -7199,6 +7975,22 @@ export interface HierarchyModuleCondition { createdAt?: string | null; } // ============ 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'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7553,26 +8345,6 @@ export type IndexOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type LimitFunctionOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SECURITY_ASC' - | 'SECURITY_DESC'; export type PolicyOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7585,8 +8357,8 @@ export type PolicyOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'PERMISSIVE_ASC' @@ -7653,10 +8425,12 @@ export type TableGrantOrderBy = | 'TABLE_ID_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'FIELD_IDS_ASC' | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -7781,12 +8555,14 @@ export type ViewGrantOrderBy = | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC'; + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7811,12 +8587,16 @@ export type TableModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'FIELDS_ASC' @@ -7843,6 +8623,104 @@ export type TableTemplateModuleOrderBy = | 'NODE_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type SecureTableProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type RelationProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_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' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_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'; export type SchemaGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7859,6 +8737,24 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ApiSchemaOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7943,40 +8839,6 @@ export type SiteThemeOrderBy = | 'SITE_ID_DESC' | 'THEME_ASC' | 'THEME_DESC'; -export type ProcedureOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ARGNAMES_ASC' - | 'ARGNAMES_DESC' - | 'ARGTYPES_ASC' - | 'ARGTYPES_DESC' - | 'ARGDEFAULTS_ASC' - | 'ARGDEFAULTS_DESC' - | 'LANG_NAME_ASC' - | 'LANG_NAME_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type TriggerFunctionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8507,8 +9369,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8792,7 +9652,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMemberOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8861,6 +9723,48 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | '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'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9017,14 +9921,6 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppPermissionDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; export type RefOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9053,6 +9949,14 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type AppPermissionDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; export type RoleTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9071,26 +9975,6 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; export type CryptoAddressOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9109,7 +9993,7 @@ export type CryptoAddressOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = +export type AppLimitDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -9117,10 +10001,18 @@ export type MembershipTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type ConnectedAccountOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9161,24 +10053,18 @@ export type PhoneNumberOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | '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'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type NodeTypeRegistryOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9201,6 +10087,24 @@ export type NodeTypeRegistryOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppMembershipDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; export type CommitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9245,24 +10149,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9301,6 +10187,24 @@ export type AppLevelOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SqlMigrationOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9361,6 +10265,28 @@ export type AstMigrationOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type UserOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'USERNAME_ASC' + | 'USERNAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC' + | 'SEARCH_TSV_ASC' + | 'SEARCH_TSV_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9394,29 +10320,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type UserOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type HierarchyModuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9462,6 +10368,46 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateGetAllRecordInput { clientMutationId?: string; getAllRecord: { @@ -9909,43 +10855,13 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateLimitFunctionInput { - clientMutationId?: string; - limitFunction: { - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: Record; - security?: number; - }; -} -export interface LimitFunctionPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} -export interface UpdateLimitFunctionInput { - clientMutationId?: string; - id: string; - limitFunctionPatch: LimitFunctionPatch; -} -export interface DeleteLimitFunctionInput { - clientMutationId?: string; - id: string; -} export interface CreatePolicyInput { clientMutationId?: string; policy: { databaseId?: string; tableId: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -9962,7 +10878,7 @@ export interface PolicyPatch { databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -10025,16 +10941,18 @@ export interface CreateTableGrantInput { databaseId?: string; tableId: string; privilege: string; - roleName: string; + granteeName: string; fieldIds?: string[]; + isGrant?: boolean; }; } export interface TableGrantPatch { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; } export interface UpdateTableGrantInput { clientMutationId?: string; @@ -10192,17 +11110,19 @@ export interface CreateViewGrantInput { viewGrant: { databaseId?: string; viewId: string; - roleName: string; + granteeName: string; privilege: string; withGrantOption?: boolean; + isGrant?: boolean; }; } export interface ViewGrantPatch { databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface UpdateViewGrantInput { clientMutationId?: string; @@ -10243,18 +11163,22 @@ export interface CreateTableModuleInput { clientMutationId?: string; tableModule: { databaseId: string; - privateSchemaId?: string; - tableId: string; + schemaId?: string; + tableId?: string; + tableName?: string; nodeType: string; + useRls?: boolean; data?: Record; fields?: string[]; }; } export interface TableModulePatch { databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -10299,6 +11223,124 @@ export interface DeleteTableTemplateModuleInput { clientMutationId?: string; id: string; } +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType?: string; + useRls?: boolean; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: Record; + outFields?: string[]; + }; +} +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFields?: string | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + nodeType?: string; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: 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; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -10321,6 +11363,34 @@ export interface DeleteSchemaGrantInput { clientMutationId?: string; id: string; } +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -10465,46 +11535,6 @@ export interface DeleteSiteThemeInput { clientMutationId?: string; id: string; } -export interface CreateProcedureInput { - clientMutationId?: string; - procedure: { - databaseId?: string; - name: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ProcedurePatch { - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; -} -export interface UpdateProcedureInput { - clientMutationId?: string; - id: string; - procedurePatch: ProcedurePatch; -} -export interface DeleteProcedureInput { - clientMutationId?: string; - id: string; -} export interface CreateTriggerFunctionInput { clientMutationId?: string; triggerFunction: { @@ -11207,7 +12237,6 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -11228,7 +12257,6 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -11582,6 +12610,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -11597,6 +12626,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -11703,6 +12733,62 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -11915,24 +13001,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -11979,6 +13047,24 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -12017,6 +13103,30 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -12057,52 +13167,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -12155,29 +13219,27 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateNodeTypeRegistryInput { clientMutationId?: string; @@ -12209,6 +13271,30 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -12269,30 +13355,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -12345,6 +13407,30 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -12421,6 +13507,33 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + searchTsvRank?: number | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -12436,6 +13549,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -12451,6 +13565,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -12461,33 +13576,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - searchTsvRank?: number | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { @@ -12550,10 +13638,8 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', - procedures: 'Procedure', schemaGrants: 'SchemaGrant', tableGrants: 'TableGrant', triggerFunctions: 'TriggerFunction', @@ -12562,6 +13648,7 @@ export const connectionFieldsMap = { views: 'View', viewGrants: 'ViewGrant', viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -12595,12 +13682,15 @@ export const connectionFieldsMap = { usersModules: 'UsersModule', uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisions: 'RelationProvision', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { tables: 'Table', schemaGrants: 'SchemaGrant', views: 'View', + defaultPrivileges: 'DefaultPrivilege', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -12611,7 +13701,6 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', tableGrants: 'TableGrant', @@ -12622,6 +13711,9 @@ export const connectionFieldsMap = { tableModules: 'TableModule', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisionsBySourceTableId: 'RelationProvision', + relationProvisionsByTargetTableId: 'RelationProvision', }, View: { viewTables: 'ViewTable', @@ -12654,6 +13746,13 @@ export const connectionFieldsMap = { orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', + parentOrgChartEdges: 'OrgChartEdge', + orgChartEdgesByEntityId: 'OrgChartEdge', + childOrgChartEdges: 'OrgChartEdge', + parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', + childOrgChartEdgeGrants: 'OrgChartEdgeGrant', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', @@ -13743,51 +14842,6 @@ export type DeleteIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was created by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type CreateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was updated by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type UpdateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface DeleteLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was deleted by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type DeleteLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; export interface CreatePolicyPayload { clientMutationId?: string | null; /** The `Policy` that was created by this mutation. */ @@ -14283,6 +15337,96 @@ export type DeleteTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +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 CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -14328,6 +15472,51 @@ export type DeleteSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -14598,51 +15787,6 @@ export type DeleteSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -export interface CreateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was created by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type CreateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface UpdateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was updated by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type UpdateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface DeleteProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was deleted by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type DeleteProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; export interface CreateTriggerFunctionPayload { clientMutationId?: string | null; /** The `TriggerFunction` that was created by this mutation. */ @@ -16218,61 +17362,151 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgChartEdgeGrantPayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; }; orgLimitEdge?: { select: OrgLimitEdgeSelect; @@ -16578,51 +17812,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -16713,6 +17902,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type CreateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type UpdateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type DeleteAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -16803,6 +18037,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -16893,96 +18172,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -17073,49 +18262,49 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -17163,6 +18352,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -17253,51 +18487,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -17384,8 +18573,53 @@ export type DeleteAppLevelPayloadSelect = { appLevel?: { select: AppLevelSelect; }; - appLevelEdge?: { - select: AppLevelEdgeSelect; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreateSqlMigrationPayload { @@ -17410,51 +18644,6 @@ export type CreateAstMigrationPayloadSelect = { select: AstMigrationSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -17500,6 +18689,51 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; export interface CreateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ @@ -17696,18 +18930,30 @@ export type SignUpRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -17824,18 +19070,6 @@ export type IndexEdgeSelect = { select: IndexSelect; }; }; -/** A `LimitFunction` edge in the connection. */ -export interface LimitFunctionEdge { - cursor?: string | null; - /** The `LimitFunction` at the end of the edge. */ - node?: LimitFunction | null; -} -export type LimitFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitFunctionSelect; - }; -}; /** A `Policy` edge in the connection. */ export interface PolicyEdge { cursor?: string | null; @@ -17968,6 +19202,30 @@ export type TableTemplateModuleEdgeSelect = { select: TableTemplateModuleSelect; }; }; +/** 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 `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -17980,6 +19238,18 @@ export type SchemaGrantEdgeSelect = { select: SchemaGrantSelect; }; }; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -18052,18 +19322,6 @@ export type SiteThemeEdgeSelect = { select: SiteThemeSelect; }; }; -/** A `Procedure` edge in the connection. */ -export interface ProcedureEdge { - cursor?: string | null; - /** The `Procedure` at the end of the edge. */ - node?: Procedure | null; -} -export type ProcedureEdgeSelect = { - cursor?: boolean; - node?: { - select: ProcedureSelect; - }; -}; /** A `TriggerFunction` edge in the connection. */ export interface TriggerFunctionEdge { cursor?: string | null; @@ -18484,6 +19742,30 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} +export type OrgChartEdgeEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeSelect; + }; +}; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -18580,18 +19862,6 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -18616,6 +19886,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -18640,6 +19922,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -18664,30 +19958,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -18712,16 +19982,16 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -18736,6 +20006,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; @@ -18760,18 +20042,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -18796,16 +20066,16 @@ export type AppLevelEdgeSelect = { select: AppLevelSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type AppMembershipEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: EmailSelect; }; }; /** A `User` edge in the connection. */ @@ -18820,6 +20090,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts new file mode 100644 index 000000000..73079ad7f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts @@ -0,0 +1,236 @@ +/** + * DefaultPrivilege 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 { + DefaultPrivilege, + DefaultPrivilegeWithRelations, + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, + CreateDefaultPrivilegeInput, + UpdateDefaultPrivilegeInput, + DefaultPrivilegePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DefaultPrivilegeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + 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, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: args?.where, + }, + 'DefaultPrivilegeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivilege: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivilege', + document, + variables, + transform: (data: { + defaultPrivileges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + defaultPrivilege: data.defaultPrivileges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DefaultPrivilege', + 'createDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.data, + 'CreateDefaultPrivilegeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'createDefaultPrivilege', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DefaultPrivilegePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DefaultPrivilege', + 'updateDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.where.id, + args.data, + 'UpdateDefaultPrivilegeInput', + 'id', + 'defaultPrivilegePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'updateDefaultPrivilege', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DefaultPrivilege', + 'deleteDefaultPrivilege', + 'defaultPrivilege', + args.where.id, + 'DeleteDefaultPrivilegeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'deleteDefaultPrivilege', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts index b76148dfe..69c875e89 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -16,7 +18,6 @@ export { FieldModel } from './field'; export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { IndexModel } from './indexModel'; -export { LimitFunctionModel } from './limitFunction'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { TableGrantModel } from './tableGrant'; @@ -28,14 +29,16 @@ export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; export { TableModuleModel } from './tableModule'; export { TableTemplateModuleModel } from './tableTemplateModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; -export { ProcedureModel } from './procedure'; export { TriggerFunctionModel } from './triggerFunction'; export { ApiModel } from './api'; export { SiteModel } from './site'; @@ -71,6 +74,8 @@ export { OrgMemberModel } from './orgMember'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; @@ -79,26 +84,26 @@ export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RoleTypeModel } from './roleType'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { CryptoAddressModel } from './cryptoAddress'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { CryptoAddressModel } from './cryptoAddress'; -export { MembershipTypeModel } from './membershipType'; export { ConnectedAccountModel } from './connectedAccount'; export { PhoneNumberModel } from './phoneNumber'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; export { CommitModel } from './commit'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; export { SqlMigrationModel } from './sqlMigration'; export { AstMigrationModel } from './astMigration'; -export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; +export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-sdk/src/public/orm/models/limitFunction.ts b/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts similarity index 52% rename from sdk/constructive-sdk/src/public/orm/models/limitFunction.ts rename to sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts index 9df58af2a..3ff845429 100644 --- a/sdk/constructive-sdk/src/public/orm/models/limitFunction.ts +++ b/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts @@ -1,5 +1,5 @@ /** - * LimitFunction model for ORM client + * OrgChartEdge model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - LimitFunction, - LimitFunctionWithRelations, - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy, - CreateLimitFunctionInput, - UpdateLimitFunctionInput, - LimitFunctionPatch, + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class LimitFunctionModel { +export class OrgChartEdgeModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - limitFunctions: ConnectionResult>; + orgChartEdges: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class LimitFunctionModel { before: args?.before, offset: args?.offset, }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - limitFunctions: { - nodes: InferSelectResult[]; + orgChartEdges: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'LimitFunction', - 'limitFunctions', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: args?.where, }, - 'LimitFunctionFilter', + 'OrgChartEdgeFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - limitFunction: InferSelectResult | null; + orgChartEdge: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', + 'OrgChartEdge', + 'orgChartEdges', args.select, { where: { @@ -117,90 +117,90 @@ export class LimitFunctionModel { }, first: 1, }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunction', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', document, variables, transform: (data: { - limitFunctions?: { - nodes?: InferSelectResult[]; + orgChartEdges?: { + nodes?: InferSelectResult[]; }; }) => ({ - limitFunction: data.limitFunctions?.nodes?.[0] ?? null, + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createLimitFunction: { - limitFunction: InferSelectResult; + createOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'LimitFunction', - 'createLimitFunction', - 'limitFunction', + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', args.select, args.data, - 'CreateLimitFunctionInput', + 'CreateOrgChartEdgeInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'createLimitFunction', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - LimitFunctionPatch + OrgChartEdgePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateLimitFunction: { - limitFunction: InferSelectResult; + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'LimitFunction', - 'updateLimitFunction', - 'limitFunction', + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', args.select, args.where.id, args.data, - 'UpdateLimitFunctionInput', + 'UpdateOrgChartEdgeInput', 'id', - 'limitFunctionPatch', + 'orgChartEdgePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'updateLimitFunction', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class LimitFunctionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteLimitFunction: { - limitFunction: InferSelectResult; + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'LimitFunction', - 'deleteLimitFunction', - 'limitFunction', + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', args.where.id, - 'DeleteLimitFunctionInput', + 'DeleteOrgChartEdgeInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class LimitFunctionModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'deleteLimitFunction', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', document, variables, }); diff --git a/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant 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 { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + 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, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord 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 { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + 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, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord 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 { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + 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, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts b/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts new file mode 100644 index 000000000..83dcb30fd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts @@ -0,0 +1,236 @@ +/** + * RelationProvision 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 { + RelationProvision, + RelationProvisionWithRelations, + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy, + CreateRelationProvisionInput, + UpdateRelationProvisionInput, + RelationProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RelationProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + 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, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: args?.where, + }, + 'RelationProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvision', + document, + variables, + transform: (data: { + relationProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + relationProvision: data.relationProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RelationProvision', + 'createRelationProvision', + 'relationProvision', + args.select, + args.data, + 'CreateRelationProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'createRelationProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RelationProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RelationProvision', + 'updateRelationProvision', + 'relationProvision', + args.select, + args.where.id, + args.data, + 'UpdateRelationProvisionInput', + 'id', + 'relationProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'updateRelationProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RelationProvision', + 'deleteRelationProvision', + 'relationProvision', + args.where.id, + 'DeleteRelationProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'deleteRelationProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts new file mode 100644 index 000000000..713dc44c8 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts @@ -0,0 +1,238 @@ +/** + * SecureTableProvision 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 { + SecureTableProvision, + SecureTableProvisionWithRelations, + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, + CreateSecureTableProvisionInput, + UpdateSecureTableProvisionInput, + SecureTableProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecureTableProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + 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, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: args?.where, + }, + 'SecureTableProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvision', + document, + variables, + transform: (data: { + secureTableProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secureTableProvision: data.secureTableProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SecureTableProvision', + 'createSecureTableProvision', + 'secureTableProvision', + args.select, + args.data, + 'CreateSecureTableProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'createSecureTableProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SecureTableProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SecureTableProvision', + 'updateSecureTableProvision', + 'secureTableProvision', + args.select, + args.where.id, + args.data, + 'UpdateSecureTableProvisionInput', + 'id', + 'secureTableProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'updateSecureTableProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SecureTableProvision', + 'deleteSecureTableProvision', + 'secureTableProvision', + args.where.id, + 'DeleteSecureTableProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'deleteSecureTableProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index 468211e98..12a89b785 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -32,6 +32,12 @@ export interface RevParseVariables { storeId?: string; refname?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface AppPermissionsGetMaskVariables { ids?: string[]; } @@ -301,6 +307,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), appPermissionsGetMask: ( args: AppPermissionsGetMaskVariables, options?: { diff --git a/sdk/constructive-sdk/src/public/orm/skills/api.md b/sdk/constructive-sdk/src/public/orm/skills/api.md deleted file mode 100644 index 4fbea1f24..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-api - - - -ORM operations for Api records - -## Usage - -```typescript -db.api.findMany({ select: { id: true } }).execute() -db.api.findOne({ id: '', select: { id: true } }).execute() -db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() -db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.api.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all api records - -```typescript -const items = await db.api.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a api - -```typescript -const item = await db.api.create({ - data: { databaseId: 'value', name: 'value', dbname: 'value', roleName: 'value', anonRole: 'value', isPublic: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md deleted file mode 100644 index 92ab466a3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md deleted file mode 100644 index 6b585abee..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAdminGrant - - - -ORM operations for AppAdminGrant records - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appGrant.md deleted file mode 100644 index 017771262..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appGrant - - - -ORM operations for AppGrant records - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md b/sdk/constructive-sdk/src/public/orm/skills/appLevel.md deleted file mode 100644 index 3677ecc37..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevel - - - -Levels for achievement - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md deleted file mode 100644 index 28df77ff5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLimit.md b/sdk/constructive-sdk/src/public/orm/skills/appLimit.md deleted file mode 100644 index 50fa2b37f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimit - - - -ORM operations for AppLimit records - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md deleted file mode 100644 index eb070a028..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimitDefault - - - -ORM operations for AppLimitDefault records - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appMembership.md b/sdk/constructive-sdk/src/public/orm/skills/appMembership.md deleted file mode 100644 index 07e8f9763..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembership - - - -ORM operations for AppMembership records - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md deleted file mode 100644 index 82c322958..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembershipDefault - - - -ORM operations for AppMembershipDefault records - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md deleted file mode 100644 index 89c574dd7..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appOwnerGrant - - - -ORM operations for AppOwnerGrant records - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermission.md b/sdk/constructive-sdk/src/public/orm/skills/appPermission.md deleted file mode 100644 index a497f7b8a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermission - - - -ORM operations for AppPermission records - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md deleted file mode 100644 index ef8289183..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermissionDefault - - - -ORM operations for AppPermissionDefault records - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md deleted file mode 100644 index 369df9f26..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md deleted file mode 100644 index ceca5548f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index c3f40dddc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index accce0eed..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appStep.md b/sdk/constructive-sdk/src/public/orm/skills/appStep.md deleted file mode 100644 index 3c349de1f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/astMigration.md b/sdk/constructive-sdk/src/public/orm/skills/astMigration.md deleted file mode 100644 index 96c82138c..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/astMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-astMigration - - - -ORM operations for AstMigration records - -## Usage - -```typescript -db.astMigration.findMany({ select: { id: true } }).execute() -db.astMigration.findOne({ id: '', select: { id: true } }).execute() -db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.astMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all astMigration records - -```typescript -const items = await db.astMigration.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a astMigration - -```typescript -const item = await db.astMigration.create({ - data: { databaseId: 'value', name: 'value', requires: 'value', payload: 'value', deploys: 'value', deploy: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/auditLog.md b/sdk/constructive-sdk/src/public/orm/skills/auditLog.md deleted file mode 100644 index d7eed269a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-auditLog - - - -ORM operations for AuditLog records - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md b/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md deleted file mode 100644 index 08fff3805..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```typescript -db.mutation.bootstrapUser({ input: '' }).execute() -``` - -## Examples - -### Run bootstrapUser - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md deleted file mode 100644 index 1e13d4f10..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-checkConstraint - - - -ORM operations for CheckConstraint records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.checkConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all checkConstraint records - -```typescript -const items = await db.checkConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a checkConstraint - -```typescript -const item = await db.checkConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', expr: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md b/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md deleted file mode 100644 index 1c5c3d8ba..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: '' }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md b/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md deleted file mode 100644 index 3d5de6b3b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-claimedInvite - - - -ORM operations for ClaimedInvite records - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/commit.md b/sdk/constructive-sdk/src/public/orm/skills/commit.md deleted file mode 100644 index 85ded9d62..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md b/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md deleted file mode 100644 index 4d76c3194..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: '' }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md b/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md deleted file mode 100644 index ff7e10281..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccount - - - -ORM operations for ConnectedAccount records - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md b/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md deleted file mode 100644 index 5a0a95552..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccountsModule - - - -ORM operations for ConnectedAccountsModule records - -## Usage - -```typescript -db.connectedAccountsModule.findMany({ select: { id: true } }).execute() -db.connectedAccountsModule.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccountsModule records - -```typescript -const items = await db.connectedAccountsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a connectedAccountsModule - -```typescript -const item = await db.connectedAccountsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md b/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md deleted file mode 100644 index aeaeb3f50..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md +++ /dev/null @@ -1,35 +0,0 @@ -# orm-createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include levels/achievements (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -db.mutation.createUserDatabase({ input: '' }).execute() -``` - -## Examples - -### Run createUserDatabase - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md deleted file mode 100644 index 70e896572..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddress - - - -ORM operations for CryptoAddress records - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md deleted file mode 100644 index 1eb3867b9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddressesModule - - - -ORM operations for CryptoAddressesModule records - -## Usage - -```typescript -db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() -db.cryptoAddressesModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddressesModule records - -```typescript -const items = await db.cryptoAddressesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAddressesModule - -```typescript -const item = await db.cryptoAddressesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', cryptoNetwork: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md deleted file mode 100644 index 2cb20a2ec..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAuthModule - - - -ORM operations for CryptoAuthModule records - -## Usage - -```typescript -db.cryptoAuthModule.findMany({ select: { id: true } }).execute() -db.cryptoAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAuthModule records - -```typescript -const items = await db.cryptoAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAuthModule - -```typescript -const item = await db.cryptoAuthModule.create({ - data: { databaseId: 'value', schemaId: 'value', usersTableId: 'value', secretsTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', addressesTableId: 'value', userField: 'value', cryptoNetwork: 'value', signInRequestChallenge: 'value', signInRecordFailure: 'value', signUpWithKey: 'value', signInWithChallenge: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md b/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md deleted file mode 100644 index 63d2d9969..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUser.md b/sdk/constructive-sdk/src/public/orm/skills/currentUser.md deleted file mode 100644 index ca907fcb4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md b/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md deleted file mode 100644 index e5ba1e850..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md b/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md deleted file mode 100644 index c27ebc8c5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/database.md b/sdk/constructive-sdk/src/public/orm/skills/database.md deleted file mode 100644 index cc4593c1d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/database.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-database - - - -ORM operations for Database records - -## Usage - -```typescript -db.database.findMany({ select: { id: true } }).execute() -db.database.findOne({ id: '', select: { id: true } }).execute() -db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() -db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.database.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all database records - -```typescript -const items = await db.database.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a database - -```typescript -const item = await db.database.create({ - data: { ownerId: 'value', schemaHash: 'value', name: 'value', label: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md b/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md deleted file mode 100644 index 23189ab90..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-defaultIdsModule - - - -ORM operations for DefaultIdsModule records - -## Usage - -```typescript -db.defaultIdsModule.findMany({ select: { id: true } }).execute() -db.defaultIdsModule.findOne({ id: '', select: { id: true } }).execute() -db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all defaultIdsModule records - -```typescript -const items = await db.defaultIdsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a defaultIdsModule - -```typescript -const item = await db.defaultIdsModule.create({ - data: { databaseId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md b/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md deleted file mode 100644 index 4d81ed52e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-denormalizedTableField - - - -ORM operations for DenormalizedTableField records - -## Usage - -```typescript -db.denormalizedTableField.findMany({ select: { id: true } }).execute() -db.denormalizedTableField.findOne({ id: '', select: { id: true } }).execute() -db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() -db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.denormalizedTableField.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all denormalizedTableField records - -```typescript -const items = await db.denormalizedTableField.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a denormalizedTableField - -```typescript -const item = await db.denormalizedTableField.create({ - data: { databaseId: 'value', tableId: 'value', fieldId: 'value', setIds: 'value', refTableId: 'value', refFieldId: 'value', refIds: 'value', useUpdates: 'value', updateDefaults: 'value', funcName: 'value', funcOrder: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/email.md b/sdk/constructive-sdk/src/public/orm/skills/email.md deleted file mode 100644 index 9bc21e74f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-email - - - -ORM operations for Email records - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md b/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md deleted file mode 100644 index af02ae8c9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-encryptedSecretsModule - - - -ORM operations for EncryptedSecretsModule records - -## Usage - -```typescript -db.encryptedSecretsModule.findMany({ select: { id: true } }).execute() -db.encryptedSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all encryptedSecretsModule records - -```typescript -const items = await db.encryptedSecretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a encryptedSecretsModule - -```typescript -const item = await db.encryptedSecretsModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md b/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md deleted file mode 100644 index d587afacb..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: '' }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md b/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md deleted file mode 100644 index b3f195547..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: '' }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 71c5db4db..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md b/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md deleted file mode 100644 index 9c61daad2..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md deleted file mode 100644 index 820b6d5fc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md deleted file mode 100644 index 954943d90..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md b/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md deleted file mode 100644 index c6ba413a2..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-hierarchyModule - - - -ORM operations for HierarchyModule records - -## Usage - -```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: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() -db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.hierarchyModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all hierarchyModule records - -```typescript -const items = await db.hierarchyModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a hierarchyModule - -```typescript -const item = await db.hierarchyModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', chartEdgesTableId: 'value', chartEdgesTableName: 'value', hierarchySprtTableId: 'value', hierarchySprtTableName: 'value', chartEdgeGrantsTableId: 'value', chartEdgeGrantsTableName: 'value', entityTableId: 'value', usersTableId: 'value', prefix: 'value', privateSchemaName: 'value', sprtTableName: 'value', rebuildHierarchyFunction: 'value', getSubordinatesFunction: 'value', getManagersFunction: 'value', isManagerOfFunction: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md b/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md deleted file mode 100644 index 43a46841f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: '' }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md deleted file mode 100644 index 2e9db15a0..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/invite.md b/sdk/constructive-sdk/src/public/orm/skills/invite.md deleted file mode 100644 index 727a2107e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invite - - - -ORM operations for Invite records - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md b/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md deleted file mode 100644 index 50a907813..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-levelsModule - - - -ORM operations for LevelsModule records - -## Usage - -```typescript -db.levelsModule.findMany({ select: { id: true } }).execute() -db.levelsModule.findOne({ id: '', select: { id: true } }).execute() -db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.levelsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all levelsModule records - -```typescript -const items = await db.levelsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a levelsModule - -```typescript -const item = await db.levelsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', stepsTableId: 'value', stepsTableName: 'value', achievementsTableId: 'value', achievementsTableName: 'value', levelsTableId: 'value', levelsTableName: 'value', levelRequirementsTableId: 'value', levelRequirementsTableName: 'value', completedStep: 'value', incompletedStep: 'value', tgAchievement: 'value', tgAchievementToggle: 'value', tgAchievementToggleBoolean: 'value', tgAchievementBoolean: 'value', upsertAchievement: 'value', tgUpdateAchievements: 'value', stepsRequired: 'value', levelAchieved: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md b/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md deleted file mode 100644 index 7db5044ee..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitFunction - - - -ORM operations for LimitFunction records - -## Usage - -```typescript -db.limitFunction.findMany({ select: { id: true } }).execute() -db.limitFunction.findOne({ id: '', select: { id: true } }).execute() -db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute() -db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitFunction records - -```typescript -const items = await db.limitFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitFunction - -```typescript -const item = await db.limitFunction.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', data: 'value', security: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipType.md b/sdk/constructive-sdk/src/public/orm/skills/membershipType.md deleted file mode 100644 index 898d85107..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipType - - - -ORM operations for MembershipType records - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: 'value', description: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/object.md b/sdk/constructive-sdk/src/public/orm/skills/object.md deleted file mode 100644 index e006a0b5a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md b/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md deleted file mode 100644 index 2ac3f962d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md deleted file mode 100644 index 675b76741..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgAdminGrant - - - -ORM operations for OrgAdminGrant records - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md b/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md deleted file mode 100644 index ea7ff346d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgInvite - - - -ORM operations for OrgInvite records - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md deleted file mode 100644 index 4a4e505bd..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimitDefault - - - -ORM operations for OrgLimitDefault records - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMember.md b/sdk/constructive-sdk/src/public/orm/skills/orgMember.md deleted file mode 100644 index 2aadbafd3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMember - - - -ORM operations for OrgMember records - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md b/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md deleted file mode 100644 index b98b850b2..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembership - - - -ORM operations for OrgMembership records - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md deleted file mode 100644 index cd8146f14..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembershipDefault - - - -ORM operations for OrgMembershipDefault records - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md deleted file mode 100644 index 8a490261b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgOwnerGrant - - - -ORM operations for OrgOwnerGrant records - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md deleted file mode 100644 index 1f18add5d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermission - - - -ORM operations for OrgPermission records - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md deleted file mode 100644 index 8d8e20afc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermissionDefault - - - -ORM operations for OrgPermissionDefault records - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md deleted file mode 100644 index 437f5c98b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md deleted file mode 100644 index c626883ad..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/procedure.md b/sdk/constructive-sdk/src/public/orm/skills/procedure.md deleted file mode 100644 index 838b474d3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/procedure.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-procedure - - - -ORM operations for Procedure records - -## Usage - -```typescript -db.procedure.findMany({ select: { id: true } }).execute() -db.procedure.findOne({ id: '', select: { id: true } }).execute() -db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.procedure.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all procedure records - -```typescript -const items = await db.procedure.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a procedure - -```typescript -const item = await db.procedure.create({ - data: { databaseId: 'value', name: 'value', argnames: 'value', argtypes: 'value', argdefaults: 'value', langName: 'value', definition: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md b/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md deleted file mode 100644 index 447ffb844..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```typescript -db.mutation.provisionDatabaseWithUser({ input: '' }).execute() -``` - -## Examples - -### Run provisionDatabaseWithUser - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/ref.md b/sdk/constructive-sdk/src/public/orm/skills/ref.md deleted file mode 100644 index 3165ec41e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md deleted file mode 100644 index 116c41c0a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md b/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md deleted file mode 100644 index fe676ada5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: '' }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/revParse.md b/sdk/constructive-sdk/src/public/orm/skills/revParse.md deleted file mode 100644 index 0a1830ff8..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/roleType.md b/sdk/constructive-sdk/src/public/orm/skills/roleType.md deleted file mode 100644 index 261296f03..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md b/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md deleted file mode 100644 index 296f97ae4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-schemaGrant - - - -ORM operations for SchemaGrant records - -## Usage - -```typescript -db.schemaGrant.findMany({ select: { id: true } }).execute() -db.schemaGrant.findOne({ id: '', select: { id: true } }).execute() -db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() -db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schemaGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schemaGrant records - -```typescript -const items = await db.schemaGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schemaGrant - -```typescript -const item = await db.schemaGrant.create({ - data: { databaseId: 'value', schemaId: 'value', granteeName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md deleted file mode 100644 index aaf0470b5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md b/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md deleted file mode 100644 index 2f0cfea9a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md b/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md deleted file mode 100644 index df8c99266..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-sessionsModule - - - -ORM operations for SessionsModule records - -## Usage - -```typescript -db.sessionsModule.findMany({ select: { id: true } }).execute() -db.sessionsModule.findOne({ id: '', select: { id: true } }).execute() -db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() -db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.sessionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sessionsModule records - -```typescript -const items = await db.sessionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a sessionsModule - -```typescript -const item = await db.sessionsModule.create({ - data: { databaseId: 'value', schemaId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', authSettingsTableId: 'value', usersTableId: 'value', sessionsDefaultExpiration: 'value', sessionsTable: 'value', sessionCredentialsTable: 'value', authSettingsTable: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md b/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md deleted file mode 100644 index a5fa6e0d9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md deleted file mode 100644 index 7f09dab97..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: '' }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md b/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md deleted file mode 100644 index 7a221b219..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setFieldOrder - - - -Execute the setFieldOrder mutation - -## Usage - -```typescript -db.mutation.setFieldOrder({ input: '' }).execute() -``` - -## Examples - -### Run setFieldOrder - -```typescript -const result = await db.mutation.setFieldOrder({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setPassword.md b/sdk/constructive-sdk/src/public/orm/skills/setPassword.md deleted file mode 100644 index bbf15b68d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: '' }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md b/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md deleted file mode 100644 index 7248c0e1c..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signIn.md b/sdk/constructive-sdk/src/public/orm/skills/signIn.md deleted file mode 100644 index d49334136..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signIn.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md b/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md deleted file mode 100644 index 9a87fd088..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signOut.md b/sdk/constructive-sdk/src/public/orm/skills/signOut.md deleted file mode 100644 index 7ada67374..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/site.md b/sdk/constructive-sdk/src/public/orm/skills/site.md deleted file mode 100644 index 93aa35cdd..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/site.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-site - - - -ORM operations for Site records - -## Usage - -```typescript -db.site.findMany({ select: { id: true } }).execute() -db.site.findOne({ id: '', select: { id: true } }).execute() -db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() -db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.site.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all site records - -```typescript -const items = await db.site.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a site - -```typescript -const item = await db.site.create({ - data: { databaseId: 'value', title: 'value', description: 'value', ogImage: 'value', favicon: 'value', appleTouchIcon: 'value', logo: 'value', dbname: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md b/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md deleted file mode 100644 index 4b58181c8..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteTheme - - - -ORM operations for SiteTheme records - -## Usage - -```typescript -db.siteTheme.findMany({ select: { id: true } }).execute() -db.siteTheme.findOne({ id: '', select: { id: true } }).execute() -db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() -db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteTheme.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteTheme records - -```typescript -const items = await db.siteTheme.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteTheme - -```typescript -const item = await db.siteTheme.create({ - data: { databaseId: 'value', siteId: 'value', theme: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md b/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md deleted file mode 100644 index bce806fd4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/store.md b/sdk/constructive-sdk/src/public/orm/skills/store.md deleted file mode 100644 index 1a9bfc8a5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: 'value', databaseId: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md b/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md deleted file mode 100644 index ae946fe75..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md b/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md deleted file mode 100644 index 0ceff0ee1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/table.md b/sdk/constructive-sdk/src/public/orm/skills/table.md deleted file mode 100644 index eae9607ea..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/table.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-table - - - -ORM operations for Table records - -## Usage - -```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: '', inheritsId: '' }, select: { id: true } }).execute() -db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.table.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all table records - -```typescript -const items = await db.table.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a table - -```typescript -const item = await db.table.create({ - data: { databaseId: 'value', schemaId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', useRls: 'value', timestamps: 'value', peoplestamps: 'value', pluralName: 'value', singularName: 'value', tags: 'value', inheritsId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md b/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md deleted file mode 100644 index e31fcb8ff..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableGrant - - - -ORM operations for TableGrant records - -## Usage - -```typescript -db.tableGrant.findMany({ select: { id: true } }).execute() -db.tableGrant.findOne({ id: '', select: { id: true } }).execute() -db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute() -db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableGrant records - -```typescript -const items = await db.tableGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableGrant - -```typescript -const item = await db.tableGrant.create({ - data: { databaseId: 'value', tableId: 'value', privilege: 'value', roleName: 'value', fieldIds: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md b/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md deleted file mode 100644 index f829a0de9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableTemplateModule - - - -ORM operations for TableTemplateModule records - -## Usage - -```typescript -db.tableTemplateModule.findMany({ select: { id: true } }).execute() -db.tableTemplateModule.findOne({ id: '', select: { id: true } }).execute() -db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute() -db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableTemplateModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableTemplateModule records - -```typescript -const items = await db.tableTemplateModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableTemplateModule - -```typescript -const item = await db.tableTemplateModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', nodeType: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/trigger.md b/sdk/constructive-sdk/src/public/orm/skills/trigger.md deleted file mode 100644 index ef4d73ecc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/trigger.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-trigger - - - -ORM operations for Trigger records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.trigger.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all trigger records - -```typescript -const items = await db.trigger.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a trigger - -```typescript -const item = await db.trigger.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', event: 'value', functionName: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md b/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md deleted file mode 100644 index 739e3f267..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-triggerFunction - - - -ORM operations for TriggerFunction records - -## Usage - -```typescript -db.triggerFunction.findMany({ select: { id: true } }).execute() -db.triggerFunction.findOne({ id: '', select: { id: true } }).execute() -db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() -db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.triggerFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all triggerFunction records - -```typescript -const items = await db.triggerFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a triggerFunction - -```typescript -const item = await db.triggerFunction.create({ - data: { databaseId: 'value', name: 'value', code: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md deleted file mode 100644 index 8724c6983..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-uniqueConstraint - - - -ORM operations for UniqueConstraint records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uniqueConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uniqueConstraint records - -```typescript -const items = await db.uniqueConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uniqueConstraint - -```typescript -const item = await db.uniqueConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md deleted file mode 100644 index d1a7bbf95..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/user.md b/sdk/constructive-sdk/src/public/orm/skills/user.md deleted file mode 100644 index e80b99583..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-user - - - -ORM operations for User records - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md b/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md deleted file mode 100644 index 3f2a19a32..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-uuidModule - - - -ORM operations for UuidModule records - -## Usage - -```typescript -db.uuidModule.findMany({ select: { id: true } }).execute() -db.uuidModule.findOne({ id: '', select: { id: true } }).execute() -db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }, select: { id: true } }).execute() -db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uuidModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uuidModule records - -```typescript -const items = await db.uuidModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uuidModule - -```typescript -const item = await db.uuidModule.create({ - data: { databaseId: 'value', schemaId: 'value', uuidFunction: 'value', uuidSeed: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md b/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md deleted file mode 100644 index c9a3f4ac1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: '' }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md b/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md deleted file mode 100644 index 10b75c518..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: '' }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md b/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md deleted file mode 100644 index 5541069f3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: '' }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/view.md b/sdk/constructive-sdk/src/public/orm/skills/view.md deleted file mode 100644 index c2db2a347..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/view.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-view - - - -ORM operations for View records - -## Usage - -```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.view.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all view records - -```typescript -const items = await db.view.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a view - -```typescript -const item = await db.view.create({ - data: { databaseId: 'value', schemaId: 'value', name: 'value', tableId: 'value', viewType: 'value', data: 'value', filterType: 'value', filterData: 'value', securityInvoker: 'value', isReadOnly: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md b/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md deleted file mode 100644 index 062399792..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewGrant - - - -ORM operations for ViewGrant records - -## Usage - -```typescript -db.viewGrant.findMany({ select: { id: true } }).execute() -db.viewGrant.findOne({ id: '', select: { id: true } }).execute() -db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute() -db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewGrant records - -```typescript -const items = await db.viewGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewGrant - -```typescript -const item = await db.viewGrant.create({ - data: { databaseId: 'value', viewId: 'value', roleName: 'value', privilege: 'value', withGrantOption: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md b/sdk/constructive-sdk/src/public/orm/skills/viewTable.md deleted file mode 100644 index d3adc9f0e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewTable - - - -Junction table linking views to their joined tables for referential integrity - -## Usage - -```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.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewTable records - -```typescript -const items = await db.viewTable.findMany({ - select: { id: true, viewId: true } -}).execute(); -``` - -### Create a viewTable - -```typescript -const item = await db.viewTable.create({ - data: { viewId: 'value', tableId: 'value', joinOrder: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md b/skills/hooks-admin-app-achievement/SKILL.md similarity index 74% rename from sdk/constructive-react/src/admin/hooks/skills/appAchievement.md rename to skills/hooks-admin-app-achievement/SKILL.md index 109aaf8bb..8be6be441 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md +++ b/skills/hooks-admin-app-achievement/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appAchievement +--- +name: hooks-admin-app-achievement +description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually +--- + +# hooks-admin-app-achievement -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md b/skills/hooks-admin-app-admin-grant/SKILL.md similarity index 83% rename from sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md rename to skills/hooks-admin-app-admin-grant/SKILL.md index 6bfebeb38..4be5d1aaa 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md +++ b/skills/hooks-admin-app-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appAdminGrant +--- +name: hooks-admin-app-admin-grant +description: Records of admin role grants and revocations between members +--- + +# hooks-admin-app-admin-grant -React Query hooks for AppAdminGrant data operations +Records of admin role grants and revocations between members ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appGrant.md b/skills/hooks-admin-app-grant/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/hooks/skills/appGrant.md rename to skills/hooks-admin-app-grant/SKILL.md index be596bddb..925ed0365 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appGrant.md +++ b/skills/hooks-admin-app-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appGrant +--- +name: hooks-admin-app-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# hooks-admin-app-grant -React Query hooks for AppGrant data operations +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md b/skills/hooks-admin-app-level-requirement/SKILL.md similarity index 83% rename from sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md rename to skills/hooks-admin-app-level-requirement/SKILL.md index 82fdcbb8a..f5d335ad5 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md +++ b/skills/hooks-admin-app-level-requirement/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLevelRequirement +--- +name: hooks-admin-app-level-requirement +description: Defines the specific requirements that must be met to achieve a level +--- + +# hooks-admin-app-level-requirement -Requirements to achieve a level +Defines the specific requirements that must be met to achieve a level ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appLevel.md b/skills/hooks-admin-app-level/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/appLevel.md rename to skills/hooks-admin-app-level/SKILL.md index bd72a41e7..b2fd67560 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appLevel.md +++ b/skills/hooks-admin-app-level/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLevel +--- +name: hooks-admin-app-level +description: Defines available levels that users can achieve by completing requirements +--- + +# hooks-admin-app-level -Levels for achievement +Defines available levels that users can achieve by completing requirements ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md b/skills/hooks-admin-app-limit-default/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md rename to skills/hooks-admin-app-limit-default/SKILL.md index 9997fe7ae..fd678d2ab 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md +++ b/skills/hooks-admin-app-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLimitDefault +--- +name: hooks-admin-app-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# hooks-admin-app-limit-default -React Query hooks for AppLimitDefault data operations +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLimit.md b/skills/hooks-admin-app-limit/SKILL.md similarity index 81% rename from sdk/constructive-react/src/admin/hooks/skills/appLimit.md rename to skills/hooks-admin-app-limit/SKILL.md index ea8cb8cc6..8c4fd50e9 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appLimit.md +++ b/skills/hooks-admin-app-limit/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLimit +--- +name: hooks-admin-app-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# hooks-admin-app-limit -React Query hooks for AppLimit data operations +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md b/skills/hooks-admin-app-membership-default/SKILL.md similarity index 78% rename from sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md rename to skills/hooks-admin-app-membership-default/SKILL.md index 7536d11fb..c7bbe0b3d 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md +++ b/skills/hooks-admin-app-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appMembershipDefault +--- +name: hooks-admin-app-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# hooks-admin-app-membership-default -React Query hooks for AppMembershipDefault data operations +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appMembership.md b/skills/hooks-admin-app-membership/SKILL.md similarity index 75% rename from sdk/constructive-react/src/admin/hooks/skills/appMembership.md rename to skills/hooks-admin-app-membership/SKILL.md index ba73841d6..0ea34b373 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appMembership.md +++ b/skills/hooks-admin-app-membership/SKILL.md @@ -1,14 +1,19 @@ -# hooks-appMembership +--- +name: hooks-admin-app-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# hooks-admin-app-membership -React Query hooks for AppMembership data operations +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) +useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) useDeleteAppMembershipMutation({}) @@ -20,7 +25,7 @@ useDeleteAppMembershipMutation({}) ```typescript const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useAppMembershipsQuery({ const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md b/skills/hooks-admin-app-owner-grant/SKILL.md similarity index 83% rename from sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md rename to skills/hooks-admin-app-owner-grant/SKILL.md index 3b6971d85..8ee9c4507 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md +++ b/skills/hooks-admin-app-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appOwnerGrant +--- +name: hooks-admin-app-owner-grant +description: Records of ownership transfers and grants between members +--- + +# hooks-admin-app-owner-grant -React Query hooks for AppOwnerGrant data operations +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md b/skills/hooks-admin-app-permission-default/SKILL.md similarity index 77% rename from sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md rename to skills/hooks-admin-app-permission-default/SKILL.md index d0ab1ab74..a4a8a8f49 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md +++ b/skills/hooks-admin-app-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appPermissionDefault +--- +name: hooks-admin-app-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# hooks-admin-app-permission-default -React Query hooks for AppPermissionDefault data operations +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermission.md b/skills/hooks-admin-app-permission/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/appPermission.md rename to skills/hooks-admin-app-permission/SKILL.md index 1c7b49ffa..3a10711e5 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appPermission.md +++ b/skills/hooks-admin-app-permission/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appPermission +--- +name: hooks-admin-app-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# hooks-admin-app-permission -React Query hooks for AppPermission data operations +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md b/skills/hooks-admin-app-permissions-get-by-mask/SKILL.md similarity index 73% rename from sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md rename to skills/hooks-admin-app-permissions-get-by-mask/SKILL.md index 567bab5a3..b1f63b1b6 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md +++ b/skills/hooks-admin-app-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetByMask +--- +name: hooks-admin-app-permissions-get-by-mask +description: Reads and enables pagination through a set of `AppPermission`. +--- + +# hooks-admin-app-permissions-get-by-mask diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md b/skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md similarity index 67% rename from sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md rename to skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md index 9fbcc74d9..171bda754 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md +++ b/skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetMaskByNames +--- +name: hooks-admin-app-permissions-get-mask-by-names +description: React Query query hook for appPermissionsGetMaskByNames +--- + +# hooks-admin-app-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md b/skills/hooks-admin-app-permissions-get-mask/SKILL.md similarity index 68% rename from sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md rename to skills/hooks-admin-app-permissions-get-mask/SKILL.md index ec4bfe8b1..895d8e1ff 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md +++ b/skills/hooks-admin-app-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetMask +--- +name: hooks-admin-app-permissions-get-mask +description: React Query query hook for appPermissionsGetMask +--- + +# hooks-admin-app-permissions-get-mask diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md b/skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md similarity index 67% rename from sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md rename to skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md index 73d5aa1d2..3b48f818b 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md +++ b/skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetPaddedMask +--- +name: hooks-admin-app-permissions-get-padded-mask +description: React Query query hook for appPermissionsGetPaddedMask +--- + +# hooks-admin-app-permissions-get-padded-mask diff --git a/sdk/constructive-react/src/admin/hooks/skills/appStep.md b/skills/hooks-admin-app-step/SKILL.md similarity index 77% rename from sdk/constructive-react/src/admin/hooks/skills/appStep.md rename to skills/hooks-admin-app-step/SKILL.md index 9e8de0574..38f40f148 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appStep.md +++ b/skills/hooks-admin-app-step/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appStep +--- +name: hooks-admin-app-step +description: Log of individual user actions toward level requirements; every single step ever taken is recorded here +--- + +# hooks-admin-app-step -The user achieving a requirement for a level. Log table that has every single step ever taken. +Log of individual user actions toward level requirements; every single step ever taken is recorded here ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/claimedInvite.md b/skills/hooks-admin-claimed-invite/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/hooks/skills/claimedInvite.md rename to skills/hooks-admin-claimed-invite/SKILL.md index 262dff555..a9f7df19b 100644 --- a/sdk/constructive-react/src/public/hooks/skills/claimedInvite.md +++ b/skills/hooks-admin-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-claimedInvite +--- +name: hooks-admin-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# hooks-admin-claimed-invite -React Query hooks for ClaimedInvite data operations +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/invite.md b/skills/hooks-admin-invite/SKILL.md similarity index 83% rename from sdk/constructive-react/src/public/hooks/skills/invite.md rename to skills/hooks-admin-invite/SKILL.md index 3be140ad1..4400230de 100644 --- a/sdk/constructive-react/src/public/hooks/skills/invite.md +++ b/skills/hooks-admin-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-invite +--- +name: hooks-admin-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# hooks-admin-invite -React Query hooks for Invite data operations +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/membershipType.md b/skills/hooks-admin-membership-type/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/membershipType.md rename to skills/hooks-admin-membership-type/SKILL.md index 51dd3584b..410de8988 100644 --- a/sdk/constructive-react/src/public/hooks/skills/membershipType.md +++ b/skills/hooks-admin-membership-type/SKILL.md @@ -1,8 +1,13 @@ -# hooks-membershipType +--- +name: hooks-admin-membership-type +description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +--- + +# hooks-admin-membership-type -React Query hooks for MembershipType data operations +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md b/skills/hooks-admin-org-admin-grant/SKILL.md similarity index 84% rename from sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md rename to skills/hooks-admin-org-admin-grant/SKILL.md index aac7029bb..c481f40c3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md +++ b/skills/hooks-admin-org-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgAdminGrant +--- +name: hooks-admin-org-admin-grant +description: Records of admin role grants and revocations between members +--- + +# hooks-admin-org-admin-grant -React Query hooks for OrgAdminGrant data operations +Records of admin role grants and revocations between members ## Usage diff --git a/skills/hooks-admin-org-chart-edge-grant/SKILL.md b/skills/hooks-admin-org-chart-edge-grant/SKILL.md new file mode 100644 index 000000000..4b8d96259 --- /dev/null +++ b/skills/hooks-admin-org-chart-edge-grant/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-admin-org-chart-edge-grant +description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +--- + +# hooks-admin-org-chart-edge-grant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +useOrgChartEdgeGrantsQuery({ selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useOrgChartEdgeGrantQuery({ id: '', selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeGrantMutation({}) +``` + +## Examples + +### List all orgChartEdgeGrants + +```typescript +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); +``` + +### Create a orgChartEdgeGrant + +```typescript +const { mutate } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/skills/hooks-admin-org-chart-edge/SKILL.md b/skills/hooks-admin-org-chart-edge/SKILL.md new file mode 100644 index 000000000..6769b47b8 --- /dev/null +++ b/skills/hooks-admin-org-chart-edge/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-admin-org-chart-edge +description: Organizational chart edges defining parent-child reporting relationships between members within an entity +--- + +# hooks-admin-org-chart-edge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +useOrgChartEdgesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useOrgChartEdgeQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeMutation({}) +``` + +## Examples + +### List all orgChartEdges + +```typescript +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); +``` + +### Create a orgChartEdge + +```typescript +const { mutate } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md b/skills/hooks-admin-org-claimed-invite/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md rename to skills/hooks-admin-org-claimed-invite/SKILL.md index cb033587c..f9426c31a 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md +++ b/skills/hooks-admin-org-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgClaimedInvite +--- +name: hooks-admin-org-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# hooks-admin-org-claimed-invite -React Query hooks for OrgClaimedInvite data operations +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/skills/hooks-admin-org-get-managers-record/SKILL.md b/skills/hooks-admin-org-get-managers-record/SKILL.md new file mode 100644 index 000000000..92aa513b7 --- /dev/null +++ b/skills/hooks-admin-org-get-managers-record/SKILL.md @@ -0,0 +1,36 @@ +--- +name: hooks-admin-org-get-managers-record +description: React Query hooks for OrgGetManagersRecord data operations +--- + +# hooks-admin-org-get-managers-record + + + +React Query hooks for OrgGetManagersRecord data operations + +## Usage + +```typescript +useOrgGetManagersQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetManagers + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetManagersRecord + +```typescript +const { mutate } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/skills/hooks-admin-org-get-subordinates-record/SKILL.md b/skills/hooks-admin-org-get-subordinates-record/SKILL.md new file mode 100644 index 000000000..001b13dbd --- /dev/null +++ b/skills/hooks-admin-org-get-subordinates-record/SKILL.md @@ -0,0 +1,36 @@ +--- +name: hooks-admin-org-get-subordinates-record +description: React Query hooks for OrgGetSubordinatesRecord data operations +--- + +# hooks-admin-org-get-subordinates-record + + + +React Query hooks for OrgGetSubordinatesRecord data operations + +## Usage + +```typescript +useOrgGetSubordinatesQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetSubordinates + +```typescript +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgGrant.md b/skills/hooks-admin-org-grant/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/hooks/skills/orgGrant.md rename to skills/hooks-admin-org-grant/SKILL.md index f70a2a0f2..cf9435057 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgGrant.md +++ b/skills/hooks-admin-org-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgGrant +--- +name: hooks-admin-org-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# hooks-admin-org-grant -React Query hooks for OrgGrant data operations +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgInvite.md b/skills/hooks-admin-org-invite/SKILL.md similarity index 85% rename from sdk/constructive-react/src/admin/hooks/skills/orgInvite.md rename to skills/hooks-admin-org-invite/SKILL.md index d4eefbee2..ddaaa4d1b 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgInvite.md +++ b/skills/hooks-admin-org-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgInvite +--- +name: hooks-admin-org-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# hooks-admin-org-invite -React Query hooks for OrgInvite data operations +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/skills/hooks-admin-org-is-manager-of/SKILL.md b/skills/hooks-admin-org-is-manager-of/SKILL.md new file mode 100644 index 000000000..c59eb164b --- /dev/null +++ b/skills/hooks-admin-org-is-manager-of/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-admin-org-is-manager-of +description: React Query query hook for orgIsManagerOf +--- + +# hooks-admin-org-is-manager-of + + + +React Query query hook for orgIsManagerOf + +## Usage + +```typescript +useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }) +``` + +## Examples + +### Use useOrgIsManagerOfQuery + +```typescript +const { data, isLoading } = useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md b/skills/hooks-admin-org-limit-default/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md rename to skills/hooks-admin-org-limit-default/SKILL.md index e2e1703ab..884aacc41 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md +++ b/skills/hooks-admin-org-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgLimitDefault +--- +name: hooks-admin-org-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# hooks-admin-org-limit-default -React Query hooks for OrgLimitDefault data operations +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgLimit.md b/skills/hooks-admin-org-limit/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/hooks/skills/orgLimit.md rename to skills/hooks-admin-org-limit/SKILL.md index 95dfb47a3..bbc7c04d7 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgLimit.md +++ b/skills/hooks-admin-org-limit/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgLimit +--- +name: hooks-admin-org-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# hooks-admin-org-limit -React Query hooks for OrgLimit data operations +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgMember.md b/skills/hooks-admin-org-member/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/orgMember.md rename to skills/hooks-admin-org-member/SKILL.md index a95727212..c1c6d38de 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgMember.md +++ b/skills/hooks-admin-org-member/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgMember +--- +name: hooks-admin-org-member +description: Simplified view of active members in an entity, used for listing who belongs to an org or group +--- + +# hooks-admin-org-member -React Query hooks for OrgMember data operations +Simplified view of active members in an entity, used for listing who belongs to an org or group ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md b/skills/hooks-admin-org-membership-default/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md rename to skills/hooks-admin-org-membership-default/SKILL.md index 21bdb9eb7..43d5f63de 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md +++ b/skills/hooks-admin-org-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgMembershipDefault +--- +name: hooks-admin-org-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# hooks-admin-org-membership-default -React Query hooks for OrgMembershipDefault data operations +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgMembership.md b/skills/hooks-admin-org-membership/SKILL.md similarity index 75% rename from sdk/constructive-react/src/admin/hooks/skills/orgMembership.md rename to skills/hooks-admin-org-membership/SKILL.md index ded9a40c5..377d0bd08 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgMembership.md +++ b/skills/hooks-admin-org-membership/SKILL.md @@ -1,14 +1,19 @@ -# hooks-orgMembership +--- +name: hooks-admin-org-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# hooks-admin-org-membership -React Query hooks for OrgMembership data operations +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript -useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) -useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) +useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) +useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipMutation({}) @@ -20,7 +25,7 @@ useDeleteOrgMembershipMutation({}) ```typescript const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useOrgMembershipsQuery({ const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md b/skills/hooks-admin-org-owner-grant/SKILL.md similarity index 84% rename from sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md rename to skills/hooks-admin-org-owner-grant/SKILL.md index b26688557..00198b9b4 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md +++ b/skills/hooks-admin-org-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgOwnerGrant +--- +name: hooks-admin-org-owner-grant +description: Records of ownership transfers and grants between members +--- + +# hooks-admin-org-owner-grant -React Query hooks for OrgOwnerGrant data operations +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md b/skills/hooks-admin-org-permission-default/SKILL.md similarity index 78% rename from sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md rename to skills/hooks-admin-org-permission-default/SKILL.md index 31e59c0dc..9c2cb1940 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md +++ b/skills/hooks-admin-org-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgPermissionDefault +--- +name: hooks-admin-org-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# hooks-admin-org-permission-default -React Query hooks for OrgPermissionDefault data operations +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermission.md b/skills/hooks-admin-org-permission/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/hooks/skills/orgPermission.md rename to skills/hooks-admin-org-permission/SKILL.md index babce4b02..43207127e 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermission.md +++ b/skills/hooks-admin-org-permission/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgPermission +--- +name: hooks-admin-org-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# hooks-admin-org-permission -React Query hooks for OrgPermission data operations +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md b/skills/hooks-admin-org-permissions-get-by-mask/SKILL.md similarity index 73% rename from sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md rename to skills/hooks-admin-org-permissions-get-by-mask/SKILL.md index d21ac66dd..cc1d6e149 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md +++ b/skills/hooks-admin-org-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetByMask +--- +name: hooks-admin-org-permissions-get-by-mask +description: Reads and enables pagination through a set of `OrgPermission`. +--- + +# hooks-admin-org-permissions-get-by-mask diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md b/skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md similarity index 67% rename from sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md rename to skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md index 7f0f4452d..93eb2a652 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md +++ b/skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetMaskByNames +--- +name: hooks-admin-org-permissions-get-mask-by-names +description: React Query query hook for orgPermissionsGetMaskByNames +--- + +# hooks-admin-org-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md b/skills/hooks-admin-org-permissions-get-mask/SKILL.md similarity index 68% rename from sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md rename to skills/hooks-admin-org-permissions-get-mask/SKILL.md index cfa5b4302..5798c0f0c 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md +++ b/skills/hooks-admin-org-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetMask +--- +name: hooks-admin-org-permissions-get-mask +description: React Query query hook for orgPermissionsGetMask +--- + +# hooks-admin-org-permissions-get-mask diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md b/skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md similarity index 67% rename from sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md rename to skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md index 9ff601b07..f2475abfc 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md +++ b/skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetPaddedMask +--- +name: hooks-admin-org-permissions-get-padded-mask +description: React Query query hook for orgPermissionsGetPaddedMask +--- + +# hooks-admin-org-permissions-get-padded-mask diff --git a/sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md b/skills/hooks-admin-steps-achieved/SKILL.md similarity index 73% rename from sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md rename to skills/hooks-admin-steps-achieved/SKILL.md index c5e1f6bda..fe7b17c8e 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md +++ b/skills/hooks-admin-steps-achieved/SKILL.md @@ -1,4 +1,9 @@ -# hooks-stepsAchieved +--- +name: hooks-admin-steps-achieved +description: React Query query hook for stepsAchieved +--- + +# hooks-admin-steps-achieved diff --git a/sdk/constructive-react/src/public/hooks/skills/stepsRequired.md b/skills/hooks-admin-steps-required/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/stepsRequired.md rename to skills/hooks-admin-steps-required/SKILL.md index 6862ec2dd..3919a7314 100644 --- a/sdk/constructive-react/src/public/hooks/skills/stepsRequired.md +++ b/skills/hooks-admin-steps-required/SKILL.md @@ -1,4 +1,9 @@ -# hooks-stepsRequired +--- +name: hooks-admin-steps-required +description: Reads and enables pagination through a set of `AppLevelRequirement`. +--- + +# hooks-admin-steps-required diff --git a/sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md b/skills/hooks-admin-submit-invite-code/SKILL.md similarity index 72% rename from sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md rename to skills/hooks-admin-submit-invite-code/SKILL.md index 54388f821..7d3a3484c 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md +++ b/skills/hooks-admin-submit-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# hooks-submitInviteCode +--- +name: hooks-admin-submit-invite-code +description: React Query mutation hook for submitInviteCode +--- + +# hooks-admin-submit-invite-code diff --git a/sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md b/skills/hooks-admin-submit-org-invite-code/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md rename to skills/hooks-admin-submit-org-invite-code/SKILL.md index c61b24f83..f971e5345 100644 --- a/sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md +++ b/skills/hooks-admin-submit-org-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# hooks-submitOrgInviteCode +--- +name: hooks-admin-submit-org-invite-code +description: React Query mutation hook for submitOrgInviteCode +--- + +# hooks-admin-submit-org-invite-code diff --git a/sdk/constructive-react/src/public/hooks/skills/auditLog.md b/skills/hooks-auth-audit-log/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/hooks/skills/auditLog.md rename to skills/hooks-auth-audit-log/SKILL.md index 0ca36458e..ed4407e45 100644 --- a/sdk/constructive-react/src/public/hooks/skills/auditLog.md +++ b/skills/hooks-auth-audit-log/SKILL.md @@ -1,8 +1,13 @@ -# hooks-auditLog +--- +name: hooks-auth-audit-log +description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +--- + +# hooks-auth-audit-log -React Query hooks for AuditLog data operations +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/checkPassword.md b/skills/hooks-auth-check-password/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/checkPassword.md rename to skills/hooks-auth-check-password/SKILL.md index 1e3a05a56..6e2e3a6ce 100644 --- a/sdk/constructive-react/src/public/hooks/skills/checkPassword.md +++ b/skills/hooks-auth-check-password/SKILL.md @@ -1,4 +1,9 @@ -# hooks-checkPassword +--- +name: hooks-auth-check-password +description: React Query mutation hook for checkPassword +--- + +# hooks-auth-check-password diff --git a/sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md b/skills/hooks-auth-confirm-delete-account/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md rename to skills/hooks-auth-confirm-delete-account/SKILL.md index a3804e870..8fbc0aad4 100644 --- a/sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md +++ b/skills/hooks-auth-confirm-delete-account/SKILL.md @@ -1,4 +1,9 @@ -# hooks-confirmDeleteAccount +--- +name: hooks-auth-confirm-delete-account +description: React Query mutation hook for confirmDeleteAccount +--- + +# hooks-auth-confirm-delete-account diff --git a/sdk/constructive-react/src/public/hooks/skills/connectedAccount.md b/skills/hooks-auth-connected-account/SKILL.md similarity index 83% rename from sdk/constructive-react/src/public/hooks/skills/connectedAccount.md rename to skills/hooks-auth-connected-account/SKILL.md index b086ecbdf..98efae74c 100644 --- a/sdk/constructive-react/src/public/hooks/skills/connectedAccount.md +++ b/skills/hooks-auth-connected-account/SKILL.md @@ -1,8 +1,13 @@ -# hooks-connectedAccount +--- +name: hooks-auth-connected-account +description: OAuth and social login connections linking external service accounts to users +--- + +# hooks-auth-connected-account -React Query hooks for ConnectedAccount data operations +OAuth and social login connections linking external service accounts to users ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md b/skills/hooks-auth-crypto-address/SKILL.md similarity index 79% rename from sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md rename to skills/hooks-auth-crypto-address/SKILL.md index c7f4682ce..549cdf080 100644 --- a/sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md +++ b/skills/hooks-auth-crypto-address/SKILL.md @@ -1,8 +1,13 @@ -# hooks-cryptoAddress +--- +name: hooks-auth-crypto-address +description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification +--- + +# hooks-auth-crypto-address -React Query hooks for CryptoAddress data operations +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md b/skills/hooks-auth-current-ip-address/SKILL.md similarity index 67% rename from sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md rename to skills/hooks-auth-current-ip-address/SKILL.md index e972130f5..805e6dad6 100644 --- a/sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md +++ b/skills/hooks-auth-current-ip-address/SKILL.md @@ -1,4 +1,9 @@ -# hooks-currentIpAddress +--- +name: hooks-auth-current-ip-address +description: React Query query hook for currentIpAddress +--- + +# hooks-auth-current-ip-address diff --git a/sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md b/skills/hooks-auth-current-user-agent/SKILL.md similarity index 67% rename from sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md rename to skills/hooks-auth-current-user-agent/SKILL.md index 2df182c94..c9cc046b4 100644 --- a/sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md +++ b/skills/hooks-auth-current-user-agent/SKILL.md @@ -1,4 +1,9 @@ -# hooks-currentUserAgent +--- +name: hooks-auth-current-user-agent +description: React Query query hook for currentUserAgent +--- + +# hooks-auth-current-user-agent diff --git a/sdk/constructive-react/src/public/hooks/skills/currentUserId.md b/skills/hooks-auth-current-user-id/SKILL.md similarity index 68% rename from sdk/constructive-react/src/public/hooks/skills/currentUserId.md rename to skills/hooks-auth-current-user-id/SKILL.md index 076feac70..fabc307ba 100644 --- a/sdk/constructive-react/src/public/hooks/skills/currentUserId.md +++ b/skills/hooks-auth-current-user-id/SKILL.md @@ -1,4 +1,9 @@ -# hooks-currentUserId +--- +name: hooks-auth-current-user-id +description: React Query query hook for currentUserId +--- + +# hooks-auth-current-user-id diff --git a/sdk/constructive-react/src/public/hooks/skills/currentUser.md b/skills/hooks-auth-current-user/SKILL.md similarity index 68% rename from sdk/constructive-react/src/public/hooks/skills/currentUser.md rename to skills/hooks-auth-current-user/SKILL.md index 4467284e4..b8b653f72 100644 --- a/sdk/constructive-react/src/public/hooks/skills/currentUser.md +++ b/skills/hooks-auth-current-user/SKILL.md @@ -1,4 +1,9 @@ -# hooks-currentUser +--- +name: hooks-auth-current-user +description: React Query query hook for currentUser +--- + +# hooks-auth-current-user diff --git a/sdk/constructive-react/src/public/hooks/skills/email.md b/skills/hooks-auth-email/SKILL.md similarity index 83% rename from sdk/constructive-react/src/public/hooks/skills/email.md rename to skills/hooks-auth-email/SKILL.md index f89e18fa5..8c3dfac9e 100644 --- a/sdk/constructive-react/src/public/hooks/skills/email.md +++ b/skills/hooks-auth-email/SKILL.md @@ -1,8 +1,13 @@ -# hooks-email +--- +name: hooks-auth-email +description: User email addresses with verification and primary-email management +--- + +# hooks-auth-email -React Query hooks for Email data operations +User email addresses with verification and primary-email management ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md b/skills/hooks-auth-extend-token-expires/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md rename to skills/hooks-auth-extend-token-expires/SKILL.md index 54ce19f07..f461e5be3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md +++ b/skills/hooks-auth-extend-token-expires/SKILL.md @@ -1,4 +1,9 @@ -# hooks-extendTokenExpires +--- +name: hooks-auth-extend-token-expires +description: React Query mutation hook for extendTokenExpires +--- + +# hooks-auth-extend-token-expires diff --git a/sdk/constructive-react/src/public/hooks/skills/forgotPassword.md b/skills/hooks-auth-forgot-password/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/forgotPassword.md rename to skills/hooks-auth-forgot-password/SKILL.md index fba9ffcb2..3ac4d83a5 100644 --- a/sdk/constructive-react/src/public/hooks/skills/forgotPassword.md +++ b/skills/hooks-auth-forgot-password/SKILL.md @@ -1,4 +1,9 @@ -# hooks-forgotPassword +--- +name: hooks-auth-forgot-password +description: React Query mutation hook for forgotPassword +--- + +# hooks-auth-forgot-password diff --git a/sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md b/skills/hooks-auth-one-time-token/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md rename to skills/hooks-auth-one-time-token/SKILL.md index cfe0d893f..c55c8ed22 100644 --- a/sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md +++ b/skills/hooks-auth-one-time-token/SKILL.md @@ -1,4 +1,9 @@ -# hooks-oneTimeToken +--- +name: hooks-auth-one-time-token +description: React Query mutation hook for oneTimeToken +--- + +# hooks-auth-one-time-token diff --git a/sdk/constructive-react/src/public/hooks/skills/phoneNumber.md b/skills/hooks-auth-phone-number/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/phoneNumber.md rename to skills/hooks-auth-phone-number/SKILL.md index 643a1e6f9..4d24983ba 100644 --- a/sdk/constructive-react/src/public/hooks/skills/phoneNumber.md +++ b/skills/hooks-auth-phone-number/SKILL.md @@ -1,8 +1,13 @@ -# hooks-phoneNumber +--- +name: hooks-auth-phone-number +description: User phone numbers with country code, verification, and primary-number management +--- + +# hooks-auth-phone-number -React Query hooks for PhoneNumber data operations +User phone numbers with country code, verification, and primary-number management ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/resetPassword.md b/skills/hooks-auth-reset-password/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/resetPassword.md rename to skills/hooks-auth-reset-password/SKILL.md index f4d93698a..cf2530bd4 100644 --- a/sdk/constructive-react/src/public/hooks/skills/resetPassword.md +++ b/skills/hooks-auth-reset-password/SKILL.md @@ -1,4 +1,9 @@ -# hooks-resetPassword +--- +name: hooks-auth-reset-password +description: React Query mutation hook for resetPassword +--- + +# hooks-auth-reset-password diff --git a/sdk/constructive-react/src/public/hooks/skills/roleType.md b/skills/hooks-auth-role-type/SKILL.md similarity index 86% rename from sdk/constructive-react/src/public/hooks/skills/roleType.md rename to skills/hooks-auth-role-type/SKILL.md index b1716f353..0e983ae39 100644 --- a/sdk/constructive-react/src/public/hooks/skills/roleType.md +++ b/skills/hooks-auth-role-type/SKILL.md @@ -1,4 +1,9 @@ -# hooks-roleType +--- +name: hooks-auth-role-type +description: React Query hooks for RoleType data operations +--- + +# hooks-auth-role-type diff --git a/sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md b/skills/hooks-auth-send-account-deletion-email/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md rename to skills/hooks-auth-send-account-deletion-email/SKILL.md index f6b77609e..772a19483 100644 --- a/sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md +++ b/skills/hooks-auth-send-account-deletion-email/SKILL.md @@ -1,4 +1,9 @@ -# hooks-sendAccountDeletionEmail +--- +name: hooks-auth-send-account-deletion-email +description: React Query mutation hook for sendAccountDeletionEmail +--- + +# hooks-auth-send-account-deletion-email diff --git a/sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md b/skills/hooks-auth-send-verification-email/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md rename to skills/hooks-auth-send-verification-email/SKILL.md index 0b2dd7d1f..4a0ea5851 100644 --- a/sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md +++ b/skills/hooks-auth-send-verification-email/SKILL.md @@ -1,4 +1,9 @@ -# hooks-sendVerificationEmail +--- +name: hooks-auth-send-verification-email +description: React Query mutation hook for sendVerificationEmail +--- + +# hooks-auth-send-verification-email diff --git a/sdk/constructive-react/src/public/hooks/skills/setPassword.md b/skills/hooks-auth-set-password/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/setPassword.md rename to skills/hooks-auth-set-password/SKILL.md index d0c5dd0f7..3bd39a04b 100644 --- a/sdk/constructive-react/src/public/hooks/skills/setPassword.md +++ b/skills/hooks-auth-set-password/SKILL.md @@ -1,4 +1,9 @@ -# hooks-setPassword +--- +name: hooks-auth-set-password +description: React Query mutation hook for setPassword +--- + +# hooks-auth-set-password diff --git a/sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md b/skills/hooks-auth-sign-in-one-time-token/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md rename to skills/hooks-auth-sign-in-one-time-token/SKILL.md index 9326b4fca..e8e9d7eb7 100644 --- a/sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md +++ b/skills/hooks-auth-sign-in-one-time-token/SKILL.md @@ -1,4 +1,9 @@ -# hooks-signInOneTimeToken +--- +name: hooks-auth-sign-in-one-time-token +description: React Query mutation hook for signInOneTimeToken +--- + +# hooks-auth-sign-in-one-time-token diff --git a/sdk/constructive-react/src/public/hooks/skills/signIn.md b/skills/hooks-auth-sign-in/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/signIn.md rename to skills/hooks-auth-sign-in/SKILL.md index f55de032e..843007613 100644 --- a/sdk/constructive-react/src/public/hooks/skills/signIn.md +++ b/skills/hooks-auth-sign-in/SKILL.md @@ -1,4 +1,9 @@ -# hooks-signIn +--- +name: hooks-auth-sign-in +description: React Query mutation hook for signIn +--- + +# hooks-auth-sign-in diff --git a/sdk/constructive-react/src/public/hooks/skills/signOut.md b/skills/hooks-auth-sign-out/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/signOut.md rename to skills/hooks-auth-sign-out/SKILL.md index 1be81c9ef..546566eb6 100644 --- a/sdk/constructive-react/src/public/hooks/skills/signOut.md +++ b/skills/hooks-auth-sign-out/SKILL.md @@ -1,4 +1,9 @@ -# hooks-signOut +--- +name: hooks-auth-sign-out +description: React Query mutation hook for signOut +--- + +# hooks-auth-sign-out diff --git a/sdk/constructive-react/src/public/hooks/skills/signUp.md b/skills/hooks-auth-sign-up/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/signUp.md rename to skills/hooks-auth-sign-up/SKILL.md index ab7ff4422..d1a561df3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/signUp.md +++ b/skills/hooks-auth-sign-up/SKILL.md @@ -1,4 +1,9 @@ -# hooks-signUp +--- +name: hooks-auth-sign-up +description: React Query mutation hook for signUp +--- + +# hooks-auth-sign-up diff --git a/sdk/constructive-react/src/public/hooks/skills/user.md b/skills/hooks-auth-user/SKILL.md similarity index 92% rename from sdk/constructive-react/src/public/hooks/skills/user.md rename to skills/hooks-auth-user/SKILL.md index d9044e83c..ef164721b 100644 --- a/sdk/constructive-react/src/public/hooks/skills/user.md +++ b/skills/hooks-auth-user/SKILL.md @@ -1,4 +1,9 @@ -# hooks-user +--- +name: hooks-auth-user +description: React Query hooks for User data operations +--- + +# hooks-auth-user diff --git a/sdk/constructive-react/src/public/hooks/skills/verifyEmail.md b/skills/hooks-auth-verify-email/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/verifyEmail.md rename to skills/hooks-auth-verify-email/SKILL.md index 67e42fb87..0a02f16b9 100644 --- a/sdk/constructive-react/src/public/hooks/skills/verifyEmail.md +++ b/skills/hooks-auth-verify-email/SKILL.md @@ -1,4 +1,9 @@ -# hooks-verifyEmail +--- +name: hooks-auth-verify-email +description: React Query mutation hook for verifyEmail +--- + +# hooks-auth-verify-email diff --git a/sdk/constructive-react/src/public/hooks/skills/verifyPassword.md b/skills/hooks-auth-verify-password/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/verifyPassword.md rename to skills/hooks-auth-verify-password/SKILL.md index a1e5074c6..d89211222 100644 --- a/sdk/constructive-react/src/public/hooks/skills/verifyPassword.md +++ b/skills/hooks-auth-verify-password/SKILL.md @@ -1,4 +1,9 @@ -# hooks-verifyPassword +--- +name: hooks-auth-verify-password +description: React Query mutation hook for verifyPassword +--- + +# hooks-auth-verify-password diff --git a/sdk/constructive-react/src/public/hooks/skills/verifyTotp.md b/skills/hooks-auth-verify-totp/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/verifyTotp.md rename to skills/hooks-auth-verify-totp/SKILL.md index d2b9ad825..f3c1f41dc 100644 --- a/sdk/constructive-react/src/public/hooks/skills/verifyTotp.md +++ b/skills/hooks-auth-verify-totp/SKILL.md @@ -1,4 +1,9 @@ -# hooks-verifyTotp +--- +name: hooks-auth-verify-totp +description: React Query mutation hook for verifyTotp +--- + +# hooks-auth-verify-totp diff --git a/skills/hooks-objects-commit/SKILL.md b/skills/hooks-objects-commit/SKILL.md new file mode 100644 index 000000000..3442d9043 --- /dev/null +++ b/skills/hooks-objects-commit/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-objects-commit +description: A commit records changes to the repository. +--- + +# hooks-objects-commit + + + +A commit records changes to the repository. + +## Usage + +```typescript +useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCreateCommitMutation({ selection: { fields: { id: true } } }) +useUpdateCommitMutation({ selection: { fields: { id: true } } }) +useDeleteCommitMutation({}) +``` + +## Examples + +### List all commits + +```typescript +const { data, isLoading } = useCommitsQuery({ + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); +``` + +### Create a commit + +```typescript +const { mutate } = useCreateCommitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` diff --git a/skills/hooks-objects-freeze-objects/SKILL.md b/skills/hooks-objects-freeze-objects/SKILL.md new file mode 100644 index 000000000..9dd477b33 --- /dev/null +++ b/skills/hooks-objects-freeze-objects/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-freeze-objects +description: React Query mutation hook for freezeObjects +--- + +# hooks-objects-freeze-objects + + + +React Query mutation hook for freezeObjects + +## Usage + +```typescript +const { mutate } = useFreezeObjectsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useFreezeObjectsMutation + +```typescript +const { mutate, isLoading } = useFreezeObjectsMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-get-all-objects-from-root/SKILL.md b/skills/hooks-objects-get-all-objects-from-root/SKILL.md new file mode 100644 index 000000000..dc19f94eb --- /dev/null +++ b/skills/hooks-objects-get-all-objects-from-root/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-objects-get-all-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# hooks-objects-get-all-objects-from-root + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useGetAllObjectsFromRootQuery + +```typescript +const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-objects-get-all-record/SKILL.md b/skills/hooks-objects-get-all-record/SKILL.md new file mode 100644 index 000000000..adc064d0f --- /dev/null +++ b/skills/hooks-objects-get-all-record/SKILL.md @@ -0,0 +1,36 @@ +--- +name: hooks-objects-get-all-record +description: React Query hooks for GetAllRecord data operations +--- + +# hooks-objects-get-all-record + + + +React Query hooks for GetAllRecord data operations + +## Usage + +```typescript +useGetAllQuery({ selection: { fields: { path: true, data: true } } }) +useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all getAll + +```typescript +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); +``` + +### Create a getAllRecord + +```typescript +const { mutate } = useCreateGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ path: '', data: '' }); +``` diff --git a/skills/hooks-objects-get-object-at-path/SKILL.md b/skills/hooks-objects-get-object-at-path/SKILL.md new file mode 100644 index 000000000..efaf36fe9 --- /dev/null +++ b/skills/hooks-objects-get-object-at-path/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-objects-get-object-at-path +description: React Query query hook for getObjectAtPath +--- + +# hooks-objects-get-object-at-path + + + +React Query query hook for getObjectAtPath + +## Usage + +```typescript +useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +``` + +## Examples + +### Use useGetObjectAtPathQuery + +```typescript +const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +``` diff --git a/skills/hooks-objects-get-path-objects-from-root/SKILL.md b/skills/hooks-objects-get-path-objects-from-root/SKILL.md new file mode 100644 index 000000000..57a1ed039 --- /dev/null +++ b/skills/hooks-objects-get-path-objects-from-root/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-objects-get-path-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# hooks-objects-get-path-objects-from-root + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useGetPathObjectsFromRootQuery + +```typescript +const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-objects-init-empty-repo/SKILL.md b/skills/hooks-objects-init-empty-repo/SKILL.md new file mode 100644 index 000000000..36ef3f15c --- /dev/null +++ b/skills/hooks-objects-init-empty-repo/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-init-empty-repo +description: React Query mutation hook for initEmptyRepo +--- + +# hooks-objects-init-empty-repo + + + +React Query mutation hook for initEmptyRepo + +## Usage + +```typescript +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInitEmptyRepoMutation + +```typescript +const { mutate, isLoading } = useInitEmptyRepoMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-insert-node-at-path/SKILL.md b/skills/hooks-objects-insert-node-at-path/SKILL.md new file mode 100644 index 000000000..a6d8a6a24 --- /dev/null +++ b/skills/hooks-objects-insert-node-at-path/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-insert-node-at-path +description: React Query mutation hook for insertNodeAtPath +--- + +# hooks-objects-insert-node-at-path + + + +React Query mutation hook for insertNodeAtPath + +## Usage + +```typescript +const { mutate } = useInsertNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInsertNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useInsertNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-object/SKILL.md b/skills/hooks-objects-object/SKILL.md new file mode 100644 index 000000000..ea7e36494 --- /dev/null +++ b/skills/hooks-objects-object/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-objects-object +description: React Query hooks for Object data operations +--- + +# hooks-objects-object + + + +React Query hooks for Object data operations + +## Usage + +```typescript +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useCreateObjectMutation({ selection: { fields: { id: true } } }) +useUpdateObjectMutation({ selection: { fields: { id: true } } }) +useDeleteObjectMutation({}) +``` + +## Examples + +### List all objects + +```typescript +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); +``` + +### Create a object + +```typescript +const { mutate } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` diff --git a/skills/hooks-objects-ref/SKILL.md b/skills/hooks-objects-ref/SKILL.md new file mode 100644 index 000000000..358fde457 --- /dev/null +++ b/skills/hooks-objects-ref/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-objects-ref +description: A ref is a data structure for pointing to a commit. +--- + +# hooks-objects-ref + + + +A ref is a data structure for pointing to a commit. + +## Usage + +```typescript +useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useCreateRefMutation({ selection: { fields: { id: true } } }) +useUpdateRefMutation({ selection: { fields: { id: true } } }) +useDeleteRefMutation({}) +``` + +## Examples + +### List all refs + +```typescript +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); +``` + +### Create a ref + +```typescript +const { mutate } = useCreateRefMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +``` diff --git a/skills/hooks-objects-remove-node-at-path/SKILL.md b/skills/hooks-objects-remove-node-at-path/SKILL.md new file mode 100644 index 000000000..1b1db3d7c --- /dev/null +++ b/skills/hooks-objects-remove-node-at-path/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-remove-node-at-path +description: React Query mutation hook for removeNodeAtPath +--- + +# hooks-objects-remove-node-at-path + + + +React Query mutation hook for removeNodeAtPath + +## Usage + +```typescript +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useRemoveNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useRemoveNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-rev-parse/SKILL.md b/skills/hooks-objects-rev-parse/SKILL.md new file mode 100644 index 000000000..3b08f65b0 --- /dev/null +++ b/skills/hooks-objects-rev-parse/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-objects-rev-parse +description: React Query query hook for revParse +--- + +# hooks-objects-rev-parse + + + +React Query query hook for revParse + +## Usage + +```typescript +useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +``` + +## Examples + +### Use useRevParseQuery + +```typescript +const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +``` diff --git a/skills/hooks-objects-set-and-commit/SKILL.md b/skills/hooks-objects-set-and-commit/SKILL.md new file mode 100644 index 000000000..cb5bba34d --- /dev/null +++ b/skills/hooks-objects-set-and-commit/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-set-and-commit +description: React Query mutation hook for setAndCommit +--- + +# hooks-objects-set-and-commit + + + +React Query mutation hook for setAndCommit + +## Usage + +```typescript +const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-set-data-at-path/SKILL.md b/skills/hooks-objects-set-data-at-path/SKILL.md new file mode 100644 index 000000000..7afe7e38b --- /dev/null +++ b/skills/hooks-objects-set-data-at-path/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-set-data-at-path +description: React Query mutation hook for setDataAtPath +--- + +# hooks-objects-set-data-at-path + + + +React Query mutation hook for setDataAtPath + +## Usage + +```typescript +const { mutate } = useSetDataAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetDataAtPathMutation + +```typescript +const { mutate, isLoading } = useSetDataAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-set-props-and-commit/SKILL.md b/skills/hooks-objects-set-props-and-commit/SKILL.md new file mode 100644 index 000000000..74f7098f4 --- /dev/null +++ b/skills/hooks-objects-set-props-and-commit/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-set-props-and-commit +description: React Query mutation hook for setPropsAndCommit +--- + +# hooks-objects-set-props-and-commit + + + +React Query mutation hook for setPropsAndCommit + +## Usage + +```typescript +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPropsAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetPropsAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects-store/SKILL.md b/skills/hooks-objects-store/SKILL.md new file mode 100644 index 000000000..351af0d2f --- /dev/null +++ b/skills/hooks-objects-store/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-objects-store +description: A store represents an isolated object repository within a database. +--- + +# hooks-objects-store + + + +A store represents an isolated object repository within a database. + +## Usage + +```typescript +useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useCreateStoreMutation({ selection: { fields: { id: true } } }) +useUpdateStoreMutation({ selection: { fields: { id: true } } }) +useDeleteStoreMutation({}) +``` + +## Examples + +### List all stores + +```typescript +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); +``` + +### Create a store + +```typescript +const { mutate } = useCreateStoreMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', hash: '' }); +``` diff --git a/skills/hooks-objects-update-node-at-path/SKILL.md b/skills/hooks-objects-update-node-at-path/SKILL.md new file mode 100644 index 000000000..0a005d4ff --- /dev/null +++ b/skills/hooks-objects-update-node-at-path/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-objects-update-node-at-path +description: React Query mutation hook for updateNodeAtPath +--- + +# hooks-objects-update-node-at-path + + + +React Query mutation hook for updateNodeAtPath + +## Usage + +```typescript +const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useUpdateNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useUpdateNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/apiModule.md b/skills/hooks-public-api-module/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/apiModule.md rename to skills/hooks-public-api-module/SKILL.md index adc541569..a7534da3d 100644 --- a/sdk/constructive-react/src/public/hooks/skills/apiModule.md +++ b/skills/hooks-public-api-module/SKILL.md @@ -1,8 +1,13 @@ -# hooks-apiModule +--- +name: hooks-public-api-module +description: Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server +--- + +# hooks-public-api-module -React Query hooks for ApiModule data operations +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/apiSchema.md b/skills/hooks-public-api-schema/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/apiSchema.md rename to skills/hooks-public-api-schema/SKILL.md index d61de7ed1..f21a8fb71 100644 --- a/sdk/constructive-react/src/public/hooks/skills/apiSchema.md +++ b/skills/hooks-public-api-schema/SKILL.md @@ -1,8 +1,13 @@ -# hooks-apiSchema +--- +name: hooks-public-api-schema +description: Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API +--- + +# hooks-public-api-schema -React Query hooks for ApiSchema data operations +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/api.md b/skills/hooks-public-api/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/api.md rename to skills/hooks-public-api/SKILL.md index 90998c07c..e5c7d8999 100644 --- a/sdk/constructive-react/src/public/hooks/skills/api.md +++ b/skills/hooks-public-api/SKILL.md @@ -1,8 +1,13 @@ -# hooks-api +--- +name: hooks-public-api +description: API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings +--- + +# hooks-public-api -React Query hooks for Api data operations +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appAchievement.md b/skills/hooks-public-app-achievement/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/appAchievement.md rename to skills/hooks-public-app-achievement/SKILL.md index 109aaf8bb..7a620ef63 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appAchievement.md +++ b/skills/hooks-public-app-achievement/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appAchievement +--- +name: hooks-public-app-achievement +description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually +--- + +# hooks-public-app-achievement -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md b/skills/hooks-public-app-admin-grant/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md rename to skills/hooks-public-app-admin-grant/SKILL.md index 6bfebeb38..214e15bb8 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md +++ b/skills/hooks-public-app-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appAdminGrant +--- +name: hooks-public-app-admin-grant +description: Records of admin role grants and revocations between members +--- + +# hooks-public-app-admin-grant -React Query hooks for AppAdminGrant data operations +Records of admin role grants and revocations between members ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appGrant.md b/skills/hooks-public-app-grant/SKILL.md similarity index 81% rename from sdk/constructive-react/src/admin/hooks/skills/appGrant.md rename to skills/hooks-public-app-grant/SKILL.md index be596bddb..652dafc16 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appGrant.md +++ b/skills/hooks-public-app-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appGrant +--- +name: hooks-public-app-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# hooks-public-app-grant -React Query hooks for AppGrant data operations +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md b/skills/hooks-public-app-level-requirement/SKILL.md similarity index 83% rename from sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md rename to skills/hooks-public-app-level-requirement/SKILL.md index 82fdcbb8a..652f53382 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md +++ b/skills/hooks-public-app-level-requirement/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLevelRequirement +--- +name: hooks-public-app-level-requirement +description: Defines the specific requirements that must be met to achieve a level +--- + +# hooks-public-app-level-requirement -Requirements to achieve a level +Defines the specific requirements that must be met to achieve a level ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLevel.md b/skills/hooks-public-app-level/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/hooks/skills/appLevel.md rename to skills/hooks-public-app-level/SKILL.md index bd72a41e7..8471f6039 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appLevel.md +++ b/skills/hooks-public-app-level/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLevel +--- +name: hooks-public-app-level +description: Defines available levels that users can achieve by completing requirements +--- + +# hooks-public-app-level -Levels for achievement +Defines available levels that users can achieve by completing requirements ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md b/skills/hooks-public-app-limit-default/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md rename to skills/hooks-public-app-limit-default/SKILL.md index 9997fe7ae..aa1fc01e6 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md +++ b/skills/hooks-public-app-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLimitDefault +--- +name: hooks-public-app-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# hooks-public-app-limit-default -React Query hooks for AppLimitDefault data operations +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appLimit.md b/skills/hooks-public-app-limit/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/hooks/skills/appLimit.md rename to skills/hooks-public-app-limit/SKILL.md index ea8cb8cc6..b83c6956a 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appLimit.md +++ b/skills/hooks-public-app-limit/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appLimit +--- +name: hooks-public-app-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# hooks-public-app-limit -React Query hooks for AppLimit data operations +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md b/skills/hooks-public-app-membership-default/SKILL.md similarity index 78% rename from sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md rename to skills/hooks-public-app-membership-default/SKILL.md index 7536d11fb..826a92d23 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md +++ b/skills/hooks-public-app-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appMembershipDefault +--- +name: hooks-public-app-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# hooks-public-app-membership-default -React Query hooks for AppMembershipDefault data operations +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appMembership.md b/skills/hooks-public-app-membership/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/appMembership.md rename to skills/hooks-public-app-membership/SKILL.md index ba73841d6..433858033 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appMembership.md +++ b/skills/hooks-public-app-membership/SKILL.md @@ -1,14 +1,19 @@ -# hooks-appMembership +--- +name: hooks-public-app-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# hooks-public-app-membership -React Query hooks for AppMembership data operations +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) +useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) useDeleteAppMembershipMutation({}) @@ -20,7 +25,7 @@ useDeleteAppMembershipMutation({}) ```typescript const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useAppMembershipsQuery({ const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md b/skills/hooks-public-app-owner-grant/SKILL.md similarity index 83% rename from sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md rename to skills/hooks-public-app-owner-grant/SKILL.md index 3b6971d85..b5b73e9a6 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md +++ b/skills/hooks-public-app-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appOwnerGrant +--- +name: hooks-public-app-owner-grant +description: Records of ownership transfers and grants between members +--- + +# hooks-public-app-owner-grant -React Query hooks for AppOwnerGrant data operations +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md b/skills/hooks-public-app-permission-default/SKILL.md similarity index 77% rename from sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md rename to skills/hooks-public-app-permission-default/SKILL.md index d0ab1ab74..aa8e399e1 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md +++ b/skills/hooks-public-app-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appPermissionDefault +--- +name: hooks-public-app-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# hooks-public-app-permission-default -React Query hooks for AppPermissionDefault data operations +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermission.md b/skills/hooks-public-app-permission/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/hooks/skills/appPermission.md rename to skills/hooks-public-app-permission/SKILL.md index 1c7b49ffa..e62b1e1ec 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermission.md +++ b/skills/hooks-public-app-permission/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appPermission +--- +name: hooks-public-app-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# hooks-public-app-permission -React Query hooks for AppPermission data operations +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md b/skills/hooks-public-app-permissions-get-by-mask/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md rename to skills/hooks-public-app-permissions-get-by-mask/SKILL.md index 567bab5a3..28b199da2 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md +++ b/skills/hooks-public-app-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetByMask +--- +name: hooks-public-app-permissions-get-by-mask +description: Reads and enables pagination through a set of `AppPermission`. +--- + +# hooks-public-app-permissions-get-by-mask diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md b/skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md similarity index 67% rename from sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md rename to skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md index 9fbcc74d9..566709683 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md +++ b/skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetMaskByNames +--- +name: hooks-public-app-permissions-get-mask-by-names +description: React Query query hook for appPermissionsGetMaskByNames +--- + +# hooks-public-app-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md b/skills/hooks-public-app-permissions-get-mask/SKILL.md similarity index 68% rename from sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md rename to skills/hooks-public-app-permissions-get-mask/SKILL.md index ec4bfe8b1..50aad33bc 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md +++ b/skills/hooks-public-app-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetMask +--- +name: hooks-public-app-permissions-get-mask +description: React Query query hook for appPermissionsGetMask +--- + +# hooks-public-app-permissions-get-mask diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md b/skills/hooks-public-app-permissions-get-padded-mask/SKILL.md similarity index 67% rename from sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md rename to skills/hooks-public-app-permissions-get-padded-mask/SKILL.md index 73d5aa1d2..3372d600d 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md +++ b/skills/hooks-public-app-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-appPermissionsGetPaddedMask +--- +name: hooks-public-app-permissions-get-padded-mask +description: React Query query hook for appPermissionsGetPaddedMask +--- + +# hooks-public-app-permissions-get-padded-mask diff --git a/sdk/constructive-react/src/public/hooks/skills/appStep.md b/skills/hooks-public-app-step/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/appStep.md rename to skills/hooks-public-app-step/SKILL.md index 9e8de0574..67090f2f3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appStep.md +++ b/skills/hooks-public-app-step/SKILL.md @@ -1,8 +1,13 @@ -# hooks-appStep +--- +name: hooks-public-app-step +description: Log of individual user actions toward level requirements; every single step ever taken is recorded here +--- + +# hooks-public-app-step -The user achieving a requirement for a level. Log table that has every single step ever taken. +Log of individual user actions toward level requirements; every single step ever taken is recorded here ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/app.md b/skills/hooks-public-app/SKILL.md similarity index 83% rename from sdk/constructive-react/src/public/hooks/skills/app.md rename to skills/hooks-public-app/SKILL.md index e548e24dd..d2e07bfbc 100644 --- a/sdk/constructive-react/src/public/hooks/skills/app.md +++ b/skills/hooks-public-app/SKILL.md @@ -1,8 +1,13 @@ -# hooks-app +--- +name: hooks-public-app +description: Mobile and native app configuration linked to a site, including store links and identifiers +--- + +# hooks-public-app -React Query hooks for App data operations +Mobile and native app configuration linked to a site, including store links and identifiers ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/applyRls.md b/skills/hooks-public-apply-rls/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/hooks/skills/applyRls.md rename to skills/hooks-public-apply-rls/SKILL.md index 3a45d7c53..06b2fb22d 100644 --- a/sdk/constructive-react/src/public/hooks/skills/applyRls.md +++ b/skills/hooks-public-apply-rls/SKILL.md @@ -1,4 +1,9 @@ -# hooks-applyRls +--- +name: hooks-public-apply-rls +description: React Query mutation hook for applyRls +--- + +# hooks-public-apply-rls diff --git a/sdk/constructive-react/src/public/hooks/skills/astMigration.md b/skills/hooks-public-ast-migration/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/hooks/skills/astMigration.md rename to skills/hooks-public-ast-migration/SKILL.md index 91bf7e40b..c2da2011c 100644 --- a/sdk/constructive-react/src/public/hooks/skills/astMigration.md +++ b/skills/hooks-public-ast-migration/SKILL.md @@ -1,4 +1,9 @@ -# hooks-astMigration +--- +name: hooks-public-ast-migration +description: React Query hooks for AstMigration data operations +--- + +# hooks-public-ast-migration diff --git a/skills/hooks-public-audit-log/SKILL.md b/skills/hooks-public-audit-log/SKILL.md new file mode 100644 index 000000000..9a9dbb296 --- /dev/null +++ b/skills/hooks-public-audit-log/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-audit-log +description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +--- + +# hooks-public-audit-log + + + +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) +useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) +useCreateAuditLogMutation({ selection: { fields: { id: true } } }) +useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) +useDeleteAuditLogMutation({}) +``` + +## Examples + +### List all auditLogs + +```typescript +const { data, isLoading } = useAuditLogsQuery({ + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +}); +``` + +### Create a auditLog + +```typescript +const { mutate } = useCreateAuditLogMutation({ + selection: { fields: { id: true } }, +}); +mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md b/skills/hooks-public-bootstrap-user/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md rename to skills/hooks-public-bootstrap-user/SKILL.md index 58fc3b185..186d5d26f 100644 --- a/sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md +++ b/skills/hooks-public-bootstrap-user/SKILL.md @@ -1,4 +1,9 @@ -# hooks-bootstrapUser +--- +name: hooks-public-bootstrap-user +description: React Query mutation hook for bootstrapUser +--- + +# hooks-public-bootstrap-user diff --git a/sdk/constructive-react/src/public/hooks/skills/checkConstraint.md b/skills/hooks-public-check-constraint/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/hooks/skills/checkConstraint.md rename to skills/hooks-public-check-constraint/SKILL.md index c8942b6d7..9d1af08af 100644 --- a/sdk/constructive-react/src/public/hooks/skills/checkConstraint.md +++ b/skills/hooks-public-check-constraint/SKILL.md @@ -1,4 +1,9 @@ -# hooks-checkConstraint +--- +name: hooks-public-check-constraint +description: React Query hooks for CheckConstraint data operations +--- + +# hooks-public-check-constraint diff --git a/skills/hooks-public-check-password/SKILL.md b/skills/hooks-public-check-password/SKILL.md new file mode 100644 index 000000000..b21cf237f --- /dev/null +++ b/skills/hooks-public-check-password/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-check-password +description: React Query mutation hook for checkPassword +--- + +# hooks-public-check-password + + + +React Query mutation hook for checkPassword + +## Usage + +```typescript +const { mutate } = useCheckPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCheckPasswordMutation + +```typescript +const { mutate, isLoading } = useCheckPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md b/skills/hooks-public-claimed-invite/SKILL.md similarity index 81% rename from sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md rename to skills/hooks-public-claimed-invite/SKILL.md index 262dff555..916b55acb 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md +++ b/skills/hooks-public-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-claimedInvite +--- +name: hooks-public-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# hooks-public-claimed-invite -React Query hooks for ClaimedInvite data operations +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/commit.md b/skills/hooks-public-commit/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/hooks/skills/commit.md rename to skills/hooks-public-commit/SKILL.md index e828be2df..ac6275cf2 100644 --- a/sdk/constructive-react/src/public/hooks/skills/commit.md +++ b/skills/hooks-public-commit/SKILL.md @@ -1,4 +1,9 @@ -# hooks-commit +--- +name: hooks-public-commit +description: A commit records changes to the repository. +--- + +# hooks-public-commit diff --git a/skills/hooks-public-confirm-delete-account/SKILL.md b/skills/hooks-public-confirm-delete-account/SKILL.md new file mode 100644 index 000000000..b3a004620 --- /dev/null +++ b/skills/hooks-public-confirm-delete-account/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-confirm-delete-account +description: React Query mutation hook for confirmDeleteAccount +--- + +# hooks-public-confirm-delete-account + + + +React Query mutation hook for confirmDeleteAccount + +## Usage + +```typescript +const { mutate } = useConfirmDeleteAccountMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useConfirmDeleteAccountMutation + +```typescript +const { mutate, isLoading } = useConfirmDeleteAccountMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-connected-account/SKILL.md b/skills/hooks-public-connected-account/SKILL.md new file mode 100644 index 000000000..50d310067 --- /dev/null +++ b/skills/hooks-public-connected-account/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-connected-account +description: OAuth and social login connections linking external service accounts to users +--- + +# hooks-public-connected-account + + + +OAuth and social login connections linking external service accounts to users + +## Usage + +```typescript +useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) +useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) +useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) +useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) +useDeleteConnectedAccountMutation({}) +``` + +## Examples + +### List all connectedAccounts + +```typescript +const { data, isLoading } = useConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a connectedAccount + +```typescript +const { mutate } = useCreateConnectedAccountMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md b/skills/hooks-public-connected-accounts-module/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md rename to skills/hooks-public-connected-accounts-module/SKILL.md index f0b27549e..cd55825b9 100644 --- a/sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md +++ b/skills/hooks-public-connected-accounts-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-connectedAccountsModule +--- +name: hooks-public-connected-accounts-module +description: React Query hooks for ConnectedAccountsModule data operations +--- + +# hooks-public-connected-accounts-module diff --git a/sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md b/skills/hooks-public-create-user-database/SKILL.md similarity index 55% rename from sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md rename to skills/hooks-public-create-user-database/SKILL.md index 4f5bf1557..7de080d2f 100644 --- a/sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md +++ b/skills/hooks-public-create-user-database/SKILL.md @@ -1,4 +1,25 @@ -# hooks-createUserDatabase +--- +name: hooks-public-create-user-database +description: Creates a new user database with all required modules, permissions, and RLS policies. + +Parameters: + - database_name: Name for the new database (required) + - owner_id: UUID of the owner user (required) + - include_invites: Include invite system (default: true) + - include_groups: Include group-level memberships (default: false) + - include_levels: Include levels/achievements (default: false) + - bitlen: Bit length for permission masks (default: 64) + - tokens_expiration: Token expiration interval (default: 30 days) + +Returns the database_id UUID of the newly created database. + +Example usage: + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + +--- + +# hooks-public-create-user-database diff --git a/skills/hooks-public-crypto-address/SKILL.md b/skills/hooks-public-crypto-address/SKILL.md new file mode 100644 index 000000000..c3a18ff42 --- /dev/null +++ b/skills/hooks-public-crypto-address/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-crypto-address +description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification +--- + +# hooks-public-crypto-address + + + +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification + +## Usage + +```typescript +useCryptoAddressesQuery({ selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCryptoAddressQuery({ id: '', selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreateCryptoAddressMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAddressMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAddressMutation({}) +``` + +## Examples + +### List all cryptoAddresses + +```typescript +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a cryptoAddress + +```typescript +const { mutate } = useCreateCryptoAddressMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md b/skills/hooks-public-crypto-addresses-module/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md rename to skills/hooks-public-crypto-addresses-module/SKILL.md index 5463bee09..924a847e2 100644 --- a/sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md +++ b/skills/hooks-public-crypto-addresses-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-cryptoAddressesModule +--- +name: hooks-public-crypto-addresses-module +description: React Query hooks for CryptoAddressesModule data operations +--- + +# hooks-public-crypto-addresses-module diff --git a/sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md b/skills/hooks-public-crypto-auth-module/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md rename to skills/hooks-public-crypto-auth-module/SKILL.md index 2da2b54cc..6ecdc04c2 100644 --- a/sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md +++ b/skills/hooks-public-crypto-auth-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-cryptoAuthModule +--- +name: hooks-public-crypto-auth-module +description: React Query hooks for CryptoAuthModule data operations +--- + +# hooks-public-crypto-auth-module diff --git a/skills/hooks-public-current-ip-address/SKILL.md b/skills/hooks-public-current-ip-address/SKILL.md new file mode 100644 index 000000000..6b4996e53 --- /dev/null +++ b/skills/hooks-public-current-ip-address/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-public-current-ip-address +description: React Query query hook for currentIpAddress +--- + +# hooks-public-current-ip-address + + + +React Query query hook for currentIpAddress + +## Usage + +```typescript +useCurrentIpAddressQuery() +``` + +## Examples + +### Use useCurrentIpAddressQuery + +```typescript +const { data, isLoading } = useCurrentIpAddressQuery(); +``` diff --git a/skills/hooks-public-current-user-agent/SKILL.md b/skills/hooks-public-current-user-agent/SKILL.md new file mode 100644 index 000000000..24d4098fa --- /dev/null +++ b/skills/hooks-public-current-user-agent/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-public-current-user-agent +description: React Query query hook for currentUserAgent +--- + +# hooks-public-current-user-agent + + + +React Query query hook for currentUserAgent + +## Usage + +```typescript +useCurrentUserAgentQuery() +``` + +## Examples + +### Use useCurrentUserAgentQuery + +```typescript +const { data, isLoading } = useCurrentUserAgentQuery(); +``` diff --git a/skills/hooks-public-current-user-id/SKILL.md b/skills/hooks-public-current-user-id/SKILL.md new file mode 100644 index 000000000..21cde275d --- /dev/null +++ b/skills/hooks-public-current-user-id/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-public-current-user-id +description: React Query query hook for currentUserId +--- + +# hooks-public-current-user-id + + + +React Query query hook for currentUserId + +## Usage + +```typescript +useCurrentUserIdQuery() +``` + +## Examples + +### Use useCurrentUserIdQuery + +```typescript +const { data, isLoading } = useCurrentUserIdQuery(); +``` diff --git a/skills/hooks-public-current-user/SKILL.md b/skills/hooks-public-current-user/SKILL.md new file mode 100644 index 000000000..057cea899 --- /dev/null +++ b/skills/hooks-public-current-user/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-public-current-user +description: React Query query hook for currentUser +--- + +# hooks-public-current-user + + + +React Query query hook for currentUser + +## Usage + +```typescript +useCurrentUserQuery() +``` + +## Examples + +### Use useCurrentUserQuery + +```typescript +const { data, isLoading } = useCurrentUserQuery(); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md b/skills/hooks-public-database-provision-module/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md rename to skills/hooks-public-database-provision-module/SKILL.md index 5894b19a3..be702ce40 100644 --- a/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md +++ b/skills/hooks-public-database-provision-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-databaseProvisionModule +--- +name: hooks-public-database-provision-module +description: Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. +--- + +# hooks-public-database-provision-module diff --git a/sdk/constructive-react/src/public/hooks/skills/database.md b/skills/hooks-public-database/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/database.md rename to skills/hooks-public-database/SKILL.md index de7fabbbe..9e8e6fe88 100644 --- a/sdk/constructive-react/src/public/hooks/skills/database.md +++ b/skills/hooks-public-database/SKILL.md @@ -1,4 +1,9 @@ -# hooks-database +--- +name: hooks-public-database +description: React Query hooks for Database data operations +--- + +# hooks-public-database diff --git a/sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md b/skills/hooks-public-default-ids-module/SKILL.md similarity index 85% rename from sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md rename to skills/hooks-public-default-ids-module/SKILL.md index a305f6b4e..b7cb7878e 100644 --- a/sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md +++ b/skills/hooks-public-default-ids-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-defaultIdsModule +--- +name: hooks-public-default-ids-module +description: React Query hooks for DefaultIdsModule data operations +--- + +# hooks-public-default-ids-module diff --git a/skills/hooks-public-default-privilege/SKILL.md b/skills/hooks-public-default-privilege/SKILL.md new file mode 100644 index 000000000..7526dfcba --- /dev/null +++ b/skills/hooks-public-default-privilege/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-default-privilege +description: React Query hooks for DefaultPrivilege data operations +--- + +# hooks-public-default-privilege + + + +React Query hooks for DefaultPrivilege data operations + +## Usage + +```typescript +useDefaultPrivilegesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) +useDefaultPrivilegeQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) +useCreateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) +useUpdateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) +useDeleteDefaultPrivilegeMutation({}) +``` + +## Examples + +### List all defaultPrivileges + +```typescript +const { data, isLoading } = useDefaultPrivilegesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); +``` + +### Create a defaultPrivilege + +```typescript +const { mutate } = useCreateDefaultPrivilegeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md b/skills/hooks-public-denormalized-table-field/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md rename to skills/hooks-public-denormalized-table-field/SKILL.md index 0a2ec280f..8418f74f8 100644 --- a/sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md +++ b/skills/hooks-public-denormalized-table-field/SKILL.md @@ -1,4 +1,9 @@ -# hooks-denormalizedTableField +--- +name: hooks-public-denormalized-table-field +description: React Query hooks for DenormalizedTableField data operations +--- + +# hooks-public-denormalized-table-field diff --git a/sdk/constructive-react/src/public/hooks/skills/domain.md b/skills/hooks-public-domain/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/hooks/skills/domain.md rename to skills/hooks-public-domain/SKILL.md index 4e7a784c0..879bc03ab 100644 --- a/sdk/constructive-react/src/public/hooks/skills/domain.md +++ b/skills/hooks-public-domain/SKILL.md @@ -1,8 +1,13 @@ -# hooks-domain +--- +name: hooks-public-domain +description: DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site +--- + +# hooks-public-domain -React Query hooks for Domain data operations +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site ## Usage diff --git a/skills/hooks-public-email/SKILL.md b/skills/hooks-public-email/SKILL.md new file mode 100644 index 000000000..bd8f92b30 --- /dev/null +++ b/skills/hooks-public-email/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-email +description: User email addresses with verification and primary-email management +--- + +# hooks-public-email + + + +User email addresses with verification and primary-email management + +## Usage + +```typescript +useEmailsQuery({ selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useEmailQuery({ id: '', selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreateEmailMutation({ selection: { fields: { id: true } } }) +useUpdateEmailMutation({ selection: { fields: { id: true } } }) +useDeleteEmailMutation({}) +``` + +## Examples + +### List all emails + +```typescript +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a email + +```typescript +const { mutate } = useCreateEmailMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/emailsModule.md b/skills/hooks-public-emails-module/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/emailsModule.md rename to skills/hooks-public-emails-module/SKILL.md index 97b32ce51..7daeea066 100644 --- a/sdk/constructive-react/src/public/hooks/skills/emailsModule.md +++ b/skills/hooks-public-emails-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-emailsModule +--- +name: hooks-public-emails-module +description: React Query hooks for EmailsModule data operations +--- + +# hooks-public-emails-module diff --git a/sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md b/skills/hooks-public-encrypted-secrets-module/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md rename to skills/hooks-public-encrypted-secrets-module/SKILL.md index 3230872c5..83a4efde7 100644 --- a/sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md +++ b/skills/hooks-public-encrypted-secrets-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-encryptedSecretsModule +--- +name: hooks-public-encrypted-secrets-module +description: React Query hooks for EncryptedSecretsModule data operations +--- + +# hooks-public-encrypted-secrets-module diff --git a/skills/hooks-public-extend-token-expires/SKILL.md b/skills/hooks-public-extend-token-expires/SKILL.md new file mode 100644 index 000000000..c503e1732 --- /dev/null +++ b/skills/hooks-public-extend-token-expires/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-extend-token-expires +description: React Query mutation hook for extendTokenExpires +--- + +# hooks-public-extend-token-expires + + + +React Query mutation hook for extendTokenExpires + +## Usage + +```typescript +const { mutate } = useExtendTokenExpiresMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useExtendTokenExpiresMutation + +```typescript +const { mutate, isLoading } = useExtendTokenExpiresMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/fieldModule.md b/skills/hooks-public-field-module/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/fieldModule.md rename to skills/hooks-public-field-module/SKILL.md index 367d9da0e..6e2ed43ab 100644 --- a/sdk/constructive-react/src/public/hooks/skills/fieldModule.md +++ b/skills/hooks-public-field-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-fieldModule +--- +name: hooks-public-field-module +description: React Query hooks for FieldModule data operations +--- + +# hooks-public-field-module diff --git a/sdk/constructive-react/src/public/hooks/skills/field.md b/skills/hooks-public-field/SKILL.md similarity index 95% rename from sdk/constructive-react/src/public/hooks/skills/field.md rename to skills/hooks-public-field/SKILL.md index 672e19527..b77483149 100644 --- a/sdk/constructive-react/src/public/hooks/skills/field.md +++ b/skills/hooks-public-field/SKILL.md @@ -1,4 +1,9 @@ -# hooks-field +--- +name: hooks-public-field +description: React Query hooks for Field data operations +--- + +# hooks-public-field diff --git a/sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md b/skills/hooks-public-foreign-key-constraint/SKILL.md similarity index 92% rename from sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md rename to skills/hooks-public-foreign-key-constraint/SKILL.md index 95fb8fb09..ea4110152 100644 --- a/sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md +++ b/skills/hooks-public-foreign-key-constraint/SKILL.md @@ -1,4 +1,9 @@ -# hooks-foreignKeyConstraint +--- +name: hooks-public-foreign-key-constraint +description: React Query hooks for ForeignKeyConstraint data operations +--- + +# hooks-public-foreign-key-constraint diff --git a/skills/hooks-public-forgot-password/SKILL.md b/skills/hooks-public-forgot-password/SKILL.md new file mode 100644 index 000000000..827c5ed93 --- /dev/null +++ b/skills/hooks-public-forgot-password/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-forgot-password +description: React Query mutation hook for forgotPassword +--- + +# hooks-public-forgot-password + + + +React Query mutation hook for forgotPassword + +## Usage + +```typescript +const { mutate } = useForgotPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useForgotPasswordMutation + +```typescript +const { mutate, isLoading } = useForgotPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/freezeObjects.md b/skills/hooks-public-freeze-objects/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/freezeObjects.md rename to skills/hooks-public-freeze-objects/SKILL.md index af9fd90c4..66460f39a 100644 --- a/sdk/constructive-react/src/public/hooks/skills/freezeObjects.md +++ b/skills/hooks-public-freeze-objects/SKILL.md @@ -1,4 +1,9 @@ -# hooks-freezeObjects +--- +name: hooks-public-freeze-objects +description: React Query mutation hook for freezeObjects +--- + +# hooks-public-freeze-objects diff --git a/sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md b/skills/hooks-public-full-text-search/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md rename to skills/hooks-public-full-text-search/SKILL.md index 4966f5511..ab32800a8 100644 --- a/sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md +++ b/skills/hooks-public-full-text-search/SKILL.md @@ -1,4 +1,9 @@ -# hooks-fullTextSearch +--- +name: hooks-public-full-text-search +description: React Query hooks for FullTextSearch data operations +--- + +# hooks-public-full-text-search diff --git a/sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md b/skills/hooks-public-get-all-objects-from-root/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md rename to skills/hooks-public-get-all-objects-from-root/SKILL.md index 018c673b7..b74e566ba 100644 --- a/sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md +++ b/skills/hooks-public-get-all-objects-from-root/SKILL.md @@ -1,4 +1,9 @@ -# hooks-getAllObjectsFromRoot +--- +name: hooks-public-get-all-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# hooks-public-get-all-objects-from-root diff --git a/sdk/constructive-react/src/public/hooks/skills/getAllRecord.md b/skills/hooks-public-get-all-record/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/hooks/skills/getAllRecord.md rename to skills/hooks-public-get-all-record/SKILL.md index 9b7f82198..5419f7cb4 100644 --- a/sdk/constructive-react/src/public/hooks/skills/getAllRecord.md +++ b/skills/hooks-public-get-all-record/SKILL.md @@ -1,4 +1,9 @@ -# hooks-getAllRecord +--- +name: hooks-public-get-all-record +description: React Query hooks for GetAllRecord data operations +--- + +# hooks-public-get-all-record diff --git a/sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md b/skills/hooks-public-get-object-at-path/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md rename to skills/hooks-public-get-object-at-path/SKILL.md index c3b9f60f0..1c05dbdb1 100644 --- a/sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md +++ b/skills/hooks-public-get-object-at-path/SKILL.md @@ -1,4 +1,9 @@ -# hooks-getObjectAtPath +--- +name: hooks-public-get-object-at-path +description: React Query query hook for getObjectAtPath +--- + +# hooks-public-get-object-at-path diff --git a/sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md b/skills/hooks-public-get-path-objects-from-root/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md rename to skills/hooks-public-get-path-objects-from-root/SKILL.md index dd7cdcd86..5b205e7ae 100644 --- a/sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md +++ b/skills/hooks-public-get-path-objects-from-root/SKILL.md @@ -1,4 +1,9 @@ -# hooks-getPathObjectsFromRoot +--- +name: hooks-public-get-path-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# hooks-public-get-path-objects-from-root diff --git a/sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md b/skills/hooks-public-hierarchy-module/SKILL.md similarity index 94% rename from sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md rename to skills/hooks-public-hierarchy-module/SKILL.md index 6ef22671e..81fbc7632 100644 --- a/sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md +++ b/skills/hooks-public-hierarchy-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-hierarchyModule +--- +name: hooks-public-hierarchy-module +description: React Query hooks for HierarchyModule data operations +--- + +# hooks-public-hierarchy-module diff --git a/sdk/constructive-react/src/public/hooks/skills/index.md b/skills/hooks-public-index/SKILL.md similarity index 94% rename from sdk/constructive-react/src/public/hooks/skills/index.md rename to skills/hooks-public-index/SKILL.md index ec09c1408..f8bbecc44 100644 --- a/sdk/constructive-react/src/public/hooks/skills/index.md +++ b/skills/hooks-public-index/SKILL.md @@ -1,4 +1,9 @@ -# hooks-index +--- +name: hooks-public-index +description: React Query hooks for Index data operations +--- + +# hooks-public-index diff --git a/sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md b/skills/hooks-public-init-empty-repo/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md rename to skills/hooks-public-init-empty-repo/SKILL.md index abd88134d..a2e93fdea 100644 --- a/sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md +++ b/skills/hooks-public-init-empty-repo/SKILL.md @@ -1,4 +1,9 @@ -# hooks-initEmptyRepo +--- +name: hooks-public-init-empty-repo +description: React Query mutation hook for initEmptyRepo +--- + +# hooks-public-init-empty-repo diff --git a/sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md b/skills/hooks-public-insert-node-at-path/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md rename to skills/hooks-public-insert-node-at-path/SKILL.md index 7ca72d1cc..00cd48174 100644 --- a/sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md +++ b/skills/hooks-public-insert-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# hooks-insertNodeAtPath +--- +name: hooks-public-insert-node-at-path +description: React Query mutation hook for insertNodeAtPath +--- + +# hooks-public-insert-node-at-path diff --git a/sdk/constructive-react/src/admin/hooks/skills/invite.md b/skills/hooks-public-invite/SKILL.md similarity index 83% rename from sdk/constructive-react/src/admin/hooks/skills/invite.md rename to skills/hooks-public-invite/SKILL.md index 3be140ad1..1c6784acb 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/invite.md +++ b/skills/hooks-public-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-invite +--- +name: hooks-public-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# hooks-public-invite -React Query hooks for Invite data operations +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/invitesModule.md b/skills/hooks-public-invites-module/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/hooks/skills/invitesModule.md rename to skills/hooks-public-invites-module/SKILL.md index 4200c5300..7d5ca1737 100644 --- a/sdk/constructive-react/src/public/hooks/skills/invitesModule.md +++ b/skills/hooks-public-invites-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-invitesModule +--- +name: hooks-public-invites-module +description: React Query hooks for InvitesModule data operations +--- + +# hooks-public-invites-module diff --git a/sdk/constructive-react/src/public/hooks/skills/levelsModule.md b/skills/hooks-public-levels-module/SKILL.md similarity index 96% rename from sdk/constructive-react/src/public/hooks/skills/levelsModule.md rename to skills/hooks-public-levels-module/SKILL.md index 2a4689db9..24327785f 100644 --- a/sdk/constructive-react/src/public/hooks/skills/levelsModule.md +++ b/skills/hooks-public-levels-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-levelsModule +--- +name: hooks-public-levels-module +description: React Query hooks for LevelsModule data operations +--- + +# hooks-public-levels-module diff --git a/sdk/constructive-react/src/public/hooks/skills/limitsModule.md b/skills/hooks-public-limits-module/SKILL.md similarity index 94% rename from sdk/constructive-react/src/public/hooks/skills/limitsModule.md rename to skills/hooks-public-limits-module/SKILL.md index 8f3c2b545..03104eaab 100644 --- a/sdk/constructive-react/src/public/hooks/skills/limitsModule.md +++ b/skills/hooks-public-limits-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-limitsModule +--- +name: hooks-public-limits-module +description: React Query hooks for LimitsModule data operations +--- + +# hooks-public-limits-module diff --git a/sdk/constructive-react/src/admin/hooks/skills/membershipType.md b/skills/hooks-public-membership-type/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/hooks/skills/membershipType.md rename to skills/hooks-public-membership-type/SKILL.md index 51dd3584b..63936ca63 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/membershipType.md +++ b/skills/hooks-public-membership-type/SKILL.md @@ -1,8 +1,13 @@ -# hooks-membershipType +--- +name: hooks-public-membership-type +description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +--- + +# hooks-public-membership-type -React Query hooks for MembershipType data operations +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md b/skills/hooks-public-membership-types-module/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md rename to skills/hooks-public-membership-types-module/SKILL.md index 6fbac3048..0d51239a3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md +++ b/skills/hooks-public-membership-types-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-membershipTypesModule +--- +name: hooks-public-membership-types-module +description: React Query hooks for MembershipTypesModule data operations +--- + +# hooks-public-membership-types-module diff --git a/sdk/constructive-react/src/public/hooks/skills/membershipsModule.md b/skills/hooks-public-memberships-module/SKILL.md similarity index 96% rename from sdk/constructive-react/src/public/hooks/skills/membershipsModule.md rename to skills/hooks-public-memberships-module/SKILL.md index 985a2747d..66ef2e7aa 100644 --- a/sdk/constructive-react/src/public/hooks/skills/membershipsModule.md +++ b/skills/hooks-public-memberships-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-membershipsModule +--- +name: hooks-public-memberships-module +description: React Query hooks for MembershipsModule data operations +--- + +# hooks-public-memberships-module diff --git a/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md b/skills/hooks-public-node-type-registry/SKILL.md similarity index 85% rename from sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md rename to skills/hooks-public-node-type-registry/SKILL.md index 1117028fa..b2ba4ef19 100644 --- a/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md +++ b/skills/hooks-public-node-type-registry/SKILL.md @@ -1,4 +1,9 @@ -# hooks-nodeTypeRegistry +--- +name: hooks-public-node-type-registry +description: Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). +--- + +# hooks-public-node-type-registry diff --git a/sdk/constructive-react/src/public/hooks/skills/object.md b/skills/hooks-public-object/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/object.md rename to skills/hooks-public-object/SKILL.md index 869f55493..ba597d01d 100644 --- a/sdk/constructive-react/src/public/hooks/skills/object.md +++ b/skills/hooks-public-object/SKILL.md @@ -1,4 +1,9 @@ -# hooks-object +--- +name: hooks-public-object +description: React Query hooks for Object data operations +--- + +# hooks-public-object diff --git a/skills/hooks-public-one-time-token/SKILL.md b/skills/hooks-public-one-time-token/SKILL.md new file mode 100644 index 000000000..abbdf8072 --- /dev/null +++ b/skills/hooks-public-one-time-token/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-one-time-token +description: React Query mutation hook for oneTimeToken +--- + +# hooks-public-one-time-token + + + +React Query mutation hook for oneTimeToken + +## Usage + +```typescript +const { mutate } = useOneTimeTokenMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useOneTimeTokenMutation + +```typescript +const { mutate, isLoading } = useOneTimeTokenMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md b/skills/hooks-public-org-admin-grant/SKILL.md similarity index 83% rename from sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md rename to skills/hooks-public-org-admin-grant/SKILL.md index aac7029bb..85a468dd6 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md +++ b/skills/hooks-public-org-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgAdminGrant +--- +name: hooks-public-org-admin-grant +description: Records of admin role grants and revocations between members +--- + +# hooks-public-org-admin-grant -React Query hooks for OrgAdminGrant data operations +Records of admin role grants and revocations between members ## Usage diff --git a/skills/hooks-public-org-chart-edge-grant/SKILL.md b/skills/hooks-public-org-chart-edge-grant/SKILL.md new file mode 100644 index 000000000..df3000c9c --- /dev/null +++ b/skills/hooks-public-org-chart-edge-grant/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-org-chart-edge-grant +description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +--- + +# hooks-public-org-chart-edge-grant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +useOrgChartEdgeGrantsQuery({ selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useOrgChartEdgeGrantQuery({ id: '', selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeGrantMutation({}) +``` + +## Examples + +### List all orgChartEdgeGrants + +```typescript +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); +``` + +### Create a orgChartEdgeGrant + +```typescript +const { mutate } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/skills/hooks-public-org-chart-edge/SKILL.md b/skills/hooks-public-org-chart-edge/SKILL.md new file mode 100644 index 000000000..2915a4eda --- /dev/null +++ b/skills/hooks-public-org-chart-edge/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-org-chart-edge +description: Organizational chart edges defining parent-child reporting relationships between members within an entity +--- + +# hooks-public-org-chart-edge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +useOrgChartEdgesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useOrgChartEdgeQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeMutation({}) +``` + +## Examples + +### List all orgChartEdges + +```typescript +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); +``` + +### Create a orgChartEdge + +```typescript +const { mutate } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md b/skills/hooks-public-org-claimed-invite/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md rename to skills/hooks-public-org-claimed-invite/SKILL.md index cb033587c..af0241c78 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md +++ b/skills/hooks-public-org-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgClaimedInvite +--- +name: hooks-public-org-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# hooks-public-org-claimed-invite -React Query hooks for OrgClaimedInvite data operations +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/skills/hooks-public-org-get-managers-record/SKILL.md b/skills/hooks-public-org-get-managers-record/SKILL.md new file mode 100644 index 000000000..1e0d4e0f0 --- /dev/null +++ b/skills/hooks-public-org-get-managers-record/SKILL.md @@ -0,0 +1,36 @@ +--- +name: hooks-public-org-get-managers-record +description: React Query hooks for OrgGetManagersRecord data operations +--- + +# hooks-public-org-get-managers-record + + + +React Query hooks for OrgGetManagersRecord data operations + +## Usage + +```typescript +useOrgGetManagersQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetManagers + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetManagersRecord + +```typescript +const { mutate } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/skills/hooks-public-org-get-subordinates-record/SKILL.md b/skills/hooks-public-org-get-subordinates-record/SKILL.md new file mode 100644 index 000000000..fa94dfed0 --- /dev/null +++ b/skills/hooks-public-org-get-subordinates-record/SKILL.md @@ -0,0 +1,36 @@ +--- +name: hooks-public-org-get-subordinates-record +description: React Query hooks for OrgGetSubordinatesRecord data operations +--- + +# hooks-public-org-get-subordinates-record + + + +React Query hooks for OrgGetSubordinatesRecord data operations + +## Usage + +```typescript +useOrgGetSubordinatesQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetSubordinates + +```typescript +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgGrant.md b/skills/hooks-public-org-grant/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/orgGrant.md rename to skills/hooks-public-org-grant/SKILL.md index f70a2a0f2..336c85f56 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgGrant.md +++ b/skills/hooks-public-org-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgGrant +--- +name: hooks-public-org-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# hooks-public-org-grant -React Query hooks for OrgGrant data operations +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgInvite.md b/skills/hooks-public-org-invite/SKILL.md similarity index 84% rename from sdk/constructive-react/src/public/hooks/skills/orgInvite.md rename to skills/hooks-public-org-invite/SKILL.md index d4eefbee2..c9c2a969f 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgInvite.md +++ b/skills/hooks-public-org-invite/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgInvite +--- +name: hooks-public-org-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# hooks-public-org-invite -React Query hooks for OrgInvite data operations +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/skills/hooks-public-org-is-manager-of/SKILL.md b/skills/hooks-public-org-is-manager-of/SKILL.md new file mode 100644 index 000000000..1fb57bd1b --- /dev/null +++ b/skills/hooks-public-org-is-manager-of/SKILL.md @@ -0,0 +1,24 @@ +--- +name: hooks-public-org-is-manager-of +description: React Query query hook for orgIsManagerOf +--- + +# hooks-public-org-is-manager-of + + + +React Query query hook for orgIsManagerOf + +## Usage + +```typescript +useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }) +``` + +## Examples + +### Use useOrgIsManagerOfQuery + +```typescript +const { data, isLoading } = useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }); +``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md b/skills/hooks-public-org-limit-default/SKILL.md similarity index 75% rename from sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md rename to skills/hooks-public-org-limit-default/SKILL.md index e2e1703ab..7ef477b34 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md +++ b/skills/hooks-public-org-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgLimitDefault +--- +name: hooks-public-org-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# hooks-public-org-limit-default -React Query hooks for OrgLimitDefault data operations +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgLimit.md b/skills/hooks-public-org-limit/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/orgLimit.md rename to skills/hooks-public-org-limit/SKILL.md index 95dfb47a3..ccaa33b7f 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgLimit.md +++ b/skills/hooks-public-org-limit/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgLimit +--- +name: hooks-public-org-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# hooks-public-org-limit -React Query hooks for OrgLimit data operations +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgMember.md b/skills/hooks-public-org-member/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/hooks/skills/orgMember.md rename to skills/hooks-public-org-member/SKILL.md index a95727212..16e7b2b54 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgMember.md +++ b/skills/hooks-public-org-member/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgMember +--- +name: hooks-public-org-member +description: Simplified view of active members in an entity, used for listing who belongs to an org or group +--- + +# hooks-public-org-member -React Query hooks for OrgMember data operations +Simplified view of active members in an entity, used for listing who belongs to an org or group ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md b/skills/hooks-public-org-membership-default/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md rename to skills/hooks-public-org-membership-default/SKILL.md index 21bdb9eb7..d618596ea 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md +++ b/skills/hooks-public-org-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgMembershipDefault +--- +name: hooks-public-org-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# hooks-public-org-membership-default -React Query hooks for OrgMembershipDefault data operations +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgMembership.md b/skills/hooks-public-org-membership/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/orgMembership.md rename to skills/hooks-public-org-membership/SKILL.md index ded9a40c5..d7a0f8343 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgMembership.md +++ b/skills/hooks-public-org-membership/SKILL.md @@ -1,14 +1,19 @@ -# hooks-orgMembership +--- +name: hooks-public-org-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# hooks-public-org-membership -React Query hooks for OrgMembership data operations +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript -useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) -useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) +useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) +useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipMutation({}) @@ -20,7 +25,7 @@ useDeleteOrgMembershipMutation({}) ```typescript const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useOrgMembershipsQuery({ const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md b/skills/hooks-public-org-owner-grant/SKILL.md similarity index 84% rename from sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md rename to skills/hooks-public-org-owner-grant/SKILL.md index b26688557..762cc67b1 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md +++ b/skills/hooks-public-org-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgOwnerGrant +--- +name: hooks-public-org-owner-grant +description: Records of ownership transfers and grants between members +--- + +# hooks-public-org-owner-grant -React Query hooks for OrgOwnerGrant data operations +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md b/skills/hooks-public-org-permission-default/SKILL.md similarity index 78% rename from sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md rename to skills/hooks-public-org-permission-default/SKILL.md index 31e59c0dc..09e75c474 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md +++ b/skills/hooks-public-org-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgPermissionDefault +--- +name: hooks-public-org-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# hooks-public-org-permission-default -React Query hooks for OrgPermissionDefault data operations +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermission.md b/skills/hooks-public-org-permission/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/orgPermission.md rename to skills/hooks-public-org-permission/SKILL.md index babce4b02..9a474b0db 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermission.md +++ b/skills/hooks-public-org-permission/SKILL.md @@ -1,8 +1,13 @@ -# hooks-orgPermission +--- +name: hooks-public-org-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# hooks-public-org-permission -React Query hooks for OrgPermission data operations +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md b/skills/hooks-public-org-permissions-get-by-mask/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md rename to skills/hooks-public-org-permissions-get-by-mask/SKILL.md index d21ac66dd..4db3399c8 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md +++ b/skills/hooks-public-org-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetByMask +--- +name: hooks-public-org-permissions-get-by-mask +description: Reads and enables pagination through a set of `OrgPermission`. +--- + +# hooks-public-org-permissions-get-by-mask diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md b/skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md similarity index 67% rename from sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md rename to skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md index 7f0f4452d..fd96ade72 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md +++ b/skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetMaskByNames +--- +name: hooks-public-org-permissions-get-mask-by-names +description: React Query query hook for orgPermissionsGetMaskByNames +--- + +# hooks-public-org-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md b/skills/hooks-public-org-permissions-get-mask/SKILL.md similarity index 68% rename from sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md rename to skills/hooks-public-org-permissions-get-mask/SKILL.md index cfa5b4302..a444f3ed9 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md +++ b/skills/hooks-public-org-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetMask +--- +name: hooks-public-org-permissions-get-mask +description: React Query query hook for orgPermissionsGetMask +--- + +# hooks-public-org-permissions-get-mask diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md b/skills/hooks-public-org-permissions-get-padded-mask/SKILL.md similarity index 67% rename from sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md rename to skills/hooks-public-org-permissions-get-padded-mask/SKILL.md index 9ff601b07..bd1acee96 100644 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md +++ b/skills/hooks-public-org-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# hooks-orgPermissionsGetPaddedMask +--- +name: hooks-public-org-permissions-get-padded-mask +description: React Query query hook for orgPermissionsGetPaddedMask +--- + +# hooks-public-org-permissions-get-padded-mask diff --git a/sdk/constructive-react/src/public/hooks/skills/permissionsModule.md b/skills/hooks-public-permissions-module/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/hooks/skills/permissionsModule.md rename to skills/hooks-public-permissions-module/SKILL.md index cef0e3246..982821079 100644 --- a/sdk/constructive-react/src/public/hooks/skills/permissionsModule.md +++ b/skills/hooks-public-permissions-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-permissionsModule +--- +name: hooks-public-permissions-module +description: React Query hooks for PermissionsModule data operations +--- + +# hooks-public-permissions-module diff --git a/skills/hooks-public-phone-number/SKILL.md b/skills/hooks-public-phone-number/SKILL.md new file mode 100644 index 000000000..c102b01c7 --- /dev/null +++ b/skills/hooks-public-phone-number/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-phone-number +description: User phone numbers with country code, verification, and primary-number management +--- + +# hooks-public-phone-number + + + +User phone numbers with country code, verification, and primary-number management + +## Usage + +```typescript +usePhoneNumbersQuery({ selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +usePhoneNumberQuery({ id: '', selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreatePhoneNumberMutation({ selection: { fields: { id: true } } }) +useUpdatePhoneNumberMutation({ selection: { fields: { id: true } } }) +useDeletePhoneNumberMutation({}) +``` + +## Examples + +### List all phoneNumbers + +```typescript +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a phoneNumber + +```typescript +const { mutate } = useCreatePhoneNumberMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md b/skills/hooks-public-phone-numbers-module/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md rename to skills/hooks-public-phone-numbers-module/SKILL.md index aea5dbd98..3ce6292a4 100644 --- a/sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md +++ b/skills/hooks-public-phone-numbers-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-phoneNumbersModule +--- +name: hooks-public-phone-numbers-module +description: React Query hooks for PhoneNumbersModule data operations +--- + +# hooks-public-phone-numbers-module diff --git a/skills/hooks-public-policy/SKILL.md b/skills/hooks-public-policy/SKILL.md new file mode 100644 index 000000000..4a182708e --- /dev/null +++ b/skills/hooks-public-policy/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-policy +description: React Query hooks for Policy data operations +--- + +# hooks-public-policy + + + +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 } } }) +useCreatePolicyMutation({ selection: { fields: { id: true } } }) +useUpdatePolicyMutation({ selection: { fields: { id: true } } }) +useDeletePolicyMutation({}) +``` + +## Examples + +### List all policies + +```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 } }, +}); +``` + +### Create a policy + +```typescript +const { mutate } = useCreatePolicyMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md b/skills/hooks-public-primary-key-constraint/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md rename to skills/hooks-public-primary-key-constraint/SKILL.md index 41cb7c4f2..e0e5bf6d1 100644 --- a/sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md +++ b/skills/hooks-public-primary-key-constraint/SKILL.md @@ -1,4 +1,9 @@ -# hooks-primaryKeyConstraint +--- +name: hooks-public-primary-key-constraint +description: React Query hooks for PrimaryKeyConstraint data operations +--- + +# hooks-public-primary-key-constraint diff --git a/sdk/constructive-react/src/public/hooks/skills/profilesModule.md b/skills/hooks-public-profiles-module/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/profilesModule.md rename to skills/hooks-public-profiles-module/SKILL.md index 8e506fc3b..a1e1de0a0 100644 --- a/sdk/constructive-react/src/public/hooks/skills/profilesModule.md +++ b/skills/hooks-public-profiles-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-profilesModule +--- +name: hooks-public-profiles-module +description: React Query hooks for ProfilesModule data operations +--- + +# hooks-public-profiles-module @@ -7,8 +12,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, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) -useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) +useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) +useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) useDeleteProfilesModuleMutation({}) @@ -20,7 +25,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, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useProfilesModulesQuery({ const { mutate } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); ``` diff --git a/sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md b/skills/hooks-public-provision-database-with-user/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md rename to skills/hooks-public-provision-database-with-user/SKILL.md index f5ed6431e..19267b7ac 100644 --- a/sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md +++ b/skills/hooks-public-provision-database-with-user/SKILL.md @@ -1,4 +1,9 @@ -# hooks-provisionDatabaseWithUser +--- +name: hooks-public-provision-database-with-user +description: React Query mutation hook for provisionDatabaseWithUser +--- + +# hooks-public-provision-database-with-user diff --git a/sdk/constructive-react/src/public/hooks/skills/ref.md b/skills/hooks-public-ref/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/hooks/skills/ref.md rename to skills/hooks-public-ref/SKILL.md index c2f1375b1..b16372831 100644 --- a/sdk/constructive-react/src/public/hooks/skills/ref.md +++ b/skills/hooks-public-ref/SKILL.md @@ -1,4 +1,9 @@ -# hooks-ref +--- +name: hooks-public-ref +description: A ref is a data structure for pointing to a commit. +--- + +# hooks-public-ref diff --git a/skills/hooks-public-relation-provision/SKILL.md b/skills/hooks-public-relation-provision/SKILL.md new file mode 100644 index 000000000..4093ee0ad --- /dev/null +++ b/skills/hooks-public-relation-provision/SKILL.md @@ -0,0 +1,53 @@ +--- +name: hooks-public-relation-provision +description: 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. +--- + +# hooks-public-relation-provision + + + +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. + +## Usage + +```typescript +useRelationProvisionsQuery({ selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } } }) +useRelationProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } } }) +useCreateRelationProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateRelationProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteRelationProvisionMutation({}) +``` + +## Examples + +### List all relationProvisions + +```typescript +const { data, isLoading } = useRelationProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +}); +``` + +### Create a relationProvision + +```typescript +const { mutate } = useCreateRelationProvisionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md b/skills/hooks-public-remove-node-at-path/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md rename to skills/hooks-public-remove-node-at-path/SKILL.md index 55126cbd9..7d7a6b631 100644 --- a/sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md +++ b/skills/hooks-public-remove-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# hooks-removeNodeAtPath +--- +name: hooks-public-remove-node-at-path +description: React Query mutation hook for removeNodeAtPath +--- + +# hooks-public-remove-node-at-path diff --git a/skills/hooks-public-reset-password/SKILL.md b/skills/hooks-public-reset-password/SKILL.md new file mode 100644 index 000000000..98f8628d8 --- /dev/null +++ b/skills/hooks-public-reset-password/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-reset-password +description: React Query mutation hook for resetPassword +--- + +# hooks-public-reset-password + + + +React Query mutation hook for resetPassword + +## Usage + +```typescript +const { mutate } = useResetPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useResetPasswordMutation + +```typescript +const { mutate, isLoading } = useResetPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/revParse.md b/skills/hooks-public-rev-parse/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/hooks/skills/revParse.md rename to skills/hooks-public-rev-parse/SKILL.md index da24b1094..c2009b97a 100644 --- a/sdk/constructive-react/src/public/hooks/skills/revParse.md +++ b/skills/hooks-public-rev-parse/SKILL.md @@ -1,4 +1,9 @@ -# hooks-revParse +--- +name: hooks-public-rev-parse +description: React Query query hook for revParse +--- + +# hooks-public-rev-parse diff --git a/sdk/constructive-react/src/public/hooks/skills/rlsModule.md b/skills/hooks-public-rls-module/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/hooks/skills/rlsModule.md rename to skills/hooks-public-rls-module/SKILL.md index 192ca4cdc..0331c3c06 100644 --- a/sdk/constructive-react/src/public/hooks/skills/rlsModule.md +++ b/skills/hooks-public-rls-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-rlsModule +--- +name: hooks-public-rls-module +description: React Query hooks for RlsModule data operations +--- + +# hooks-public-rls-module diff --git a/skills/hooks-public-role-type/SKILL.md b/skills/hooks-public-role-type/SKILL.md new file mode 100644 index 000000000..4ad8305d0 --- /dev/null +++ b/skills/hooks-public-role-type/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-role-type +description: React Query hooks for RoleType data operations +--- + +# hooks-public-role-type + + + +React Query hooks for RoleType data operations + +## Usage + +```typescript +useRoleTypesQuery({ selection: { fields: { id: true, name: true } } }) +useRoleTypeQuery({ id: '', selection: { fields: { id: true, name: true } } }) +useCreateRoleTypeMutation({ selection: { fields: { id: true } } }) +useUpdateRoleTypeMutation({ selection: { fields: { id: true } } }) +useDeleteRoleTypeMutation({}) +``` + +## Examples + +### List all roleTypes + +```typescript +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); +``` + +### Create a roleType + +```typescript +const { mutate } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/schemaGrant.md b/skills/hooks-public-schema-grant/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/hooks/skills/schemaGrant.md rename to skills/hooks-public-schema-grant/SKILL.md index bbb552a6f..5e70cea08 100644 --- a/sdk/constructive-react/src/public/hooks/skills/schemaGrant.md +++ b/skills/hooks-public-schema-grant/SKILL.md @@ -1,4 +1,9 @@ -# hooks-schemaGrant +--- +name: hooks-public-schema-grant +description: React Query hooks for SchemaGrant data operations +--- + +# hooks-public-schema-grant diff --git a/sdk/constructive-react/src/public/hooks/skills/schema.md b/skills/hooks-public-schema/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/hooks/skills/schema.md rename to skills/hooks-public-schema/SKILL.md index d9b6f5a24..f8a4fc234 100644 --- a/sdk/constructive-react/src/public/hooks/skills/schema.md +++ b/skills/hooks-public-schema/SKILL.md @@ -1,4 +1,9 @@ -# hooks-schema +--- +name: hooks-public-schema +description: React Query hooks for Schema data operations +--- + +# hooks-public-schema diff --git a/sdk/constructive-react/src/public/hooks/skills/secretsModule.md b/skills/hooks-public-secrets-module/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/hooks/skills/secretsModule.md rename to skills/hooks-public-secrets-module/SKILL.md index 82b6c3885..3898699ad 100644 --- a/sdk/constructive-react/src/public/hooks/skills/secretsModule.md +++ b/skills/hooks-public-secrets-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-secretsModule +--- +name: hooks-public-secrets-module +description: React Query hooks for SecretsModule data operations +--- + +# hooks-public-secrets-module diff --git a/skills/hooks-public-secure-table-provision/SKILL.md b/skills/hooks-public-secure-table-provision/SKILL.md new file mode 100644 index 000000000..1f35ad63f --- /dev/null +++ b/skills/hooks-public-secure-table-provision/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-secure-table-provision +description: Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. +--- + +# hooks-public-secure-table-provision + + + +Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + +## Usage + +```typescript +useSecureTableProvisionsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } } }) +useSecureTableProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } } }) +useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteSecureTableProvisionMutation({}) +``` + +## Examples + +### List all secureTableProvisions + +```typescript +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, +}); +``` + +### Create a secureTableProvision + +```typescript +const { mutate } = useCreateSecureTableProvisionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }); +``` diff --git a/skills/hooks-public-send-account-deletion-email/SKILL.md b/skills/hooks-public-send-account-deletion-email/SKILL.md new file mode 100644 index 000000000..a6772aa5d --- /dev/null +++ b/skills/hooks-public-send-account-deletion-email/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-send-account-deletion-email +description: React Query mutation hook for sendAccountDeletionEmail +--- + +# hooks-public-send-account-deletion-email + + + +React Query mutation hook for sendAccountDeletionEmail + +## Usage + +```typescript +const { mutate } = useSendAccountDeletionEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSendAccountDeletionEmailMutation + +```typescript +const { mutate, isLoading } = useSendAccountDeletionEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-send-verification-email/SKILL.md b/skills/hooks-public-send-verification-email/SKILL.md new file mode 100644 index 000000000..9b159015f --- /dev/null +++ b/skills/hooks-public-send-verification-email/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-send-verification-email +description: React Query mutation hook for sendVerificationEmail +--- + +# hooks-public-send-verification-email + + + +React Query mutation hook for sendVerificationEmail + +## Usage + +```typescript +const { mutate } = useSendVerificationEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSendVerificationEmailMutation + +```typescript +const { mutate, isLoading } = useSendVerificationEmailMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/sessionsModule.md b/skills/hooks-public-sessions-module/SKILL.md similarity index 92% rename from sdk/constructive-react/src/public/hooks/skills/sessionsModule.md rename to skills/hooks-public-sessions-module/SKILL.md index 187263444..bd301b680 100644 --- a/sdk/constructive-react/src/public/hooks/skills/sessionsModule.md +++ b/skills/hooks-public-sessions-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-sessionsModule +--- +name: hooks-public-sessions-module +description: React Query hooks for SessionsModule data operations +--- + +# hooks-public-sessions-module diff --git a/sdk/constructive-react/src/public/hooks/skills/setAndCommit.md b/skills/hooks-public-set-and-commit/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/setAndCommit.md rename to skills/hooks-public-set-and-commit/SKILL.md index fe8ee1048..81110d25c 100644 --- a/sdk/constructive-react/src/public/hooks/skills/setAndCommit.md +++ b/skills/hooks-public-set-and-commit/SKILL.md @@ -1,4 +1,9 @@ -# hooks-setAndCommit +--- +name: hooks-public-set-and-commit +description: React Query mutation hook for setAndCommit +--- + +# hooks-public-set-and-commit diff --git a/sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md b/skills/hooks-public-set-data-at-path/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md rename to skills/hooks-public-set-data-at-path/SKILL.md index 1e407b642..2888f83ee 100644 --- a/sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md +++ b/skills/hooks-public-set-data-at-path/SKILL.md @@ -1,4 +1,9 @@ -# hooks-setDataAtPath +--- +name: hooks-public-set-data-at-path +description: React Query mutation hook for setDataAtPath +--- + +# hooks-public-set-data-at-path diff --git a/sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md b/skills/hooks-public-set-field-order/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md rename to skills/hooks-public-set-field-order/SKILL.md index c31c56727..224e6b87b 100644 --- a/sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md +++ b/skills/hooks-public-set-field-order/SKILL.md @@ -1,4 +1,9 @@ -# hooks-setFieldOrder +--- +name: hooks-public-set-field-order +description: React Query mutation hook for setFieldOrder +--- + +# hooks-public-set-field-order diff --git a/skills/hooks-public-set-password/SKILL.md b/skills/hooks-public-set-password/SKILL.md new file mode 100644 index 000000000..e196b99fa --- /dev/null +++ b/skills/hooks-public-set-password/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-set-password +description: React Query mutation hook for setPassword +--- + +# hooks-public-set-password + + + +React Query mutation hook for setPassword + +## Usage + +```typescript +const { mutate } = useSetPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPasswordMutation + +```typescript +const { mutate, isLoading } = useSetPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md b/skills/hooks-public-set-props-and-commit/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md rename to skills/hooks-public-set-props-and-commit/SKILL.md index 1767c4d4a..eccca1685 100644 --- a/sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md +++ b/skills/hooks-public-set-props-and-commit/SKILL.md @@ -1,4 +1,9 @@ -# hooks-setPropsAndCommit +--- +name: hooks-public-set-props-and-commit +description: React Query mutation hook for setPropsAndCommit +--- + +# hooks-public-set-props-and-commit diff --git a/skills/hooks-public-sign-in-one-time-token/SKILL.md b/skills/hooks-public-sign-in-one-time-token/SKILL.md new file mode 100644 index 000000000..d4ce14548 --- /dev/null +++ b/skills/hooks-public-sign-in-one-time-token/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-sign-in-one-time-token +description: React Query mutation hook for signInOneTimeToken +--- + +# hooks-public-sign-in-one-time-token + + + +React Query mutation hook for signInOneTimeToken + +## Usage + +```typescript +const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignInOneTimeTokenMutation + +```typescript +const { mutate, isLoading } = useSignInOneTimeTokenMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-sign-in/SKILL.md b/skills/hooks-public-sign-in/SKILL.md new file mode 100644 index 000000000..a187f523f --- /dev/null +++ b/skills/hooks-public-sign-in/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-sign-in +description: React Query mutation hook for signIn +--- + +# hooks-public-sign-in + + + +React Query mutation hook for signIn + +## Usage + +```typescript +const { mutate } = useSignInMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignInMutation + +```typescript +const { mutate, isLoading } = useSignInMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-sign-out/SKILL.md b/skills/hooks-public-sign-out/SKILL.md new file mode 100644 index 000000000..0bf79a8df --- /dev/null +++ b/skills/hooks-public-sign-out/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-sign-out +description: React Query mutation hook for signOut +--- + +# hooks-public-sign-out + + + +React Query mutation hook for signOut + +## Usage + +```typescript +const { mutate } = useSignOutMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignOutMutation + +```typescript +const { mutate, isLoading } = useSignOutMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-sign-up/SKILL.md b/skills/hooks-public-sign-up/SKILL.md new file mode 100644 index 000000000..b24ad349f --- /dev/null +++ b/skills/hooks-public-sign-up/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-sign-up +description: React Query mutation hook for signUp +--- + +# hooks-public-sign-up + + + +React Query mutation hook for signUp + +## Usage + +```typescript +const { mutate } = useSignUpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignUpMutation + +```typescript +const { mutate, isLoading } = useSignUpMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md b/skills/hooks-public-site-metadatum/SKILL.md similarity index 79% rename from sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md rename to skills/hooks-public-site-metadatum/SKILL.md index f4b3b74f2..fe2f8c9da 100644 --- a/sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md +++ b/skills/hooks-public-site-metadatum/SKILL.md @@ -1,8 +1,13 @@ -# hooks-siteMetadatum +--- +name: hooks-public-site-metadatum +description: SEO and social sharing metadata for a site: page title, description, and Open Graph image +--- + +# hooks-public-site-metadatum -React Query hooks for SiteMetadatum data operations +SEO and social sharing metadata for a site: page title, description, and Open Graph image ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/siteModule.md b/skills/hooks-public-site-module/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/hooks/skills/siteModule.md rename to skills/hooks-public-site-module/SKILL.md index 520233f49..b1b65dba1 100644 --- a/sdk/constructive-react/src/public/hooks/skills/siteModule.md +++ b/skills/hooks-public-site-module/SKILL.md @@ -1,8 +1,13 @@ -# hooks-siteModule +--- +name: hooks-public-site-module +description: Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site +--- + +# hooks-public-site-module -React Query hooks for SiteModule data operations +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/siteTheme.md b/skills/hooks-public-site-theme/SKILL.md similarity index 77% rename from sdk/constructive-react/src/public/hooks/skills/siteTheme.md rename to skills/hooks-public-site-theme/SKILL.md index 0500e4cdd..fc3288966 100644 --- a/sdk/constructive-react/src/public/hooks/skills/siteTheme.md +++ b/skills/hooks-public-site-theme/SKILL.md @@ -1,8 +1,13 @@ -# hooks-siteTheme +--- +name: hooks-public-site-theme +description: Theme configuration for a site; stores design tokens, colors, and typography as JSONB +--- + +# hooks-public-site-theme -React Query hooks for SiteTheme data operations +Theme configuration for a site; stores design tokens, colors, and typography as JSONB ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/site.md b/skills/hooks-public-site/SKILL.md similarity index 82% rename from sdk/constructive-react/src/public/hooks/skills/site.md rename to skills/hooks-public-site/SKILL.md index 07b8f891c..06d485206 100644 --- a/sdk/constructive-react/src/public/hooks/skills/site.md +++ b/skills/hooks-public-site/SKILL.md @@ -1,8 +1,13 @@ -# hooks-site +--- +name: hooks-public-site +description: Top-level site configuration: branding assets, title, and description for a deployed application +--- + +# hooks-public-site -React Query hooks for Site data operations +Top-level site configuration: branding assets, title, and description for a deployed application ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/sqlMigration.md b/skills/hooks-public-sql-migration/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/hooks/skills/sqlMigration.md rename to skills/hooks-public-sql-migration/SKILL.md index debe2b7b6..e6b3b6eb3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/sqlMigration.md +++ b/skills/hooks-public-sql-migration/SKILL.md @@ -1,4 +1,9 @@ -# hooks-sqlMigration +--- +name: hooks-public-sql-migration +description: React Query hooks for SqlMigration data operations +--- + +# hooks-public-sql-migration diff --git a/sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md b/skills/hooks-public-steps-achieved/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md rename to skills/hooks-public-steps-achieved/SKILL.md index c5e1f6bda..7cfbe6929 100644 --- a/sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md +++ b/skills/hooks-public-steps-achieved/SKILL.md @@ -1,4 +1,9 @@ -# hooks-stepsAchieved +--- +name: hooks-public-steps-achieved +description: React Query query hook for stepsAchieved +--- + +# hooks-public-steps-achieved diff --git a/sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md b/skills/hooks-public-steps-required/SKILL.md similarity index 75% rename from sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md rename to skills/hooks-public-steps-required/SKILL.md index 6862ec2dd..acf69742f 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md +++ b/skills/hooks-public-steps-required/SKILL.md @@ -1,4 +1,9 @@ -# hooks-stepsRequired +--- +name: hooks-public-steps-required +description: Reads and enables pagination through a set of `AppLevelRequirement`. +--- + +# hooks-public-steps-required diff --git a/sdk/constructive-react/src/public/hooks/skills/store.md b/skills/hooks-public-store/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/hooks/skills/store.md rename to skills/hooks-public-store/SKILL.md index 7263efef0..28034a595 100644 --- a/sdk/constructive-react/src/public/hooks/skills/store.md +++ b/skills/hooks-public-store/SKILL.md @@ -1,4 +1,9 @@ -# hooks-store +--- +name: hooks-public-store +description: A store represents an isolated object repository within a database. +--- + +# hooks-public-store diff --git a/sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md b/skills/hooks-public-submit-invite-code/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md rename to skills/hooks-public-submit-invite-code/SKILL.md index 54388f821..c1eb54383 100644 --- a/sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md +++ b/skills/hooks-public-submit-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# hooks-submitInviteCode +--- +name: hooks-public-submit-invite-code +description: React Query mutation hook for submitInviteCode +--- + +# hooks-public-submit-invite-code diff --git a/sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md b/skills/hooks-public-submit-org-invite-code/SKILL.md similarity index 71% rename from sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md rename to skills/hooks-public-submit-org-invite-code/SKILL.md index c61b24f83..f32350575 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md +++ b/skills/hooks-public-submit-org-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# hooks-submitOrgInviteCode +--- +name: hooks-public-submit-org-invite-code +description: React Query mutation hook for submitOrgInviteCode +--- + +# hooks-public-submit-org-invite-code diff --git a/sdk/constructive-react/src/public/hooks/skills/tableGrant.md b/skills/hooks-public-table-grant/SKILL.md similarity index 57% rename from sdk/constructive-react/src/public/hooks/skills/tableGrant.md rename to skills/hooks-public-table-grant/SKILL.md index 928aaaa71..e91fcf003 100644 --- a/sdk/constructive-react/src/public/hooks/skills/tableGrant.md +++ b/skills/hooks-public-table-grant/SKILL.md @@ -1,4 +1,9 @@ -# hooks-tableGrant +--- +name: hooks-public-table-grant +description: React Query hooks for TableGrant data operations +--- + +# hooks-public-table-grant @@ -7,8 +12,8 @@ React Query hooks for TableGrant data operations ## Usage ```typescript -useTableGrantsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } } }) -useTableGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } } }) +useTableGrantsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) +useTableGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) useCreateTableGrantMutation({ selection: { fields: { id: true } } }) useUpdateTableGrantMutation({ selection: { fields: { id: true } } }) useDeleteTableGrantMutation({}) @@ -20,7 +25,7 @@ useDeleteTableGrantMutation({}) ```typescript const { data, isLoading } = useTableGrantsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useTableGrantsQuery({ const { mutate } = useCreateTableGrantMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }); +mutate({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); ``` diff --git a/skills/hooks-public-table-module/SKILL.md b/skills/hooks-public-table-module/SKILL.md new file mode 100644 index 000000000..8dd082283 --- /dev/null +++ b/skills/hooks-public-table-module/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-table-module +description: React Query hooks for TableModule data operations +--- + +# hooks-public-table-module + + + +React Query hooks for TableModule data operations + +## Usage + +```typescript +useTableModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } } }) +useTableModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } } }) +useCreateTableModuleMutation({ selection: { fields: { id: true } } }) +useUpdateTableModuleMutation({ selection: { fields: { id: true } } }) +useDeleteTableModuleMutation({}) +``` + +## Examples + +### List all tableModules + +```typescript +const { data, isLoading } = useTableModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }, +}); +``` + +### Create a tableModule + +```typescript +const { mutate } = useCreateTableModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md b/skills/hooks-public-table-template-module/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md rename to skills/hooks-public-table-template-module/SKILL.md index affb60da5..6e009fbd3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md +++ b/skills/hooks-public-table-template-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-tableTemplateModule +--- +name: hooks-public-table-template-module +description: React Query hooks for TableTemplateModule data operations +--- + +# hooks-public-table-template-module diff --git a/sdk/constructive-react/src/public/hooks/skills/table.md b/skills/hooks-public-table/SKILL.md similarity index 94% rename from sdk/constructive-react/src/public/hooks/skills/table.md rename to skills/hooks-public-table/SKILL.md index 708c47501..7a2739e56 100644 --- a/sdk/constructive-react/src/public/hooks/skills/table.md +++ b/skills/hooks-public-table/SKILL.md @@ -1,4 +1,9 @@ -# hooks-table +--- +name: hooks-public-table +description: React Query hooks for Table data operations +--- + +# hooks-public-table diff --git a/sdk/constructive-react/src/public/hooks/skills/triggerFunction.md b/skills/hooks-public-trigger-function/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/hooks/skills/triggerFunction.md rename to skills/hooks-public-trigger-function/SKILL.md index 691122e95..0a968a460 100644 --- a/sdk/constructive-react/src/public/hooks/skills/triggerFunction.md +++ b/skills/hooks-public-trigger-function/SKILL.md @@ -1,4 +1,9 @@ -# hooks-triggerFunction +--- +name: hooks-public-trigger-function +description: React Query hooks for TriggerFunction data operations +--- + +# hooks-public-trigger-function diff --git a/sdk/constructive-react/src/public/hooks/skills/trigger.md b/skills/hooks-public-trigger/SKILL.md similarity index 92% rename from sdk/constructive-react/src/public/hooks/skills/trigger.md rename to skills/hooks-public-trigger/SKILL.md index f9578ea2c..089ad8bd0 100644 --- a/sdk/constructive-react/src/public/hooks/skills/trigger.md +++ b/skills/hooks-public-trigger/SKILL.md @@ -1,4 +1,9 @@ -# hooks-trigger +--- +name: hooks-public-trigger +description: React Query hooks for Trigger data operations +--- + +# hooks-public-trigger diff --git a/sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md b/skills/hooks-public-unique-constraint/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md rename to skills/hooks-public-unique-constraint/SKILL.md index c93048587..32e1d3483 100644 --- a/sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md +++ b/skills/hooks-public-unique-constraint/SKILL.md @@ -1,4 +1,9 @@ -# hooks-uniqueConstraint +--- +name: hooks-public-unique-constraint +description: React Query hooks for UniqueConstraint data operations +--- + +# hooks-public-unique-constraint diff --git a/sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md b/skills/hooks-public-update-node-at-path/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md rename to skills/hooks-public-update-node-at-path/SKILL.md index 0b608afea..619225ba3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md +++ b/skills/hooks-public-update-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# hooks-updateNodeAtPath +--- +name: hooks-public-update-node-at-path +description: React Query mutation hook for updateNodeAtPath +--- + +# hooks-public-update-node-at-path diff --git a/sdk/constructive-react/src/public/hooks/skills/userAuthModule.md b/skills/hooks-public-user-auth-module/SKILL.md similarity index 96% rename from sdk/constructive-react/src/public/hooks/skills/userAuthModule.md rename to skills/hooks-public-user-auth-module/SKILL.md index 856a31249..512516e37 100644 --- a/sdk/constructive-react/src/public/hooks/skills/userAuthModule.md +++ b/skills/hooks-public-user-auth-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-userAuthModule +--- +name: hooks-public-user-auth-module +description: React Query hooks for UserAuthModule data operations +--- + +# hooks-public-user-auth-module diff --git a/skills/hooks-public-user/SKILL.md b/skills/hooks-public-user/SKILL.md new file mode 100644 index 000000000..d6486e876 --- /dev/null +++ b/skills/hooks-public-user/SKILL.md @@ -0,0 +1,39 @@ +--- +name: hooks-public-user +description: React Query hooks for User data operations +--- + +# hooks-public-user + + + +React Query hooks for User data operations + +## Usage + +```typescript +useUsersQuery({ selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) +useUserQuery({ id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) +useCreateUserMutation({ selection: { fields: { id: true } } }) +useUpdateUserMutation({ selection: { fields: { id: true } } }) +useDeleteUserMutation({}) +``` + +## Examples + +### List all users + +```typescript +const { data, isLoading } = useUsersQuery({ + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +}); +``` + +### Create a user + +```typescript +const { mutate } = useCreateUserMutation({ + selection: { fields: { id: true } }, +}); +mutate({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/usersModule.md b/skills/hooks-public-users-module/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/hooks/skills/usersModule.md rename to skills/hooks-public-users-module/SKILL.md index c5ddcc724..3a6f8de7e 100644 --- a/sdk/constructive-react/src/public/hooks/skills/usersModule.md +++ b/skills/hooks-public-users-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-usersModule +--- +name: hooks-public-users-module +description: React Query hooks for UsersModule data operations +--- + +# hooks-public-users-module diff --git a/sdk/constructive-react/src/public/hooks/skills/uuidModule.md b/skills/hooks-public-uuid-module/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/hooks/skills/uuidModule.md rename to skills/hooks-public-uuid-module/SKILL.md index c26d42f65..e3e991330 100644 --- a/sdk/constructive-react/src/public/hooks/skills/uuidModule.md +++ b/skills/hooks-public-uuid-module/SKILL.md @@ -1,4 +1,9 @@ -# hooks-uuidModule +--- +name: hooks-public-uuid-module +description: React Query hooks for UuidModule data operations +--- + +# hooks-public-uuid-module diff --git a/skills/hooks-public-verify-email/SKILL.md b/skills/hooks-public-verify-email/SKILL.md new file mode 100644 index 000000000..05056fadc --- /dev/null +++ b/skills/hooks-public-verify-email/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-verify-email +description: React Query mutation hook for verifyEmail +--- + +# hooks-public-verify-email + + + +React Query mutation hook for verifyEmail + +## Usage + +```typescript +const { mutate } = useVerifyEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyEmailMutation + +```typescript +const { mutate, isLoading } = useVerifyEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-verify-password/SKILL.md b/skills/hooks-public-verify-password/SKILL.md new file mode 100644 index 000000000..6cbe59bca --- /dev/null +++ b/skills/hooks-public-verify-password/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-verify-password +description: React Query mutation hook for verifyPassword +--- + +# hooks-public-verify-password + + + +React Query mutation hook for verifyPassword + +## Usage + +```typescript +const { mutate } = useVerifyPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyPasswordMutation + +```typescript +const { mutate, isLoading } = useVerifyPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public-verify-totp/SKILL.md b/skills/hooks-public-verify-totp/SKILL.md new file mode 100644 index 000000000..449d5581a --- /dev/null +++ b/skills/hooks-public-verify-totp/SKILL.md @@ -0,0 +1,25 @@ +--- +name: hooks-public-verify-totp +description: React Query mutation hook for verifyTotp +--- + +# hooks-public-verify-totp + + + +React Query mutation hook for verifyTotp + +## Usage + +```typescript +const { mutate } = useVerifyTotpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyTotpMutation + +```typescript +const { mutate, isLoading } = useVerifyTotpMutation(); +mutate({ input: '' }); +``` diff --git a/sdk/constructive-react/src/public/hooks/skills/viewGrant.md b/skills/hooks-public-view-grant/SKILL.md similarity index 56% rename from sdk/constructive-react/src/public/hooks/skills/viewGrant.md rename to skills/hooks-public-view-grant/SKILL.md index cdd0b78e0..1829f9898 100644 --- a/sdk/constructive-react/src/public/hooks/skills/viewGrant.md +++ b/skills/hooks-public-view-grant/SKILL.md @@ -1,4 +1,9 @@ -# hooks-viewGrant +--- +name: hooks-public-view-grant +description: React Query hooks for ViewGrant data operations +--- + +# hooks-public-view-grant @@ -7,8 +12,8 @@ React Query hooks for ViewGrant data operations ## Usage ```typescript -useViewGrantsQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } } }) -useViewGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } } }) +useViewGrantsQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) +useViewGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) useCreateViewGrantMutation({ selection: { fields: { id: true } } }) useUpdateViewGrantMutation({ selection: { fields: { id: true } } }) useDeleteViewGrantMutation({}) @@ -20,7 +25,7 @@ useDeleteViewGrantMutation({}) ```typescript const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); ``` @@ -30,5 +35,5 @@ const { data, isLoading } = useViewGrantsQuery({ const { mutate } = useCreateViewGrantMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }); +mutate({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); ``` diff --git a/sdk/constructive-react/src/public/hooks/skills/viewRule.md b/skills/hooks-public-view-rule/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/hooks/skills/viewRule.md rename to skills/hooks-public-view-rule/SKILL.md index 8cf933710..9056711f5 100644 --- a/sdk/constructive-react/src/public/hooks/skills/viewRule.md +++ b/skills/hooks-public-view-rule/SKILL.md @@ -1,4 +1,9 @@ -# hooks-viewRule +--- +name: hooks-public-view-rule +description: DO INSTEAD rules for views (e.g., read-only enforcement) +--- + +# hooks-public-view-rule diff --git a/sdk/constructive-react/src/public/hooks/skills/viewTable.md b/skills/hooks-public-view-table/SKILL.md similarity index 86% rename from sdk/constructive-react/src/public/hooks/skills/viewTable.md rename to skills/hooks-public-view-table/SKILL.md index 19ae38d79..378f938f8 100644 --- a/sdk/constructive-react/src/public/hooks/skills/viewTable.md +++ b/skills/hooks-public-view-table/SKILL.md @@ -1,4 +1,9 @@ -# hooks-viewTable +--- +name: hooks-public-view-table +description: Junction table linking views to their joined tables for referential integrity +--- + +# hooks-public-view-table diff --git a/sdk/constructive-react/src/public/hooks/skills/view.md b/skills/hooks-public-view/SKILL.md similarity index 94% rename from sdk/constructive-react/src/public/hooks/skills/view.md rename to skills/hooks-public-view/SKILL.md index a5170adf2..0c5a730d2 100644 --- a/sdk/constructive-react/src/public/hooks/skills/view.md +++ b/skills/hooks-public-view/SKILL.md @@ -1,4 +1,9 @@ -# hooks-view +--- +name: hooks-public-view +description: React Query hooks for View data operations +--- + +# hooks-public-view diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md b/skills/orm-admin-app-achievement/SKILL.md similarity index 72% rename from sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md rename to skills/orm-admin-app-achievement/SKILL.md index 92ab466a3..c85935335 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md +++ b/skills/orm-admin-app-achievement/SKILL.md @@ -1,8 +1,13 @@ -# orm-appAchievement +--- +name: orm-admin-app-achievement +description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually +--- + +# orm-admin-app-achievement -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md b/skills/orm-admin-app-admin-grant/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md rename to skills/orm-admin-app-admin-grant/SKILL.md index 6b585abee..1d925d911 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md +++ b/skills/orm-admin-app-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-appAdminGrant +--- +name: orm-admin-app-admin-grant +description: Records of admin role grants and revocations between members +--- + +# orm-admin-app-admin-grant -ORM operations for AppAdminGrant records +Records of admin role grants and revocations between members ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appGrant.md b/skills/orm-admin-app-grant/SKILL.md similarity index 79% rename from sdk/constructive-react/src/public/orm/skills/appGrant.md rename to skills/orm-admin-app-grant/SKILL.md index 017771262..4ccb99074 100644 --- a/sdk/constructive-react/src/public/orm/skills/appGrant.md +++ b/skills/orm-admin-app-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-appGrant +--- +name: orm-admin-app-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# orm-admin-app-grant -ORM operations for AppGrant records +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md b/skills/orm-admin-app-level-requirement/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md rename to skills/orm-admin-app-level-requirement/SKILL.md index 28df77ff5..e95d9ef97 100644 --- a/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md +++ b/skills/orm-admin-app-level-requirement/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLevelRequirement +--- +name: orm-admin-app-level-requirement +description: Defines the specific requirements that must be met to achieve a level +--- + +# orm-admin-app-level-requirement -Requirements to achieve a level +Defines the specific requirements that must be met to achieve a level ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appLevel.md b/skills/orm-admin-app-level/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/orm/skills/appLevel.md rename to skills/orm-admin-app-level/SKILL.md index 3677ecc37..f3d71f819 100644 --- a/sdk/constructive-react/src/public/orm/skills/appLevel.md +++ b/skills/orm-admin-app-level/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLevel +--- +name: orm-admin-app-level +description: Defines available levels that users can achieve by completing requirements +--- + +# orm-admin-app-level -Levels for achievement +Defines available levels that users can achieve by completing requirements ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appLimitDefault.md b/skills/orm-admin-app-limit-default/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/orm/skills/appLimitDefault.md rename to skills/orm-admin-app-limit-default/SKILL.md index eb070a028..3fc6e9593 100644 --- a/sdk/constructive-react/src/public/orm/skills/appLimitDefault.md +++ b/skills/orm-admin-app-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLimitDefault +--- +name: orm-admin-app-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# orm-admin-app-limit-default -ORM operations for AppLimitDefault records +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appLimit.md b/skills/orm-admin-app-limit/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/orm/skills/appLimit.md rename to skills/orm-admin-app-limit/SKILL.md index 50fa2b37f..22d634c6e 100644 --- a/sdk/constructive-react/src/public/orm/skills/appLimit.md +++ b/skills/orm-admin-app-limit/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLimit +--- +name: orm-admin-app-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# orm-admin-app-limit -ORM operations for AppLimit records +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md b/skills/orm-admin-app-membership-default/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md rename to skills/orm-admin-app-membership-default/SKILL.md index 82c322958..e78c1c85c 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md +++ b/skills/orm-admin-app-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-appMembershipDefault +--- +name: orm-admin-app-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# orm-admin-app-membership-default -ORM operations for AppMembershipDefault records +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appMembership.md b/skills/orm-admin-app-membership/SKILL.md similarity index 71% rename from sdk/constructive-react/src/admin/orm/skills/appMembership.md rename to skills/orm-admin-app-membership/SKILL.md index 07e8f9763..784e49cda 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appMembership.md +++ b/skills/orm-admin-app-membership/SKILL.md @@ -1,15 +1,20 @@ -# orm-appMembership +--- +name: orm-admin-app-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# orm-admin-app-membership -ORM operations for AppMembership records +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript db.appMembership.findMany({ select: { id: true } }).execute() db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.appMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.appMembership.findMany({ ```typescript const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', profileId: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md b/skills/orm-admin-app-owner-grant/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md rename to skills/orm-admin-app-owner-grant/SKILL.md index 89c574dd7..1b966b5fe 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md +++ b/skills/orm-admin-app-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-appOwnerGrant +--- +name: orm-admin-app-owner-grant +description: Records of ownership transfers and grants between members +--- + +# orm-admin-app-owner-grant -ORM operations for AppOwnerGrant records +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md b/skills/orm-admin-app-permission-default/SKILL.md similarity index 78% rename from sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md rename to skills/orm-admin-app-permission-default/SKILL.md index ef8289183..4cbeb392c 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md +++ b/skills/orm-admin-app-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-appPermissionDefault +--- +name: orm-admin-app-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# orm-admin-app-permission-default -ORM operations for AppPermissionDefault records +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermission.md b/skills/orm-admin-app-permission/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/orm/skills/appPermission.md rename to skills/orm-admin-app-permission/SKILL.md index a497f7b8a..a432daf2f 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appPermission.md +++ b/skills/orm-admin-app-permission/SKILL.md @@ -1,8 +1,13 @@ -# orm-appPermission +--- +name: orm-admin-app-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# orm-admin-app-permission -ORM operations for AppPermission records +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md b/skills/orm-admin-app-permissions-get-by-mask/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md rename to skills/orm-admin-app-permissions-get-by-mask/SKILL.md index 369df9f26..9b44e8877 100644 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md +++ b/skills/orm-admin-app-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetByMask +--- +name: orm-admin-app-permissions-get-by-mask +description: Reads and enables pagination through a set of `AppPermission`. +--- + +# orm-admin-app-permissions-get-by-mask diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md b/skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md similarity index 68% rename from sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md rename to skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md index c3f40dddc..db45d58d6 100644 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md +++ b/skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetMaskByNames +--- +name: orm-admin-app-permissions-get-mask-by-names +description: Execute the appPermissionsGetMaskByNames query +--- + +# orm-admin-app-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md b/skills/orm-admin-app-permissions-get-mask/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md rename to skills/orm-admin-app-permissions-get-mask/SKILL.md index ceca5548f..bbb736967 100644 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md +++ b/skills/orm-admin-app-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetMask +--- +name: orm-admin-app-permissions-get-mask +description: Execute the appPermissionsGetMask query +--- + +# orm-admin-app-permissions-get-mask diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md b/skills/orm-admin-app-permissions-get-padded-mask/SKILL.md similarity index 69% rename from sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md rename to skills/orm-admin-app-permissions-get-padded-mask/SKILL.md index accce0eed..b92460a7a 100644 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md +++ b/skills/orm-admin-app-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetPaddedMask +--- +name: orm-admin-app-permissions-get-padded-mask +description: Execute the appPermissionsGetPaddedMask query +--- + +# orm-admin-app-permissions-get-padded-mask diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md b/skills/orm-admin-app-step/SKILL.md similarity index 75% rename from sdk/constructive-sdk/src/admin/orm/skills/appStep.md rename to skills/orm-admin-app-step/SKILL.md index 3c349de1f..2a06fb08d 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md +++ b/skills/orm-admin-app-step/SKILL.md @@ -1,8 +1,13 @@ -# orm-appStep +--- +name: orm-admin-app-step +description: Log of individual user actions toward level requirements; every single step ever taken is recorded here +--- + +# orm-admin-app-step -The user achieving a requirement for a level. Log table that has every single step ever taken. +Log of individual user actions toward level requirements; every single step ever taken is recorded here ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/claimedInvite.md b/skills/orm-admin-claimed-invite/SKILL.md similarity index 79% rename from sdk/constructive-react/src/public/orm/skills/claimedInvite.md rename to skills/orm-admin-claimed-invite/SKILL.md index 3d5de6b3b..8a216347d 100644 --- a/sdk/constructive-react/src/public/orm/skills/claimedInvite.md +++ b/skills/orm-admin-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-claimedInvite +--- +name: orm-admin-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# orm-admin-claimed-invite -ORM operations for ClaimedInvite records +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/invite.md b/skills/orm-admin-invite/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/admin/orm/skills/invite.md rename to skills/orm-admin-invite/SKILL.md index 727a2107e..b6f18ede2 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/invite.md +++ b/skills/orm-admin-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-invite +--- +name: orm-admin-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# orm-admin-invite -ORM operations for Invite records +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/membershipType.md b/skills/orm-admin-membership-type/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/orm/skills/membershipType.md rename to skills/orm-admin-membership-type/SKILL.md index 898d85107..d68f1fdc3 100644 --- a/sdk/constructive-react/src/admin/orm/skills/membershipType.md +++ b/skills/orm-admin-membership-type/SKILL.md @@ -1,8 +1,13 @@ -# orm-membershipType +--- +name: orm-admin-membership-type +description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +--- + +# orm-admin-membership-type -ORM operations for MembershipType records +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md b/skills/orm-admin-org-admin-grant/SKILL.md similarity index 82% rename from sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md rename to skills/orm-admin-org-admin-grant/SKILL.md index 675b76741..2f5001369 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md +++ b/skills/orm-admin-org-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgAdminGrant +--- +name: orm-admin-org-admin-grant +description: Records of admin role grants and revocations between members +--- + +# orm-admin-org-admin-grant -ORM operations for OrgAdminGrant records +Records of admin role grants and revocations between members ## Usage diff --git a/skills/orm-admin-org-chart-edge-grant/SKILL.md b/skills/orm-admin-org-chart-edge-grant/SKILL.md new file mode 100644 index 000000000..c96232884 --- /dev/null +++ b/skills/orm-admin-org-chart-edge-grant/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-admin-org-chart-edge-grant +description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +--- + +# orm-admin-org-chart-edge-grant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +db.orgChartEdgeGrant.findMany({ select: { id: true } }).execute() +db.orgChartEdgeGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdgeGrant records + +```typescript +const items = await db.orgChartEdgeGrant.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdgeGrant + +```typescript +const item = await db.orgChartEdgeGrant.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', grantorId: 'value', isGrant: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin-org-chart-edge/SKILL.md b/skills/orm-admin-org-chart-edge/SKILL.md new file mode 100644 index 000000000..639521455 --- /dev/null +++ b/skills/orm-admin-org-chart-edge/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-admin-org-chart-edge +description: Organizational chart edges defining parent-child reporting relationships between members within an entity +--- + +# orm-admin-org-chart-edge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +db.orgChartEdge.findMany({ select: { id: true } }).execute() +db.orgChartEdge.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdge.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdge records + +```typescript +const items = await db.orgChartEdge.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdge + +```typescript +const item = await db.orgChartEdge.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md b/skills/orm-admin-org-claimed-invite/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md rename to skills/orm-admin-org-claimed-invite/SKILL.md index 5693e2856..7696dfe8c 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md +++ b/skills/orm-admin-org-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgClaimedInvite +--- +name: orm-admin-org-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# orm-admin-org-claimed-invite -ORM operations for OrgClaimedInvite records +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/skills/orm-admin-org-get-managers-record/SKILL.md b/skills/orm-admin-org-get-managers-record/SKILL.md new file mode 100644 index 000000000..d97de1c82 --- /dev/null +++ b/skills/orm-admin-org-get-managers-record/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-admin-org-get-managers-record +description: ORM operations for OrgGetManagersRecord records +--- + +# orm-admin-org-get-managers-record + + + +ORM operations for OrgGetManagersRecord records + +## Usage + +```typescript +db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() +db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetManagersRecord records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetManagersRecord + +```typescript +const item = await db.orgGetManagersRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin-org-get-subordinates-record/SKILL.md b/skills/orm-admin-org-get-subordinates-record/SKILL.md new file mode 100644 index 000000000..62dc1dedb --- /dev/null +++ b/skills/orm-admin-org-get-subordinates-record/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-admin-org-get-subordinates-record +description: ORM operations for OrgGetSubordinatesRecord records +--- + +# orm-admin-org-get-subordinates-record + + + +ORM operations for OrgGetSubordinatesRecord records + +## Usage + +```typescript +db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() +db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetSubordinatesRecord records + +```typescript +const items = await db.orgGetSubordinatesRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const item = await db.orgGetSubordinatesRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md b/skills/orm-admin-org-grant/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md rename to skills/orm-admin-org-grant/SKILL.md index ac4c4b896..053cb816f 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md +++ b/skills/orm-admin-org-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgGrant +--- +name: orm-admin-org-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# orm-admin-org-grant -ORM operations for OrgGrant records +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/orgInvite.md b/skills/orm-admin-org-invite/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/orm/skills/orgInvite.md rename to skills/orm-admin-org-invite/SKILL.md index ea7ff346d..46ce62068 100644 --- a/sdk/constructive-react/src/public/orm/skills/orgInvite.md +++ b/skills/orm-admin-org-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgInvite +--- +name: orm-admin-org-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# orm-admin-org-invite -ORM operations for OrgInvite records +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/skills/orm-admin-org-is-manager-of/SKILL.md b/skills/orm-admin-org-is-manager-of/SKILL.md new file mode 100644 index 000000000..d63b7b5bf --- /dev/null +++ b/skills/orm-admin-org-is-manager-of/SKILL.md @@ -0,0 +1,24 @@ +--- +name: orm-admin-org-is-manager-of +description: Execute the orgIsManagerOf query +--- + +# orm-admin-org-is-manager-of + + + +Execute the orgIsManagerOf query + +## Usage + +```typescript +db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute() +``` + +## Examples + +### Run orgIsManagerOf + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md b/skills/orm-admin-org-limit-default/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md rename to skills/orm-admin-org-limit-default/SKILL.md index 4a4e505bd..817f018c1 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md +++ b/skills/orm-admin-org-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgLimitDefault +--- +name: orm-admin-org-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# orm-admin-org-limit-default -ORM operations for OrgLimitDefault records +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md b/skills/orm-admin-org-limit/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md rename to skills/orm-admin-org-limit/SKILL.md index 19681fddf..29bbe537f 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md +++ b/skills/orm-admin-org-limit/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgLimit +--- +name: orm-admin-org-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# orm-admin-org-limit -ORM operations for OrgLimit records +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/orgMember.md b/skills/orm-admin-org-member/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/orm/skills/orgMember.md rename to skills/orm-admin-org-member/SKILL.md index 2aadbafd3..a0f60d635 100644 --- a/sdk/constructive-react/src/public/orm/skills/orgMember.md +++ b/skills/orm-admin-org-member/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgMember +--- +name: orm-admin-org-member +description: Simplified view of active members in an entity, used for listing who belongs to an org or group +--- + +# orm-admin-org-member -ORM operations for OrgMember records +Simplified view of active members in an entity, used for listing who belongs to an org or group ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md b/skills/orm-admin-org-membership-default/SKILL.md similarity index 78% rename from sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md rename to skills/orm-admin-org-membership-default/SKILL.md index cd8146f14..9f98ea42b 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md +++ b/skills/orm-admin-org-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgMembershipDefault +--- +name: orm-admin-org-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# orm-admin-org-membership-default -ORM operations for OrgMembershipDefault records +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/orgMembership.md b/skills/orm-admin-org-membership/SKILL.md similarity index 71% rename from sdk/constructive-react/src/admin/orm/skills/orgMembership.md rename to skills/orm-admin-org-membership/SKILL.md index b98b850b2..3444310aa 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgMembership.md +++ b/skills/orm-admin-org-membership/SKILL.md @@ -1,15 +1,20 @@ -# orm-orgMembership +--- +name: orm-admin-org-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# orm-admin-org-membership -ORM operations for OrgMembership records +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript db.orgMembership.findMany({ select: { id: true } }).execute() db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute() db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.orgMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.orgMembership.findMany({ ```typescript const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value', profileId: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md b/skills/orm-admin-org-owner-grant/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md rename to skills/orm-admin-org-owner-grant/SKILL.md index 8a490261b..c99c33e29 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md +++ b/skills/orm-admin-org-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgOwnerGrant +--- +name: orm-admin-org-owner-grant +description: Records of ownership transfers and grants between members +--- + +# orm-admin-org-owner-grant -ORM operations for OrgOwnerGrant records +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md b/skills/orm-admin-org-permission-default/SKILL.md similarity index 79% rename from sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md rename to skills/orm-admin-org-permission-default/SKILL.md index 8d8e20afc..a5c3f9f5d 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md +++ b/skills/orm-admin-org-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgPermissionDefault +--- +name: orm-admin-org-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# orm-admin-org-permission-default -ORM operations for OrgPermissionDefault records +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md b/skills/orm-admin-org-permission/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md rename to skills/orm-admin-org-permission/SKILL.md index 1f18add5d..6464ae1d0 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md +++ b/skills/orm-admin-org-permission/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgPermission +--- +name: orm-admin-org-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# orm-admin-org-permission -ORM operations for OrgPermission records +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md b/skills/orm-admin-org-permissions-get-by-mask/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md rename to skills/orm-admin-org-permissions-get-by-mask/SKILL.md index 437f5c98b..95a3f6047 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md +++ b/skills/orm-admin-org-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetByMask +--- +name: orm-admin-org-permissions-get-by-mask +description: Reads and enables pagination through a set of `OrgPermission`. +--- + +# orm-admin-org-permissions-get-by-mask diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md b/skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md similarity index 68% rename from sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md rename to skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md index f67397dcc..3f3d5d3f5 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md +++ b/skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetMaskByNames +--- +name: orm-admin-org-permissions-get-mask-by-names +description: Execute the orgPermissionsGetMaskByNames query +--- + +# orm-admin-org-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md b/skills/orm-admin-org-permissions-get-mask/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md rename to skills/orm-admin-org-permissions-get-mask/SKILL.md index c626883ad..d53f6c25c 100644 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md +++ b/skills/orm-admin-org-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetMask +--- +name: orm-admin-org-permissions-get-mask +description: Execute the orgPermissionsGetMask query +--- + +# orm-admin-org-permissions-get-mask diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md b/skills/orm-admin-org-permissions-get-padded-mask/SKILL.md similarity index 69% rename from sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md rename to skills/orm-admin-org-permissions-get-padded-mask/SKILL.md index a67198a29..8872890f5 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md +++ b/skills/orm-admin-org-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetPaddedMask +--- +name: orm-admin-org-permissions-get-padded-mask +description: Execute the orgPermissionsGetPaddedMask query +--- + +# orm-admin-org-permissions-get-padded-mask diff --git a/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md b/skills/orm-admin-steps-achieved/SKILL.md similarity index 75% rename from sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md rename to skills/orm-admin-steps-achieved/SKILL.md index bce806fd4..c0d82e341 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md +++ b/skills/orm-admin-steps-achieved/SKILL.md @@ -1,4 +1,9 @@ -# orm-stepsAchieved +--- +name: orm-admin-steps-achieved +description: Execute the stepsAchieved query +--- + +# orm-admin-steps-achieved diff --git a/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md b/skills/orm-admin-steps-required/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md rename to skills/orm-admin-steps-required/SKILL.md index 8ea0ad638..5cd80e3b4 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md +++ b/skills/orm-admin-steps-required/SKILL.md @@ -1,4 +1,9 @@ -# orm-stepsRequired +--- +name: orm-admin-steps-required +description: Reads and enables pagination through a set of `AppLevelRequirement`. +--- + +# orm-admin-steps-required diff --git a/sdk/constructive-react/src/public/orm/skills/submitInviteCode.md b/skills/orm-admin-submit-invite-code/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/submitInviteCode.md rename to skills/orm-admin-submit-invite-code/SKILL.md index ae946fe75..57a331131 100644 --- a/sdk/constructive-react/src/public/orm/skills/submitInviteCode.md +++ b/skills/orm-admin-submit-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# orm-submitInviteCode +--- +name: orm-admin-submit-invite-code +description: Execute the submitInviteCode mutation +--- + +# orm-admin-submit-invite-code diff --git a/sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md b/skills/orm-admin-submit-org-invite-code/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md rename to skills/orm-admin-submit-org-invite-code/SKILL.md index 0ceff0ee1..785bcccdc 100644 --- a/sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md +++ b/skills/orm-admin-submit-org-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# orm-submitOrgInviteCode +--- +name: orm-admin-submit-org-invite-code +description: Execute the submitOrgInviteCode mutation +--- + +# orm-admin-submit-org-invite-code diff --git a/sdk/constructive-react/src/auth/orm/skills/auditLog.md b/skills/orm-auth-audit-log/SKILL.md similarity index 79% rename from sdk/constructive-react/src/auth/orm/skills/auditLog.md rename to skills/orm-auth-audit-log/SKILL.md index d7eed269a..d389b34e7 100644 --- a/sdk/constructive-react/src/auth/orm/skills/auditLog.md +++ b/skills/orm-auth-audit-log/SKILL.md @@ -1,8 +1,13 @@ -# orm-auditLog +--- +name: orm-auth-audit-log +description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +--- + +# orm-auth-audit-log -ORM operations for AuditLog records +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/checkPassword.md b/skills/orm-auth-check-password/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/checkPassword.md rename to skills/orm-auth-check-password/SKILL.md index 1c5c3d8ba..862ecc584 100644 --- a/sdk/constructive-react/src/public/orm/skills/checkPassword.md +++ b/skills/orm-auth-check-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-checkPassword +--- +name: orm-auth-check-password +description: Execute the checkPassword mutation +--- + +# orm-auth-check-password diff --git a/sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md b/skills/orm-auth-confirm-delete-account/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md rename to skills/orm-auth-confirm-delete-account/SKILL.md index 4d76c3194..e4a05dd06 100644 --- a/sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md +++ b/skills/orm-auth-confirm-delete-account/SKILL.md @@ -1,4 +1,9 @@ -# orm-confirmDeleteAccount +--- +name: orm-auth-confirm-delete-account +description: Execute the confirmDeleteAccount mutation +--- + +# orm-auth-confirm-delete-account diff --git a/sdk/constructive-react/src/auth/orm/skills/connectedAccount.md b/skills/orm-auth-connected-account/SKILL.md similarity index 80% rename from sdk/constructive-react/src/auth/orm/skills/connectedAccount.md rename to skills/orm-auth-connected-account/SKILL.md index ff7e10281..21e69a3ca 100644 --- a/sdk/constructive-react/src/auth/orm/skills/connectedAccount.md +++ b/skills/orm-auth-connected-account/SKILL.md @@ -1,8 +1,13 @@ -# orm-connectedAccount +--- +name: orm-auth-connected-account +description: OAuth and social login connections linking external service accounts to users +--- + +# orm-auth-connected-account -ORM operations for ConnectedAccount records +OAuth and social login connections linking external service accounts to users ## Usage diff --git a/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md b/skills/orm-auth-crypto-address/SKILL.md similarity index 77% rename from sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md rename to skills/orm-auth-crypto-address/SKILL.md index 70e896572..207cfbb7f 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md +++ b/skills/orm-auth-crypto-address/SKILL.md @@ -1,8 +1,13 @@ -# orm-cryptoAddress +--- +name: orm-auth-crypto-address +description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification +--- + +# orm-auth-crypto-address -ORM operations for CryptoAddress records +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/currentIpAddress.md b/skills/orm-auth-current-ip-address/SKILL.md similarity index 69% rename from sdk/constructive-react/src/public/orm/skills/currentIpAddress.md rename to skills/orm-auth-current-ip-address/SKILL.md index 63d2d9969..0df1a8018 100644 --- a/sdk/constructive-react/src/public/orm/skills/currentIpAddress.md +++ b/skills/orm-auth-current-ip-address/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentIpAddress +--- +name: orm-auth-current-ip-address +description: Execute the currentIpAddress query +--- + +# orm-auth-current-ip-address diff --git a/sdk/constructive-react/src/public/orm/skills/currentUserAgent.md b/skills/orm-auth-current-user-agent/SKILL.md similarity index 69% rename from sdk/constructive-react/src/public/orm/skills/currentUserAgent.md rename to skills/orm-auth-current-user-agent/SKILL.md index e5ba1e850..7f2fafed0 100644 --- a/sdk/constructive-react/src/public/orm/skills/currentUserAgent.md +++ b/skills/orm-auth-current-user-agent/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentUserAgent +--- +name: orm-auth-current-user-agent +description: Execute the currentUserAgent query +--- + +# orm-auth-current-user-agent diff --git a/sdk/constructive-react/src/public/orm/skills/currentUserId.md b/skills/orm-auth-current-user-id/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/orm/skills/currentUserId.md rename to skills/orm-auth-current-user-id/SKILL.md index c27ebc8c5..4a992cbf2 100644 --- a/sdk/constructive-react/src/public/orm/skills/currentUserId.md +++ b/skills/orm-auth-current-user-id/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentUserId +--- +name: orm-auth-current-user-id +description: Execute the currentUserId query +--- + +# orm-auth-current-user-id diff --git a/sdk/constructive-react/src/auth/orm/skills/currentUser.md b/skills/orm-auth-current-user/SKILL.md similarity index 71% rename from sdk/constructive-react/src/auth/orm/skills/currentUser.md rename to skills/orm-auth-current-user/SKILL.md index ca907fcb4..f267056f6 100644 --- a/sdk/constructive-react/src/auth/orm/skills/currentUser.md +++ b/skills/orm-auth-current-user/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentUser +--- +name: orm-auth-current-user +description: Execute the currentUser query +--- + +# orm-auth-current-user diff --git a/sdk/constructive-sdk/src/auth/orm/skills/email.md b/skills/orm-auth-email/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/auth/orm/skills/email.md rename to skills/orm-auth-email/SKILL.md index 9bc21e74f..b79df05cf 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/email.md +++ b/skills/orm-auth-email/SKILL.md @@ -1,8 +1,13 @@ -# orm-email +--- +name: orm-auth-email +description: User email addresses with verification and primary-email management +--- + +# orm-auth-email -ORM operations for Email records +User email addresses with verification and primary-email management ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md b/skills/orm-auth-extend-token-expires/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md rename to skills/orm-auth-extend-token-expires/SKILL.md index d587afacb..b6b50fa61 100644 --- a/sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md +++ b/skills/orm-auth-extend-token-expires/SKILL.md @@ -1,4 +1,9 @@ -# orm-extendTokenExpires +--- +name: orm-auth-extend-token-expires +description: Execute the extendTokenExpires mutation +--- + +# orm-auth-extend-token-expires diff --git a/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md b/skills/orm-auth-forgot-password/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md rename to skills/orm-auth-forgot-password/SKILL.md index 38c59f662..1d27fd567 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md +++ b/skills/orm-auth-forgot-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-forgotPassword +--- +name: orm-auth-forgot-password +description: Execute the forgotPassword mutation +--- + +# orm-auth-forgot-password diff --git a/sdk/constructive-react/src/public/orm/skills/oneTimeToken.md b/skills/orm-auth-one-time-token/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/oneTimeToken.md rename to skills/orm-auth-one-time-token/SKILL.md index 2ac3f962d..981deb19c 100644 --- a/sdk/constructive-react/src/public/orm/skills/oneTimeToken.md +++ b/skills/orm-auth-one-time-token/SKILL.md @@ -1,4 +1,9 @@ -# orm-oneTimeToken +--- +name: orm-auth-one-time-token +description: Execute the oneTimeToken mutation +--- + +# orm-auth-one-time-token diff --git a/sdk/constructive-react/src/public/orm/skills/phoneNumber.md b/skills/orm-auth-phone-number/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/orm/skills/phoneNumber.md rename to skills/orm-auth-phone-number/SKILL.md index 2a77480fa..135bb49ba 100644 --- a/sdk/constructive-react/src/public/orm/skills/phoneNumber.md +++ b/skills/orm-auth-phone-number/SKILL.md @@ -1,8 +1,13 @@ -# orm-phoneNumber +--- +name: orm-auth-phone-number +description: User phone numbers with country code, verification, and primary-number management +--- + +# orm-auth-phone-number -ORM operations for PhoneNumber records +User phone numbers with country code, verification, and primary-number management ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/resetPassword.md b/skills/orm-auth-reset-password/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/resetPassword.md rename to skills/orm-auth-reset-password/SKILL.md index fe676ada5..784796a16 100644 --- a/sdk/constructive-react/src/public/orm/skills/resetPassword.md +++ b/skills/orm-auth-reset-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-resetPassword +--- +name: orm-auth-reset-password +description: Execute the resetPassword mutation +--- + +# orm-auth-reset-password diff --git a/sdk/constructive-sdk/src/auth/orm/skills/roleType.md b/skills/orm-auth-role-type/SKILL.md similarity index 88% rename from sdk/constructive-sdk/src/auth/orm/skills/roleType.md rename to skills/orm-auth-role-type/SKILL.md index 261296f03..0e4412ece 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/roleType.md +++ b/skills/orm-auth-role-type/SKILL.md @@ -1,4 +1,9 @@ -# orm-roleType +--- +name: orm-auth-role-type +description: ORM operations for RoleType records +--- + +# orm-auth-role-type diff --git a/sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md b/skills/orm-auth-send-account-deletion-email/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md rename to skills/orm-auth-send-account-deletion-email/SKILL.md index aaf0470b5..fe86aea32 100644 --- a/sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md +++ b/skills/orm-auth-send-account-deletion-email/SKILL.md @@ -1,4 +1,9 @@ -# orm-sendAccountDeletionEmail +--- +name: orm-auth-send-account-deletion-email +description: Execute the sendAccountDeletionEmail mutation +--- + +# orm-auth-send-account-deletion-email diff --git a/sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md b/skills/orm-auth-send-verification-email/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md rename to skills/orm-auth-send-verification-email/SKILL.md index 2f0cfea9a..a7fc07ddf 100644 --- a/sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md +++ b/skills/orm-auth-send-verification-email/SKILL.md @@ -1,4 +1,9 @@ -# orm-sendVerificationEmail +--- +name: orm-auth-send-verification-email +description: Execute the sendVerificationEmail mutation +--- + +# orm-auth-send-verification-email diff --git a/sdk/constructive-react/src/public/orm/skills/setPassword.md b/skills/orm-auth-set-password/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/orm/skills/setPassword.md rename to skills/orm-auth-set-password/SKILL.md index bbf15b68d..a2e907c49 100644 --- a/sdk/constructive-react/src/public/orm/skills/setPassword.md +++ b/skills/orm-auth-set-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-setPassword +--- +name: orm-auth-set-password +description: Execute the setPassword mutation +--- + +# orm-auth-set-password diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md b/skills/orm-auth-sign-in-one-time-token/SKILL.md similarity index 71% rename from sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md rename to skills/orm-auth-sign-in-one-time-token/SKILL.md index 9a87fd088..ca3e8d95b 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md +++ b/skills/orm-auth-sign-in-one-time-token/SKILL.md @@ -1,4 +1,9 @@ -# orm-signInOneTimeToken +--- +name: orm-auth-sign-in-one-time-token +description: Execute the signInOneTimeToken mutation +--- + +# orm-auth-sign-in-one-time-token diff --git a/sdk/constructive-react/src/public/orm/skills/signIn.md b/skills/orm-auth-sign-in/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/orm/skills/signIn.md rename to skills/orm-auth-sign-in/SKILL.md index d49334136..54b033c4e 100644 --- a/sdk/constructive-react/src/public/orm/skills/signIn.md +++ b/skills/orm-auth-sign-in/SKILL.md @@ -1,4 +1,9 @@ -# orm-signIn +--- +name: orm-auth-sign-in +description: Execute the signIn mutation +--- + +# orm-auth-sign-in diff --git a/sdk/constructive-react/src/public/orm/skills/signOut.md b/skills/orm-auth-sign-out/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/orm/skills/signOut.md rename to skills/orm-auth-sign-out/SKILL.md index 7ada67374..530cdeec2 100644 --- a/sdk/constructive-react/src/public/orm/skills/signOut.md +++ b/skills/orm-auth-sign-out/SKILL.md @@ -1,4 +1,9 @@ -# orm-signOut +--- +name: orm-auth-sign-out +description: Execute the signOut mutation +--- + +# orm-auth-sign-out diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signUp.md b/skills/orm-auth-sign-up/SKILL.md similarity index 75% rename from sdk/constructive-sdk/src/auth/orm/skills/signUp.md rename to skills/orm-auth-sign-up/SKILL.md index 8c999d2b8..1a2bc3342 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/signUp.md +++ b/skills/orm-auth-sign-up/SKILL.md @@ -1,4 +1,9 @@ -# orm-signUp +--- +name: orm-auth-sign-up +description: Execute the signUp mutation +--- + +# orm-auth-sign-up diff --git a/sdk/constructive-react/src/auth/orm/skills/user.md b/skills/orm-auth-user/SKILL.md similarity index 91% rename from sdk/constructive-react/src/auth/orm/skills/user.md rename to skills/orm-auth-user/SKILL.md index e80b99583..7c6e61f41 100644 --- a/sdk/constructive-react/src/auth/orm/skills/user.md +++ b/skills/orm-auth-user/SKILL.md @@ -1,4 +1,9 @@ -# orm-user +--- +name: orm-auth-user +description: ORM operations for User records +--- + +# orm-auth-user diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md b/skills/orm-auth-verify-email/SKILL.md similarity index 74% rename from sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md rename to skills/orm-auth-verify-email/SKILL.md index c9a3f4ac1..0877cfdf5 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md +++ b/skills/orm-auth-verify-email/SKILL.md @@ -1,4 +1,9 @@ -# orm-verifyEmail +--- +name: orm-auth-verify-email +description: Execute the verifyEmail mutation +--- + +# orm-auth-verify-email diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md b/skills/orm-auth-verify-password/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md rename to skills/orm-auth-verify-password/SKILL.md index 10b75c518..3a81fa5bd 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md +++ b/skills/orm-auth-verify-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-verifyPassword +--- +name: orm-auth-verify-password +description: Execute the verifyPassword mutation +--- + +# orm-auth-verify-password diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md b/skills/orm-auth-verify-totp/SKILL.md similarity index 74% rename from sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md rename to skills/orm-auth-verify-totp/SKILL.md index 5541069f3..c013dbf7f 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md +++ b/skills/orm-auth-verify-totp/SKILL.md @@ -1,4 +1,9 @@ -# orm-verifyTotp +--- +name: orm-auth-verify-totp +description: Execute the verifyTotp mutation +--- + +# orm-auth-verify-totp diff --git a/sdk/constructive-react/src/objects/orm/skills/commit.md b/skills/orm-objects-commit/SKILL.md similarity index 90% rename from sdk/constructive-react/src/objects/orm/skills/commit.md rename to skills/orm-objects-commit/SKILL.md index 85ded9d62..342d643c2 100644 --- a/sdk/constructive-react/src/objects/orm/skills/commit.md +++ b/skills/orm-objects-commit/SKILL.md @@ -1,4 +1,9 @@ -# orm-commit +--- +name: orm-objects-commit +description: A commit records changes to the repository. +--- + +# orm-objects-commit diff --git a/sdk/constructive-react/src/public/orm/skills/freezeObjects.md b/skills/orm-objects-freeze-objects/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/freezeObjects.md rename to skills/orm-objects-freeze-objects/SKILL.md index b3f195547..d7f4198a8 100644 --- a/sdk/constructive-react/src/public/orm/skills/freezeObjects.md +++ b/skills/orm-objects-freeze-objects/SKILL.md @@ -1,4 +1,9 @@ -# orm-freezeObjects +--- +name: orm-objects-freeze-objects +description: Execute the freezeObjects mutation +--- + +# orm-objects-freeze-objects diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md b/skills/orm-objects-get-all-objects-from-root/SKILL.md similarity index 75% rename from sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md rename to skills/orm-objects-get-all-objects-from-root/SKILL.md index 71c5db4db..94d372ab2 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md +++ b/skills/orm-objects-get-all-objects-from-root/SKILL.md @@ -1,4 +1,9 @@ -# orm-getAllObjectsFromRoot +--- +name: orm-objects-get-all-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# orm-objects-get-all-objects-from-root diff --git a/sdk/constructive-react/src/objects/orm/skills/getAllRecord.md b/skills/orm-objects-get-all-record/SKILL.md similarity index 87% rename from sdk/constructive-react/src/objects/orm/skills/getAllRecord.md rename to skills/orm-objects-get-all-record/SKILL.md index 9c61daad2..7ef426d3d 100644 --- a/sdk/constructive-react/src/objects/orm/skills/getAllRecord.md +++ b/skills/orm-objects-get-all-record/SKILL.md @@ -1,4 +1,9 @@ -# orm-getAllRecord +--- +name: orm-objects-get-all-record +description: ORM operations for GetAllRecord records +--- + +# orm-objects-get-all-record diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md b/skills/orm-objects-get-object-at-path/SKILL.md similarity index 77% rename from sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md rename to skills/orm-objects-get-object-at-path/SKILL.md index 820b6d5fc..d7eb19fca 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md +++ b/skills/orm-objects-get-object-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-getObjectAtPath +--- +name: orm-objects-get-object-at-path +description: Execute the getObjectAtPath query +--- + +# orm-objects-get-object-at-path diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md b/skills/orm-objects-get-path-objects-from-root/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md rename to skills/orm-objects-get-path-objects-from-root/SKILL.md index 954943d90..5d39c5068 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md +++ b/skills/orm-objects-get-path-objects-from-root/SKILL.md @@ -1,4 +1,9 @@ -# orm-getPathObjectsFromRoot +--- +name: orm-objects-get-path-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# orm-objects-get-path-objects-from-root diff --git a/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md b/skills/orm-objects-init-empty-repo/SKILL.md similarity index 72% rename from sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md rename to skills/orm-objects-init-empty-repo/SKILL.md index 43a46841f..59f07d151 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md +++ b/skills/orm-objects-init-empty-repo/SKILL.md @@ -1,4 +1,9 @@ -# orm-initEmptyRepo +--- +name: orm-objects-init-empty-repo +description: Execute the initEmptyRepo mutation +--- + +# orm-objects-init-empty-repo diff --git a/sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md b/skills/orm-objects-insert-node-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md rename to skills/orm-objects-insert-node-at-path/SKILL.md index 2e9db15a0..b9867716c 100644 --- a/sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md +++ b/skills/orm-objects-insert-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-insertNodeAtPath +--- +name: orm-objects-insert-node-at-path +description: Execute the insertNodeAtPath mutation +--- + +# orm-objects-insert-node-at-path diff --git a/sdk/constructive-react/src/objects/orm/skills/object.md b/skills/orm-objects-object/SKILL.md similarity index 90% rename from sdk/constructive-react/src/objects/orm/skills/object.md rename to skills/orm-objects-object/SKILL.md index e006a0b5a..ef185c5e0 100644 --- a/sdk/constructive-react/src/objects/orm/skills/object.md +++ b/skills/orm-objects-object/SKILL.md @@ -1,4 +1,9 @@ -# orm-object +--- +name: orm-objects-object +description: ORM operations for Object records +--- + +# orm-objects-object diff --git a/sdk/constructive-sdk/src/objects/orm/skills/ref.md b/skills/orm-objects-ref/SKILL.md similarity index 88% rename from sdk/constructive-sdk/src/objects/orm/skills/ref.md rename to skills/orm-objects-ref/SKILL.md index 3165ec41e..0b5f578d0 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/ref.md +++ b/skills/orm-objects-ref/SKILL.md @@ -1,4 +1,9 @@ -# orm-ref +--- +name: orm-objects-ref +description: A ref is a data structure for pointing to a commit. +--- + +# orm-objects-ref diff --git a/sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md b/skills/orm-objects-remove-node-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md rename to skills/orm-objects-remove-node-at-path/SKILL.md index 116c41c0a..1150ac840 100644 --- a/sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md +++ b/skills/orm-objects-remove-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-removeNodeAtPath +--- +name: orm-objects-remove-node-at-path +description: Execute the removeNodeAtPath mutation +--- + +# orm-objects-remove-node-at-path diff --git a/sdk/constructive-sdk/src/objects/orm/skills/revParse.md b/skills/orm-objects-rev-parse/SKILL.md similarity index 78% rename from sdk/constructive-sdk/src/objects/orm/skills/revParse.md rename to skills/orm-objects-rev-parse/SKILL.md index 0a1830ff8..cf1c5ba83 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/revParse.md +++ b/skills/orm-objects-rev-parse/SKILL.md @@ -1,4 +1,9 @@ -# orm-revParse +--- +name: orm-objects-rev-parse +description: Execute the revParse query +--- + +# orm-objects-rev-parse diff --git a/sdk/constructive-react/src/public/orm/skills/setAndCommit.md b/skills/orm-objects-set-and-commit/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/setAndCommit.md rename to skills/orm-objects-set-and-commit/SKILL.md index a5fa6e0d9..f7220b7e0 100644 --- a/sdk/constructive-react/src/public/orm/skills/setAndCommit.md +++ b/skills/orm-objects-set-and-commit/SKILL.md @@ -1,4 +1,9 @@ -# orm-setAndCommit +--- +name: orm-objects-set-and-commit +description: Execute the setAndCommit mutation +--- + +# orm-objects-set-and-commit diff --git a/sdk/constructive-react/src/public/orm/skills/setDataAtPath.md b/skills/orm-objects-set-data-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/setDataAtPath.md rename to skills/orm-objects-set-data-at-path/SKILL.md index 7f09dab97..e0b9ca706 100644 --- a/sdk/constructive-react/src/public/orm/skills/setDataAtPath.md +++ b/skills/orm-objects-set-data-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-setDataAtPath +--- +name: orm-objects-set-data-at-path +description: Execute the setDataAtPath mutation +--- + +# orm-objects-set-data-at-path diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md b/skills/orm-objects-set-props-and-commit/SKILL.md similarity index 71% rename from sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md rename to skills/orm-objects-set-props-and-commit/SKILL.md index 7248c0e1c..6deab0d53 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md +++ b/skills/orm-objects-set-props-and-commit/SKILL.md @@ -1,4 +1,9 @@ -# orm-setPropsAndCommit +--- +name: orm-objects-set-props-and-commit +description: Execute the setPropsAndCommit mutation +--- + +# orm-objects-set-props-and-commit diff --git a/sdk/constructive-sdk/src/objects/orm/skills/store.md b/skills/orm-objects-store/SKILL.md similarity index 86% rename from sdk/constructive-sdk/src/objects/orm/skills/store.md rename to skills/orm-objects-store/SKILL.md index 1a9bfc8a5..d2e59e3df 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/store.md +++ b/skills/orm-objects-store/SKILL.md @@ -1,4 +1,9 @@ -# orm-store +--- +name: orm-objects-store +description: A store represents an isolated object repository within a database. +--- + +# orm-objects-store diff --git a/sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md b/skills/orm-objects-update-node-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md rename to skills/orm-objects-update-node-at-path/SKILL.md index d1a7bbf95..abeaa7da3 100644 --- a/sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md +++ b/skills/orm-objects-update-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-updateNodeAtPath +--- +name: orm-objects-update-node-at-path +description: Execute the updateNodeAtPath mutation +--- + +# orm-objects-update-node-at-path diff --git a/sdk/constructive-sdk/src/public/orm/skills/apiModule.md b/skills/orm-public-api-module/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/public/orm/skills/apiModule.md rename to skills/orm-public-api-module/SKILL.md index bc5e1a7b6..5a7231795 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/apiModule.md +++ b/skills/orm-public-api-module/SKILL.md @@ -1,8 +1,13 @@ -# orm-apiModule +--- +name: orm-public-api-module +description: Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server +--- + +# orm-public-api-module -ORM operations for ApiModule records +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md b/skills/orm-public-api-schema/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/public/orm/skills/apiSchema.md rename to skills/orm-public-api-schema/SKILL.md index 965a1cded..92c7dc7a1 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md +++ b/skills/orm-public-api-schema/SKILL.md @@ -1,8 +1,13 @@ -# orm-apiSchema +--- +name: orm-public-api-schema +description: Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API +--- + +# orm-public-api-schema -ORM operations for ApiSchema records +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/api.md b/skills/orm-public-api/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/orm/skills/api.md rename to skills/orm-public-api/SKILL.md index 4fbea1f24..82445af37 100644 --- a/sdk/constructive-react/src/public/orm/skills/api.md +++ b/skills/orm-public-api/SKILL.md @@ -1,8 +1,13 @@ -# orm-api +--- +name: orm-public-api +description: API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings +--- + +# orm-public-api -ORM operations for Api records +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md b/skills/orm-public-app-achievement/SKILL.md similarity index 72% rename from sdk/constructive-react/src/admin/orm/skills/appAchievement.md rename to skills/orm-public-app-achievement/SKILL.md index 92ab466a3..6bf40958b 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md +++ b/skills/orm-public-app-achievement/SKILL.md @@ -1,8 +1,13 @@ -# orm-appAchievement +--- +name: orm-public-app-achievement +description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually +--- + +# orm-public-app-achievement -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appAdminGrant.md b/skills/orm-public-app-admin-grant/SKILL.md similarity index 81% rename from sdk/constructive-react/src/public/orm/skills/appAdminGrant.md rename to skills/orm-public-app-admin-grant/SKILL.md index 6b585abee..6197b301a 100644 --- a/sdk/constructive-react/src/public/orm/skills/appAdminGrant.md +++ b/skills/orm-public-app-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-appAdminGrant +--- +name: orm-public-app-admin-grant +description: Records of admin role grants and revocations between members +--- + +# orm-public-app-admin-grant -ORM operations for AppAdminGrant records +Records of admin role grants and revocations between members ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md b/skills/orm-public-app-grant/SKILL.md similarity index 79% rename from sdk/constructive-sdk/src/admin/orm/skills/appGrant.md rename to skills/orm-public-app-grant/SKILL.md index 017771262..50a4e9b58 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md +++ b/skills/orm-public-app-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-appGrant +--- +name: orm-public-app-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# orm-public-app-grant -ORM operations for AppGrant records +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md b/skills/orm-public-app-level-requirement/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md rename to skills/orm-public-app-level-requirement/SKILL.md index 28df77ff5..12d78796f 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md +++ b/skills/orm-public-app-level-requirement/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLevelRequirement +--- +name: orm-public-app-level-requirement +description: Defines the specific requirements that must be met to achieve a level +--- + +# orm-public-app-level-requirement -Requirements to achieve a level +Defines the specific requirements that must be met to achieve a level ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md b/skills/orm-public-app-level/SKILL.md similarity index 79% rename from sdk/constructive-sdk/src/admin/orm/skills/appLevel.md rename to skills/orm-public-app-level/SKILL.md index 3677ecc37..942a6d412 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md +++ b/skills/orm-public-app-level/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLevel +--- +name: orm-public-app-level +description: Defines available levels that users can achieve by completing requirements +--- + +# orm-public-app-level -Levels for achievement +Defines available levels that users can achieve by completing requirements ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md b/skills/orm-public-app-limit-default/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md rename to skills/orm-public-app-limit-default/SKILL.md index eb070a028..8fab9858c 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md +++ b/skills/orm-public-app-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLimitDefault +--- +name: orm-public-app-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# orm-public-app-limit-default -ORM operations for AppLimitDefault records +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md b/skills/orm-public-app-limit/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/admin/orm/skills/appLimit.md rename to skills/orm-public-app-limit/SKILL.md index 50fa2b37f..12257b035 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md +++ b/skills/orm-public-app-limit/SKILL.md @@ -1,8 +1,13 @@ -# orm-appLimit +--- +name: orm-public-app-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# orm-public-app-limit -ORM operations for AppLimit records +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md b/skills/orm-public-app-membership-default/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md rename to skills/orm-public-app-membership-default/SKILL.md index 82c322958..94e8428db 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md +++ b/skills/orm-public-app-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-appMembershipDefault +--- +name: orm-public-app-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# orm-public-app-membership-default -ORM operations for AppMembershipDefault records +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appMembership.md b/skills/orm-public-app-membership/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/appMembership.md rename to skills/orm-public-app-membership/SKILL.md index 07e8f9763..b04cd0e23 100644 --- a/sdk/constructive-react/src/public/orm/skills/appMembership.md +++ b/skills/orm-public-app-membership/SKILL.md @@ -1,15 +1,20 @@ -# orm-appMembership +--- +name: orm-public-app-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# orm-public-app-membership -ORM operations for AppMembership records +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript db.appMembership.findMany({ select: { id: true } }).execute() db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.appMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.appMembership.findMany({ ```typescript const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', profileId: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md b/skills/orm-public-app-owner-grant/SKILL.md similarity index 81% rename from sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md rename to skills/orm-public-app-owner-grant/SKILL.md index 89c574dd7..455f02af4 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md +++ b/skills/orm-public-app-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-appOwnerGrant +--- +name: orm-public-app-owner-grant +description: Records of ownership transfers and grants between members +--- + +# orm-public-app-owner-grant -ORM operations for AppOwnerGrant records +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md b/skills/orm-public-app-permission-default/SKILL.md similarity index 78% rename from sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md rename to skills/orm-public-app-permission-default/SKILL.md index ef8289183..6852a9812 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md +++ b/skills/orm-public-app-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-appPermissionDefault +--- +name: orm-public-app-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# orm-public-app-permission-default -ORM operations for AppPermissionDefault records +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md b/skills/orm-public-app-permission/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/admin/orm/skills/appPermission.md rename to skills/orm-public-app-permission/SKILL.md index a497f7b8a..abd6ad90b 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md +++ b/skills/orm-public-app-permission/SKILL.md @@ -1,8 +1,13 @@ -# orm-appPermission +--- +name: orm-public-app-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# orm-public-app-permission -ORM operations for AppPermission records +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md b/skills/orm-public-app-permissions-get-by-mask/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md rename to skills/orm-public-app-permissions-get-by-mask/SKILL.md index 369df9f26..8f32626c8 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md +++ b/skills/orm-public-app-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetByMask +--- +name: orm-public-app-permissions-get-by-mask +description: Reads and enables pagination through a set of `AppPermission`. +--- + +# orm-public-app-permissions-get-by-mask diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md b/skills/orm-public-app-permissions-get-mask-by-names/SKILL.md similarity index 68% rename from sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md rename to skills/orm-public-app-permissions-get-mask-by-names/SKILL.md index c3f40dddc..ec42c8b26 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md +++ b/skills/orm-public-app-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetMaskByNames +--- +name: orm-public-app-permissions-get-mask-by-names +description: Execute the appPermissionsGetMaskByNames query +--- + +# orm-public-app-permissions-get-mask-by-names diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md b/skills/orm-public-app-permissions-get-mask/SKILL.md similarity index 70% rename from sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md rename to skills/orm-public-app-permissions-get-mask/SKILL.md index ceca5548f..6bf7ab3fd 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md +++ b/skills/orm-public-app-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetMask +--- +name: orm-public-app-permissions-get-mask +description: Execute the appPermissionsGetMask query +--- + +# orm-public-app-permissions-get-mask diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md b/skills/orm-public-app-permissions-get-padded-mask/SKILL.md similarity index 68% rename from sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md rename to skills/orm-public-app-permissions-get-padded-mask/SKILL.md index accce0eed..2707537c9 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md +++ b/skills/orm-public-app-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-appPermissionsGetPaddedMask +--- +name: orm-public-app-permissions-get-padded-mask +description: Execute the appPermissionsGetPaddedMask query +--- + +# orm-public-app-permissions-get-padded-mask diff --git a/sdk/constructive-react/src/public/orm/skills/appStep.md b/skills/orm-public-app-step/SKILL.md similarity index 74% rename from sdk/constructive-react/src/public/orm/skills/appStep.md rename to skills/orm-public-app-step/SKILL.md index 3c349de1f..56af952d8 100644 --- a/sdk/constructive-react/src/public/orm/skills/appStep.md +++ b/skills/orm-public-app-step/SKILL.md @@ -1,8 +1,13 @@ -# orm-appStep +--- +name: orm-public-app-step +description: Log of individual user actions toward level requirements; every single step ever taken is recorded here +--- + +# orm-public-app-step -The user achieving a requirement for a level. Log table that has every single step ever taken. +Log of individual user actions toward level requirements; every single step ever taken is recorded here ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/app.md b/skills/orm-public-app/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/public/orm/skills/app.md rename to skills/orm-public-app/SKILL.md index aa0d12b64..b74f04919 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/app.md +++ b/skills/orm-public-app/SKILL.md @@ -1,8 +1,13 @@ -# orm-app +--- +name: orm-public-app +description: Mobile and native app configuration linked to a site, including store links and identifiers +--- + +# orm-public-app -ORM operations for App records +Mobile and native app configuration linked to a site, including store links and identifiers ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/applyRls.md b/skills/orm-public-apply-rls/SKILL.md similarity index 74% rename from sdk/constructive-sdk/src/public/orm/skills/applyRls.md rename to skills/orm-public-apply-rls/SKILL.md index 4716da759..2d555bb35 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/applyRls.md +++ b/skills/orm-public-apply-rls/SKILL.md @@ -1,4 +1,9 @@ -# orm-applyRls +--- +name: orm-public-apply-rls +description: Execute the applyRls mutation +--- + +# orm-public-apply-rls diff --git a/sdk/constructive-react/src/public/orm/skills/astMigration.md b/skills/orm-public-ast-migration/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/orm/skills/astMigration.md rename to skills/orm-public-ast-migration/SKILL.md index 96c82138c..f254ae5a0 100644 --- a/sdk/constructive-react/src/public/orm/skills/astMigration.md +++ b/skills/orm-public-ast-migration/SKILL.md @@ -1,4 +1,9 @@ -# orm-astMigration +--- +name: orm-public-ast-migration +description: ORM operations for AstMigration records +--- + +# orm-public-ast-migration diff --git a/sdk/constructive-react/src/public/orm/skills/auditLog.md b/skills/orm-public-audit-log/SKILL.md similarity index 79% rename from sdk/constructive-react/src/public/orm/skills/auditLog.md rename to skills/orm-public-audit-log/SKILL.md index d7eed269a..f20daa5f9 100644 --- a/sdk/constructive-react/src/public/orm/skills/auditLog.md +++ b/skills/orm-public-audit-log/SKILL.md @@ -1,8 +1,13 @@ -# orm-auditLog +--- +name: orm-public-audit-log +description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +--- + +# orm-public-audit-log -ORM operations for AuditLog records +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/bootstrapUser.md b/skills/orm-public-bootstrap-user/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/bootstrapUser.md rename to skills/orm-public-bootstrap-user/SKILL.md index 08fff3805..1183a61f7 100644 --- a/sdk/constructive-react/src/public/orm/skills/bootstrapUser.md +++ b/skills/orm-public-bootstrap-user/SKILL.md @@ -1,4 +1,9 @@ -# orm-bootstrapUser +--- +name: orm-public-bootstrap-user +description: Execute the bootstrapUser mutation +--- + +# orm-public-bootstrap-user diff --git a/sdk/constructive-react/src/public/orm/skills/checkConstraint.md b/skills/orm-public-check-constraint/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/orm/skills/checkConstraint.md rename to skills/orm-public-check-constraint/SKILL.md index 1e13d4f10..f23fe374a 100644 --- a/sdk/constructive-react/src/public/orm/skills/checkConstraint.md +++ b/skills/orm-public-check-constraint/SKILL.md @@ -1,4 +1,9 @@ -# orm-checkConstraint +--- +name: orm-public-check-constraint +description: ORM operations for CheckConstraint records +--- + +# orm-public-check-constraint diff --git a/sdk/constructive-react/src/auth/orm/skills/checkPassword.md b/skills/orm-public-check-password/SKILL.md similarity index 72% rename from sdk/constructive-react/src/auth/orm/skills/checkPassword.md rename to skills/orm-public-check-password/SKILL.md index 1c5c3d8ba..2ec7b7943 100644 --- a/sdk/constructive-react/src/auth/orm/skills/checkPassword.md +++ b/skills/orm-public-check-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-checkPassword +--- +name: orm-public-check-password +description: Execute the checkPassword mutation +--- + +# orm-public-check-password diff --git a/sdk/constructive-react/src/admin/orm/skills/claimedInvite.md b/skills/orm-public-claimed-invite/SKILL.md similarity index 79% rename from sdk/constructive-react/src/admin/orm/skills/claimedInvite.md rename to skills/orm-public-claimed-invite/SKILL.md index 3d5de6b3b..fa67ddd35 100644 --- a/sdk/constructive-react/src/admin/orm/skills/claimedInvite.md +++ b/skills/orm-public-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-claimedInvite +--- +name: orm-public-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# orm-public-claimed-invite -ORM operations for ClaimedInvite records +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/commit.md b/skills/orm-public-commit/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/orm/skills/commit.md rename to skills/orm-public-commit/SKILL.md index 85ded9d62..3bd3bf01f 100644 --- a/sdk/constructive-react/src/public/orm/skills/commit.md +++ b/skills/orm-public-commit/SKILL.md @@ -1,4 +1,9 @@ -# orm-commit +--- +name: orm-public-commit +description: A commit records changes to the repository. +--- + +# orm-public-commit diff --git a/sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md b/skills/orm-public-confirm-delete-account/SKILL.md similarity index 71% rename from sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md rename to skills/orm-public-confirm-delete-account/SKILL.md index 4d76c3194..4ec35aa11 100644 --- a/sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md +++ b/skills/orm-public-confirm-delete-account/SKILL.md @@ -1,4 +1,9 @@ -# orm-confirmDeleteAccount +--- +name: orm-public-confirm-delete-account +description: Execute the confirmDeleteAccount mutation +--- + +# orm-public-confirm-delete-account diff --git a/sdk/constructive-react/src/public/orm/skills/connectedAccount.md b/skills/orm-public-connected-account/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/orm/skills/connectedAccount.md rename to skills/orm-public-connected-account/SKILL.md index ff7e10281..40537be5b 100644 --- a/sdk/constructive-react/src/public/orm/skills/connectedAccount.md +++ b/skills/orm-public-connected-account/SKILL.md @@ -1,8 +1,13 @@ -# orm-connectedAccount +--- +name: orm-public-connected-account +description: OAuth and social login connections linking external service accounts to users +--- + +# orm-public-connected-account -ORM operations for ConnectedAccount records +OAuth and social login connections linking external service accounts to users ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md b/skills/orm-public-connected-accounts-module/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md rename to skills/orm-public-connected-accounts-module/SKILL.md index 5a0a95552..1839acb17 100644 --- a/sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md +++ b/skills/orm-public-connected-accounts-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-connectedAccountsModule +--- +name: orm-public-connected-accounts-module +description: ORM operations for ConnectedAccountsModule records +--- + +# orm-public-connected-accounts-module diff --git a/sdk/constructive-react/src/public/orm/skills/createUserDatabase.md b/skills/orm-public-create-user-database/SKILL.md similarity index 54% rename from sdk/constructive-react/src/public/orm/skills/createUserDatabase.md rename to skills/orm-public-create-user-database/SKILL.md index aeaeb3f50..f95f625d0 100644 --- a/sdk/constructive-react/src/public/orm/skills/createUserDatabase.md +++ b/skills/orm-public-create-user-database/SKILL.md @@ -1,4 +1,25 @@ -# orm-createUserDatabase +--- +name: orm-public-create-user-database +description: Creates a new user database with all required modules, permissions, and RLS policies. + +Parameters: + - database_name: Name for the new database (required) + - owner_id: UUID of the owner user (required) + - include_invites: Include invite system (default: true) + - include_groups: Include group-level memberships (default: false) + - include_levels: Include levels/achievements (default: false) + - bitlen: Bit length for permission masks (default: 64) + - tokens_expiration: Token expiration interval (default: 30 days) + +Returns the database_id UUID of the newly created database. + +Example usage: + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + +--- + +# orm-public-create-user-database diff --git a/sdk/constructive-react/src/public/orm/skills/cryptoAddress.md b/skills/orm-public-crypto-address/SKILL.md similarity index 77% rename from sdk/constructive-react/src/public/orm/skills/cryptoAddress.md rename to skills/orm-public-crypto-address/SKILL.md index 70e896572..27d1ff81e 100644 --- a/sdk/constructive-react/src/public/orm/skills/cryptoAddress.md +++ b/skills/orm-public-crypto-address/SKILL.md @@ -1,8 +1,13 @@ -# orm-cryptoAddress +--- +name: orm-public-crypto-address +description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification +--- + +# orm-public-crypto-address -ORM operations for CryptoAddress records +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md b/skills/orm-public-crypto-addresses-module/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md rename to skills/orm-public-crypto-addresses-module/SKILL.md index 1eb3867b9..53618e924 100644 --- a/sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md +++ b/skills/orm-public-crypto-addresses-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-cryptoAddressesModule +--- +name: orm-public-crypto-addresses-module +description: ORM operations for CryptoAddressesModule records +--- + +# orm-public-crypto-addresses-module diff --git a/sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md b/skills/orm-public-crypto-auth-module/SKILL.md similarity index 92% rename from sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md rename to skills/orm-public-crypto-auth-module/SKILL.md index 2cb20a2ec..5f1c8eb0a 100644 --- a/sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md +++ b/skills/orm-public-crypto-auth-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-cryptoAuthModule +--- +name: orm-public-crypto-auth-module +description: ORM operations for CryptoAuthModule records +--- + +# orm-public-crypto-auth-module diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md b/skills/orm-public-current-ip-address/SKILL.md similarity index 68% rename from sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md rename to skills/orm-public-current-ip-address/SKILL.md index 63d2d9969..94cdccb17 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md +++ b/skills/orm-public-current-ip-address/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentIpAddress +--- +name: orm-public-current-ip-address +description: Execute the currentIpAddress query +--- + +# orm-public-current-ip-address diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md b/skills/orm-public-current-user-agent/SKILL.md similarity index 68% rename from sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md rename to skills/orm-public-current-user-agent/SKILL.md index e5ba1e850..f5f8ec40c 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md +++ b/skills/orm-public-current-user-agent/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentUserAgent +--- +name: orm-public-current-user-agent +description: Execute the currentUserAgent query +--- + +# orm-public-current-user-agent diff --git a/sdk/constructive-react/src/auth/orm/skills/currentUserId.md b/skills/orm-public-current-user-id/SKILL.md similarity index 69% rename from sdk/constructive-react/src/auth/orm/skills/currentUserId.md rename to skills/orm-public-current-user-id/SKILL.md index c27ebc8c5..f28f2aac0 100644 --- a/sdk/constructive-react/src/auth/orm/skills/currentUserId.md +++ b/skills/orm-public-current-user-id/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentUserId +--- +name: orm-public-current-user-id +description: Execute the currentUserId query +--- + +# orm-public-current-user-id diff --git a/sdk/constructive-react/src/public/orm/skills/currentUser.md b/skills/orm-public-current-user/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/orm/skills/currentUser.md rename to skills/orm-public-current-user/SKILL.md index ca907fcb4..994a5cfb3 100644 --- a/sdk/constructive-react/src/public/orm/skills/currentUser.md +++ b/skills/orm-public-current-user/SKILL.md @@ -1,4 +1,9 @@ -# orm-currentUser +--- +name: orm-public-current-user +description: Execute the currentUser query +--- + +# orm-public-current-user diff --git a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md b/skills/orm-public-database-provision-module/SKILL.md similarity index 85% rename from sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md rename to skills/orm-public-database-provision-module/SKILL.md index 89a929c4f..81b5d6529 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md +++ b/skills/orm-public-database-provision-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-databaseProvisionModule +--- +name: orm-public-database-provision-module +description: Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. +--- + +# orm-public-database-provision-module diff --git a/sdk/constructive-react/src/public/orm/skills/database.md b/skills/orm-public-database/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/orm/skills/database.md rename to skills/orm-public-database/SKILL.md index cc4593c1d..8ec74262b 100644 --- a/sdk/constructive-react/src/public/orm/skills/database.md +++ b/skills/orm-public-database/SKILL.md @@ -1,4 +1,9 @@ -# orm-database +--- +name: orm-public-database +description: ORM operations for Database records +--- + +# orm-public-database diff --git a/sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md b/skills/orm-public-default-ids-module/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md rename to skills/orm-public-default-ids-module/SKILL.md index 23189ab90..2153928eb 100644 --- a/sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md +++ b/skills/orm-public-default-ids-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-defaultIdsModule +--- +name: orm-public-default-ids-module +description: ORM operations for DefaultIdsModule records +--- + +# orm-public-default-ids-module diff --git a/skills/orm-public-default-privilege/SKILL.md b/skills/orm-public-default-privilege/SKILL.md new file mode 100644 index 000000000..95846891c --- /dev/null +++ b/skills/orm-public-default-privilege/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-public-default-privilege +description: ORM operations for DefaultPrivilege records +--- + +# orm-public-default-privilege + + + +ORM operations for DefaultPrivilege records + +## Usage + +```typescript +db.defaultPrivilege.findMany({ select: { id: true } }).execute() +db.defaultPrivilege.findOne({ id: '', select: { id: true } }).execute() +db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute() +db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultPrivilege.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all defaultPrivilege records + +```typescript +const items = await db.defaultPrivilege.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a defaultPrivilege + +```typescript +const item = await db.defaultPrivilege.create({ + data: { databaseId: 'value', schemaId: 'value', objectType: 'value', privilege: 'value', granteeName: 'value', isGrant: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md b/skills/orm-public-denormalized-table-field/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md rename to skills/orm-public-denormalized-table-field/SKILL.md index 4d81ed52e..44f83730c 100644 --- a/sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md +++ b/skills/orm-public-denormalized-table-field/SKILL.md @@ -1,4 +1,9 @@ -# orm-denormalizedTableField +--- +name: orm-public-denormalized-table-field +description: ORM operations for DenormalizedTableField records +--- + +# orm-public-denormalized-table-field diff --git a/sdk/constructive-sdk/src/public/orm/skills/domain.md b/skills/orm-public-domain/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/public/orm/skills/domain.md rename to skills/orm-public-domain/SKILL.md index 382a92135..da2c1576e 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/domain.md +++ b/skills/orm-public-domain/SKILL.md @@ -1,8 +1,13 @@ -# orm-domain +--- +name: orm-public-domain +description: DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site +--- + +# orm-public-domain -ORM operations for Domain records +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site ## Usage diff --git a/sdk/constructive-react/src/auth/orm/skills/email.md b/skills/orm-public-email/SKILL.md similarity index 81% rename from sdk/constructive-react/src/auth/orm/skills/email.md rename to skills/orm-public-email/SKILL.md index 9bc21e74f..38601dfa6 100644 --- a/sdk/constructive-react/src/auth/orm/skills/email.md +++ b/skills/orm-public-email/SKILL.md @@ -1,8 +1,13 @@ -# orm-email +--- +name: orm-public-email +description: User email addresses with verification and primary-email management +--- + +# orm-public-email -ORM operations for Email records +User email addresses with verification and primary-email management ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md b/skills/orm-public-emails-module/SKILL.md similarity index 90% rename from sdk/constructive-sdk/src/public/orm/skills/emailsModule.md rename to skills/orm-public-emails-module/SKILL.md index 2634c1661..e4cd2287f 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md +++ b/skills/orm-public-emails-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-emailsModule +--- +name: orm-public-emails-module +description: ORM operations for EmailsModule records +--- + +# orm-public-emails-module diff --git a/sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md b/skills/orm-public-encrypted-secrets-module/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md rename to skills/orm-public-encrypted-secrets-module/SKILL.md index af02ae8c9..6cec0fb0a 100644 --- a/sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md +++ b/skills/orm-public-encrypted-secrets-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-encryptedSecretsModule +--- +name: orm-public-encrypted-secrets-module +description: ORM operations for EncryptedSecretsModule records +--- + +# orm-public-encrypted-secrets-module diff --git a/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md b/skills/orm-public-extend-token-expires/SKILL.md similarity index 71% rename from sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md rename to skills/orm-public-extend-token-expires/SKILL.md index d587afacb..f08dd92bb 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md +++ b/skills/orm-public-extend-token-expires/SKILL.md @@ -1,4 +1,9 @@ -# orm-extendTokenExpires +--- +name: orm-public-extend-token-expires +description: Execute the extendTokenExpires mutation +--- + +# orm-public-extend-token-expires diff --git a/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md b/skills/orm-public-field-module/SKILL.md similarity index 90% rename from sdk/constructive-sdk/src/public/orm/skills/fieldModule.md rename to skills/orm-public-field-module/SKILL.md index c4cbbbce9..48a166a35 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md +++ b/skills/orm-public-field-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-fieldModule +--- +name: orm-public-field-module +description: ORM operations for FieldModule records +--- + +# orm-public-field-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/field.md b/skills/orm-public-field/SKILL.md similarity index 94% rename from sdk/constructive-sdk/src/public/orm/skills/field.md rename to skills/orm-public-field/SKILL.md index e22588cfc..b7575c732 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/field.md +++ b/skills/orm-public-field/SKILL.md @@ -1,4 +1,9 @@ -# orm-field +--- +name: orm-public-field +description: ORM operations for Field records +--- + +# orm-public-field diff --git a/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md b/skills/orm-public-foreign-key-constraint/SKILL.md similarity index 91% rename from sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md rename to skills/orm-public-foreign-key-constraint/SKILL.md index fa445e8f4..3cf75cbdb 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md +++ b/skills/orm-public-foreign-key-constraint/SKILL.md @@ -1,4 +1,9 @@ -# orm-foreignKeyConstraint +--- +name: orm-public-foreign-key-constraint +description: ORM operations for ForeignKeyConstraint records +--- + +# orm-public-foreign-key-constraint diff --git a/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md b/skills/orm-public-forgot-password/SKILL.md similarity index 72% rename from sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md rename to skills/orm-public-forgot-password/SKILL.md index 38c59f662..1609c68c6 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md +++ b/skills/orm-public-forgot-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-forgotPassword +--- +name: orm-public-forgot-password +description: Execute the forgotPassword mutation +--- + +# orm-public-forgot-password diff --git a/sdk/constructive-react/src/objects/orm/skills/freezeObjects.md b/skills/orm-public-freeze-objects/SKILL.md similarity index 72% rename from sdk/constructive-react/src/objects/orm/skills/freezeObjects.md rename to skills/orm-public-freeze-objects/SKILL.md index b3f195547..e17a7dd26 100644 --- a/sdk/constructive-react/src/objects/orm/skills/freezeObjects.md +++ b/skills/orm-public-freeze-objects/SKILL.md @@ -1,4 +1,9 @@ -# orm-freezeObjects +--- +name: orm-public-freeze-objects +description: Execute the freezeObjects mutation +--- + +# orm-public-freeze-objects diff --git a/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md b/skills/orm-public-full-text-search/SKILL.md similarity index 89% rename from sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md rename to skills/orm-public-full-text-search/SKILL.md index 996c517da..8069ddc72 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md +++ b/skills/orm-public-full-text-search/SKILL.md @@ -1,4 +1,9 @@ -# orm-fullTextSearch +--- +name: orm-public-full-text-search +description: ORM operations for FullTextSearch records +--- + +# orm-public-full-text-search diff --git a/sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md b/skills/orm-public-get-all-objects-from-root/SKILL.md similarity index 75% rename from sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md rename to skills/orm-public-get-all-objects-from-root/SKILL.md index 71c5db4db..53958eb1a 100644 --- a/sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md +++ b/skills/orm-public-get-all-objects-from-root/SKILL.md @@ -1,4 +1,9 @@ -# orm-getAllObjectsFromRoot +--- +name: orm-public-get-all-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# orm-public-get-all-objects-from-root diff --git a/sdk/constructive-react/src/public/orm/skills/getAllRecord.md b/skills/orm-public-get-all-record/SKILL.md similarity index 87% rename from sdk/constructive-react/src/public/orm/skills/getAllRecord.md rename to skills/orm-public-get-all-record/SKILL.md index 9c61daad2..98c481b55 100644 --- a/sdk/constructive-react/src/public/orm/skills/getAllRecord.md +++ b/skills/orm-public-get-all-record/SKILL.md @@ -1,4 +1,9 @@ -# orm-getAllRecord +--- +name: orm-public-get-all-record +description: ORM operations for GetAllRecord records +--- + +# orm-public-get-all-record diff --git a/sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md b/skills/orm-public-get-object-at-path/SKILL.md similarity index 77% rename from sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md rename to skills/orm-public-get-object-at-path/SKILL.md index 820b6d5fc..56a4b5507 100644 --- a/sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md +++ b/skills/orm-public-get-object-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-getObjectAtPath +--- +name: orm-public-get-object-at-path +description: Execute the getObjectAtPath query +--- + +# orm-public-get-object-at-path diff --git a/sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md b/skills/orm-public-get-path-objects-from-root/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md rename to skills/orm-public-get-path-objects-from-root/SKILL.md index 954943d90..495ce6cd4 100644 --- a/sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md +++ b/skills/orm-public-get-path-objects-from-root/SKILL.md @@ -1,4 +1,9 @@ -# orm-getPathObjectsFromRoot +--- +name: orm-public-get-path-objects-from-root +description: Reads and enables pagination through a set of `Object`. +--- + +# orm-public-get-path-objects-from-root diff --git a/sdk/constructive-react/src/public/orm/skills/hierarchyModule.md b/skills/orm-public-hierarchy-module/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/orm/skills/hierarchyModule.md rename to skills/orm-public-hierarchy-module/SKILL.md index c6ba413a2..324699c32 100644 --- a/sdk/constructive-react/src/public/orm/skills/hierarchyModule.md +++ b/skills/orm-public-hierarchy-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-hierarchyModule +--- +name: orm-public-hierarchy-module +description: ORM operations for HierarchyModule records +--- + +# orm-public-hierarchy-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/index.md b/skills/orm-public-index/SKILL.md similarity index 93% rename from sdk/constructive-sdk/src/public/orm/skills/index.md rename to skills/orm-public-index/SKILL.md index 0a848a2e1..bd3e07dcd 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/index.md +++ b/skills/orm-public-index/SKILL.md @@ -1,4 +1,9 @@ -# orm-index +--- +name: orm-public-index +description: ORM operations for Index records +--- + +# orm-public-index diff --git a/sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md b/skills/orm-public-init-empty-repo/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md rename to skills/orm-public-init-empty-repo/SKILL.md index 43a46841f..9b9ab78f1 100644 --- a/sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md +++ b/skills/orm-public-init-empty-repo/SKILL.md @@ -1,4 +1,9 @@ -# orm-initEmptyRepo +--- +name: orm-public-init-empty-repo +description: Execute the initEmptyRepo mutation +--- + +# orm-public-init-empty-repo diff --git a/sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md b/skills/orm-public-insert-node-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md rename to skills/orm-public-insert-node-at-path/SKILL.md index 2e9db15a0..09452f3dc 100644 --- a/sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md +++ b/skills/orm-public-insert-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-insertNodeAtPath +--- +name: orm-public-insert-node-at-path +description: Execute the insertNodeAtPath mutation +--- + +# orm-public-insert-node-at-path diff --git a/sdk/constructive-react/src/public/orm/skills/invite.md b/skills/orm-public-invite/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/orm/skills/invite.md rename to skills/orm-public-invite/SKILL.md index 727a2107e..84aea42bf 100644 --- a/sdk/constructive-react/src/public/orm/skills/invite.md +++ b/skills/orm-public-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-invite +--- +name: orm-public-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# orm-public-invite -ORM operations for Invite records +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md b/skills/orm-public-invites-module/SKILL.md similarity index 92% rename from sdk/constructive-sdk/src/public/orm/skills/invitesModule.md rename to skills/orm-public-invites-module/SKILL.md index 64bdeacaa..9c72538e9 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md +++ b/skills/orm-public-invites-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-invitesModule +--- +name: orm-public-invites-module +description: ORM operations for InvitesModule records +--- + +# orm-public-invites-module diff --git a/sdk/constructive-react/src/public/orm/skills/levelsModule.md b/skills/orm-public-levels-module/SKILL.md similarity index 94% rename from sdk/constructive-react/src/public/orm/skills/levelsModule.md rename to skills/orm-public-levels-module/SKILL.md index 50a907813..898f59a09 100644 --- a/sdk/constructive-react/src/public/orm/skills/levelsModule.md +++ b/skills/orm-public-levels-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-levelsModule +--- +name: orm-public-levels-module +description: ORM operations for LevelsModule records +--- + +# orm-public-levels-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md b/skills/orm-public-limits-module/SKILL.md similarity index 93% rename from sdk/constructive-sdk/src/public/orm/skills/limitsModule.md rename to skills/orm-public-limits-module/SKILL.md index 6f9cccea1..5e7a0a450 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md +++ b/skills/orm-public-limits-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-limitsModule +--- +name: orm-public-limits-module +description: ORM operations for LimitsModule records +--- + +# orm-public-limits-module diff --git a/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md b/skills/orm-public-membership-type/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/admin/orm/skills/membershipType.md rename to skills/orm-public-membership-type/SKILL.md index 898d85107..3259f0c5e 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md +++ b/skills/orm-public-membership-type/SKILL.md @@ -1,8 +1,13 @@ -# orm-membershipType +--- +name: orm-public-membership-type +description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +--- + +# orm-public-membership-type -ORM operations for MembershipType records +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md b/skills/orm-public-membership-types-module/SKILL.md similarity index 87% rename from sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md rename to skills/orm-public-membership-types-module/SKILL.md index 17b77bb4b..abb41603d 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md +++ b/skills/orm-public-membership-types-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-membershipTypesModule +--- +name: orm-public-membership-types-module +description: ORM operations for MembershipTypesModule records +--- + +# orm-public-membership-types-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md b/skills/orm-public-memberships-module/SKILL.md similarity index 94% rename from sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md rename to skills/orm-public-memberships-module/SKILL.md index 6851144a5..7a04a59d1 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md +++ b/skills/orm-public-memberships-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-membershipsModule +--- +name: orm-public-memberships-module +description: ORM operations for MembershipsModule records +--- + +# orm-public-memberships-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md b/skills/orm-public-node-type-registry/SKILL.md similarity index 83% rename from sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md rename to skills/orm-public-node-type-registry/SKILL.md index 0024949c1..a42db6300 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md +++ b/skills/orm-public-node-type-registry/SKILL.md @@ -1,4 +1,9 @@ -# orm-nodeTypeRegistry +--- +name: orm-public-node-type-registry +description: Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). +--- + +# orm-public-node-type-registry diff --git a/sdk/constructive-react/src/public/orm/skills/object.md b/skills/orm-public-object/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/orm/skills/object.md rename to skills/orm-public-object/SKILL.md index e006a0b5a..93f60ef7f 100644 --- a/sdk/constructive-react/src/public/orm/skills/object.md +++ b/skills/orm-public-object/SKILL.md @@ -1,4 +1,9 @@ -# orm-object +--- +name: orm-public-object +description: ORM operations for Object records +--- + +# orm-public-object diff --git a/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md b/skills/orm-public-one-time-token/SKILL.md similarity index 72% rename from sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md rename to skills/orm-public-one-time-token/SKILL.md index 2ac3f962d..1dd366bcb 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md +++ b/skills/orm-public-one-time-token/SKILL.md @@ -1,4 +1,9 @@ -# orm-oneTimeToken +--- +name: orm-public-one-time-token +description: Execute the oneTimeToken mutation +--- + +# orm-public-one-time-token diff --git a/sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md b/skills/orm-public-org-admin-grant/SKILL.md similarity index 82% rename from sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md rename to skills/orm-public-org-admin-grant/SKILL.md index 675b76741..29439f33b 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md +++ b/skills/orm-public-org-admin-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgAdminGrant +--- +name: orm-public-org-admin-grant +description: Records of admin role grants and revocations between members +--- + +# orm-public-org-admin-grant -ORM operations for OrgAdminGrant records +Records of admin role grants and revocations between members ## Usage diff --git a/skills/orm-public-org-chart-edge-grant/SKILL.md b/skills/orm-public-org-chart-edge-grant/SKILL.md new file mode 100644 index 000000000..b98d146f8 --- /dev/null +++ b/skills/orm-public-org-chart-edge-grant/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-public-org-chart-edge-grant +description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +--- + +# orm-public-org-chart-edge-grant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +db.orgChartEdgeGrant.findMany({ select: { id: true } }).execute() +db.orgChartEdgeGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdgeGrant records + +```typescript +const items = await db.orgChartEdgeGrant.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdgeGrant + +```typescript +const item = await db.orgChartEdgeGrant.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', grantorId: 'value', isGrant: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public-org-chart-edge/SKILL.md b/skills/orm-public-org-chart-edge/SKILL.md new file mode 100644 index 000000000..177ce5dfa --- /dev/null +++ b/skills/orm-public-org-chart-edge/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-public-org-chart-edge +description: Organizational chart edges defining parent-child reporting relationships between members within an entity +--- + +# orm-public-org-chart-edge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +db.orgChartEdge.findMany({ select: { id: true } }).execute() +db.orgChartEdge.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdge.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdge records + +```typescript +const items = await db.orgChartEdge.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdge + +```typescript +const item = await db.orgChartEdge.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md b/skills/orm-public-org-claimed-invite/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md rename to skills/orm-public-org-claimed-invite/SKILL.md index 5693e2856..81286ae1d 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md +++ b/skills/orm-public-org-claimed-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgClaimedInvite +--- +name: orm-public-org-claimed-invite +description: Records of successfully claimed invitations, linking senders to receivers +--- + +# orm-public-org-claimed-invite -ORM operations for OrgClaimedInvite records +Records of successfully claimed invitations, linking senders to receivers ## Usage diff --git a/skills/orm-public-org-get-managers-record/SKILL.md b/skills/orm-public-org-get-managers-record/SKILL.md new file mode 100644 index 000000000..0ce6e07f6 --- /dev/null +++ b/skills/orm-public-org-get-managers-record/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-public-org-get-managers-record +description: ORM operations for OrgGetManagersRecord records +--- + +# orm-public-org-get-managers-record + + + +ORM operations for OrgGetManagersRecord records + +## Usage + +```typescript +db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() +db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetManagersRecord records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetManagersRecord + +```typescript +const item = await db.orgGetManagersRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public-org-get-subordinates-record/SKILL.md b/skills/orm-public-org-get-subordinates-record/SKILL.md new file mode 100644 index 000000000..e231a668d --- /dev/null +++ b/skills/orm-public-org-get-subordinates-record/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-public-org-get-subordinates-record +description: ORM operations for OrgGetSubordinatesRecord records +--- + +# orm-public-org-get-subordinates-record + + + +ORM operations for OrgGetSubordinatesRecord records + +## Usage + +```typescript +db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() +db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetSubordinatesRecord records + +```typescript +const items = await db.orgGetSubordinatesRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const item = await db.orgGetSubordinatesRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md b/skills/orm-public-org-grant/SKILL.md similarity index 80% rename from sdk/constructive-sdk/src/public/orm/skills/orgGrant.md rename to skills/orm-public-org-grant/SKILL.md index ac4c4b896..db84df231 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md +++ b/skills/orm-public-org-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgGrant +--- +name: orm-public-org-grant +description: Records of individual permission grants and revocations for members via bitmask +--- + +# orm-public-org-grant -ORM operations for OrgGrant records +Records of individual permission grants and revocations for members via bitmask ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md b/skills/orm-public-org-invite/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md rename to skills/orm-public-org-invite/SKILL.md index ea7ff346d..a937504cc 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md +++ b/skills/orm-public-org-invite/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgInvite +--- +name: orm-public-org-invite +description: Invitation records sent to prospective members via email, with token-based redemption and expiration +--- + +# orm-public-org-invite -ORM operations for OrgInvite records +Invitation records sent to prospective members via email, with token-based redemption and expiration ## Usage diff --git a/skills/orm-public-org-is-manager-of/SKILL.md b/skills/orm-public-org-is-manager-of/SKILL.md new file mode 100644 index 000000000..42ec40962 --- /dev/null +++ b/skills/orm-public-org-is-manager-of/SKILL.md @@ -0,0 +1,24 @@ +--- +name: orm-public-org-is-manager-of +description: Execute the orgIsManagerOf query +--- + +# orm-public-org-is-manager-of + + + +Execute the orgIsManagerOf query + +## Usage + +```typescript +db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute() +``` + +## Examples + +### Run orgIsManagerOf + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md b/skills/orm-public-org-limit-default/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md rename to skills/orm-public-org-limit-default/SKILL.md index 4a4e505bd..a9d76bf56 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md +++ b/skills/orm-public-org-limit-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgLimitDefault +--- +name: orm-public-org-limit-default +description: Default maximum values for each named limit, applied when no per-actor override exists +--- + +# orm-public-org-limit-default -ORM operations for OrgLimitDefault records +Default maximum values for each named limit, applied when no per-actor override exists ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md b/skills/orm-public-org-limit/SKILL.md similarity index 81% rename from sdk/constructive-sdk/src/public/orm/skills/orgLimit.md rename to skills/orm-public-org-limit/SKILL.md index 19681fddf..e7453db98 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md +++ b/skills/orm-public-org-limit/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgLimit +--- +name: orm-public-org-limit +description: Tracks per-actor usage counts against configurable maximum limits +--- + +# orm-public-org-limit -ORM operations for OrgLimit records +Tracks per-actor usage counts against configurable maximum limits ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/orgMember.md b/skills/orm-public-org-member/SKILL.md similarity index 76% rename from sdk/constructive-react/src/admin/orm/skills/orgMember.md rename to skills/orm-public-org-member/SKILL.md index 2aadbafd3..c0188b594 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgMember.md +++ b/skills/orm-public-org-member/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgMember +--- +name: orm-public-org-member +description: Simplified view of active members in an entity, used for listing who belongs to an org or group +--- + +# orm-public-org-member -ORM operations for OrgMember records +Simplified view of active members in an entity, used for listing who belongs to an org or group ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md b/skills/orm-public-org-membership-default/SKILL.md similarity index 78% rename from sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md rename to skills/orm-public-org-membership-default/SKILL.md index cd8146f14..15ca6ee2f 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md +++ b/skills/orm-public-org-membership-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgMembershipDefault +--- +name: orm-public-org-membership-default +description: Default membership settings per entity, controlling initial approval and verification state for new members +--- + +# orm-public-org-membership-default -ORM operations for OrgMembershipDefault records +Default membership settings per entity, controlling initial approval and verification state for new members ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md b/skills/orm-public-org-membership/SKILL.md similarity index 71% rename from sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md rename to skills/orm-public-org-membership/SKILL.md index b98b850b2..7ce852b47 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md +++ b/skills/orm-public-org-membership/SKILL.md @@ -1,15 +1,20 @@ -# orm-orgMembership +--- +name: orm-public-org-membership +description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +--- + +# orm-public-org-membership -ORM operations for OrgMembership records +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ## Usage ```typescript db.orgMembership.findMany({ select: { id: true } }).execute() db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute() db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.orgMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.orgMembership.findMany({ ```typescript const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value', profileId: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md b/skills/orm-public-org-owner-grant/SKILL.md similarity index 82% rename from sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md rename to skills/orm-public-org-owner-grant/SKILL.md index 8a490261b..2bc639cdc 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md +++ b/skills/orm-public-org-owner-grant/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgOwnerGrant +--- +name: orm-public-org-owner-grant +description: Records of ownership transfers and grants between members +--- + +# orm-public-org-owner-grant -ORM operations for OrgOwnerGrant records +Records of ownership transfers and grants between members ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md b/skills/orm-public-org-permission-default/SKILL.md similarity index 79% rename from sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md rename to skills/orm-public-org-permission-default/SKILL.md index 8d8e20afc..fe9390ae7 100644 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md +++ b/skills/orm-public-org-permission-default/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgPermissionDefault +--- +name: orm-public-org-permission-default +description: Stores the default permission bitmask assigned to new members upon joining +--- + +# orm-public-org-permission-default -ORM operations for OrgPermissionDefault records +Stores the default permission bitmask assigned to new members upon joining ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermission.md b/skills/orm-public-org-permission/SKILL.md similarity index 76% rename from sdk/constructive-react/src/public/orm/skills/orgPermission.md rename to skills/orm-public-org-permission/SKILL.md index 1f18add5d..f3e987e1a 100644 --- a/sdk/constructive-react/src/public/orm/skills/orgPermission.md +++ b/skills/orm-public-org-permission/SKILL.md @@ -1,8 +1,13 @@ -# orm-orgPermission +--- +name: orm-public-org-permission +description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +--- + +# orm-public-org-permission -ORM operations for OrgPermission records +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md b/skills/orm-public-org-permissions-get-by-mask/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md rename to skills/orm-public-org-permissions-get-by-mask/SKILL.md index 437f5c98b..a00428159 100644 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md +++ b/skills/orm-public-org-permissions-get-by-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetByMask +--- +name: orm-public-org-permissions-get-by-mask +description: Reads and enables pagination through a set of `OrgPermission`. +--- + +# orm-public-org-permissions-get-by-mask diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md b/skills/orm-public-org-permissions-get-mask-by-names/SKILL.md similarity index 68% rename from sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md rename to skills/orm-public-org-permissions-get-mask-by-names/SKILL.md index f67397dcc..920f27099 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md +++ b/skills/orm-public-org-permissions-get-mask-by-names/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetMaskByNames +--- +name: orm-public-org-permissions-get-mask-by-names +description: Execute the orgPermissionsGetMaskByNames query +--- + +# orm-public-org-permissions-get-mask-by-names diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md b/skills/orm-public-org-permissions-get-mask/SKILL.md similarity index 70% rename from sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md rename to skills/orm-public-org-permissions-get-mask/SKILL.md index c626883ad..0655f1f26 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md +++ b/skills/orm-public-org-permissions-get-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetMask +--- +name: orm-public-org-permissions-get-mask +description: Execute the orgPermissionsGetMask query +--- + +# orm-public-org-permissions-get-mask diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md b/skills/orm-public-org-permissions-get-padded-mask/SKILL.md similarity index 68% rename from sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md rename to skills/orm-public-org-permissions-get-padded-mask/SKILL.md index a67198a29..a84dc722d 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md +++ b/skills/orm-public-org-permissions-get-padded-mask/SKILL.md @@ -1,4 +1,9 @@ -# orm-orgPermissionsGetPaddedMask +--- +name: orm-public-org-permissions-get-padded-mask +description: Execute the orgPermissionsGetPaddedMask query +--- + +# orm-public-org-permissions-get-padded-mask diff --git a/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md b/skills/orm-public-permissions-module/SKILL.md similarity index 92% rename from sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md rename to skills/orm-public-permissions-module/SKILL.md index 4b11e8d55..2436c9a23 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md +++ b/skills/orm-public-permissions-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-permissionsModule +--- +name: orm-public-permissions-module +description: ORM operations for PermissionsModule records +--- + +# orm-public-permissions-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md b/skills/orm-public-phone-number/SKILL.md similarity index 79% rename from sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md rename to skills/orm-public-phone-number/SKILL.md index 2a77480fa..e44134203 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md +++ b/skills/orm-public-phone-number/SKILL.md @@ -1,8 +1,13 @@ -# orm-phoneNumber +--- +name: orm-public-phone-number +description: User phone numbers with country code, verification, and primary-number management +--- + +# orm-public-phone-number -ORM operations for PhoneNumber records +User phone numbers with country code, verification, and primary-number management ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md b/skills/orm-public-phone-numbers-module/SKILL.md similarity index 89% rename from sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md rename to skills/orm-public-phone-numbers-module/SKILL.md index 309f0bc88..ab998cade 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md +++ b/skills/orm-public-phone-numbers-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-phoneNumbersModule +--- +name: orm-public-phone-numbers-module +description: ORM operations for PhoneNumbersModule records +--- + +# orm-public-phone-numbers-module diff --git a/sdk/constructive-sdk/src/public/orm/skills/policy.md b/skills/orm-public-policy/SKILL.md similarity index 57% rename from sdk/constructive-sdk/src/public/orm/skills/policy.md rename to skills/orm-public-policy/SKILL.md index c31b2d4dd..4c87c1c98 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/policy.md +++ b/skills/orm-public-policy/SKILL.md @@ -1,4 +1,9 @@ -# orm-policy +--- +name: orm-public-policy +description: ORM operations for Policy records +--- + +# orm-public-policy @@ -9,7 +14,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: '', roleName: '', 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: '', module: '', 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 +33,7 @@ const items = await db.policy.findMany({ ```typescript const item = await db.policy.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', roleName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + data: { databaseId: 'value', tableId: 'value', name: 'value', granteeName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md b/skills/orm-public-primary-key-constraint/SKILL.md similarity index 89% rename from sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md rename to skills/orm-public-primary-key-constraint/SKILL.md index 65e798742..03a6c72cf 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md +++ b/skills/orm-public-primary-key-constraint/SKILL.md @@ -1,4 +1,9 @@ -# orm-primaryKeyConstraint +--- +name: orm-public-primary-key-constraint +description: ORM operations for PrimaryKeyConstraint records +--- + +# orm-public-primary-key-constraint diff --git a/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md b/skills/orm-public-profiles-module/SKILL.md similarity index 71% rename from sdk/constructive-sdk/src/public/orm/skills/profilesModule.md rename to skills/orm-public-profiles-module/SKILL.md index b6a9caa1a..60a2afebf 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md +++ b/skills/orm-public-profiles-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-profilesModule +--- +name: orm-public-profiles-module +description: ORM operations for ProfilesModule records +--- + +# orm-public-profiles-module @@ -9,7 +14,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: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.profilesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.profilesModule.findMany({ ```typescript const item = await db.profilesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md b/skills/orm-public-provision-database-with-user/SKILL.md similarity index 69% rename from sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md rename to skills/orm-public-provision-database-with-user/SKILL.md index 447ffb844..9f7d4d887 100644 --- a/sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md +++ b/skills/orm-public-provision-database-with-user/SKILL.md @@ -1,4 +1,9 @@ -# orm-provisionDatabaseWithUser +--- +name: orm-public-provision-database-with-user +description: Execute the provisionDatabaseWithUser mutation +--- + +# orm-public-provision-database-with-user diff --git a/sdk/constructive-react/src/objects/orm/skills/ref.md b/skills/orm-public-ref/SKILL.md similarity index 88% rename from sdk/constructive-react/src/objects/orm/skills/ref.md rename to skills/orm-public-ref/SKILL.md index 3165ec41e..d391de128 100644 --- a/sdk/constructive-react/src/objects/orm/skills/ref.md +++ b/skills/orm-public-ref/SKILL.md @@ -1,4 +1,9 @@ -# orm-ref +--- +name: orm-public-ref +description: A ref is a data structure for pointing to a commit. +--- + +# orm-public-ref diff --git a/skills/orm-public-relation-provision/SKILL.md b/skills/orm-public-relation-provision/SKILL.md new file mode 100644 index 000000000..f26f20fe5 --- /dev/null +++ b/skills/orm-public-relation-provision/SKILL.md @@ -0,0 +1,53 @@ +--- +name: orm-public-relation-provision +description: 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. +--- + +# orm-public-relation-provision + + + +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. + +## Usage + +```typescript +db.relationProvision.findMany({ select: { id: true } }).execute() +db.relationProvision.findOne({ id: '', select: { id: true } }).execute() +db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute() +db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.relationProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all relationProvision records + +```typescript +const items = await db.relationProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a relationProvision + +```typescript +const item = await db.relationProvision.create({ + data: { databaseId: 'value', relationType: 'value', sourceTableId: 'value', targetTableId: 'value', fieldName: 'value', deleteAction: 'value', isRequired: 'value', junctionTableId: 'value', junctionTableName: 'value', junctionSchemaId: 'value', sourceFieldName: 'value', targetFieldName: 'value', useCompositeKey: 'value', nodeType: 'value', nodeData: 'value', grantRoles: 'value', grantPrivileges: 'value', policyType: 'value', policyPrivileges: 'value', policyRole: 'value', policyPermissive: 'value', policyName: 'value', policyData: 'value', outFieldId: 'value', outJunctionTableId: 'value', outSourceFieldId: 'value', outTargetFieldId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md b/skills/orm-public-remove-node-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md rename to skills/orm-public-remove-node-at-path/SKILL.md index 116c41c0a..6b3d3b6fc 100644 --- a/sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md +++ b/skills/orm-public-remove-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-removeNodeAtPath +--- +name: orm-public-remove-node-at-path +description: Execute the removeNodeAtPath mutation +--- + +# orm-public-remove-node-at-path diff --git a/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md b/skills/orm-public-reset-password/SKILL.md similarity index 72% rename from sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md rename to skills/orm-public-reset-password/SKILL.md index fe676ada5..16510ff32 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md +++ b/skills/orm-public-reset-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-resetPassword +--- +name: orm-public-reset-password +description: Execute the resetPassword mutation +--- + +# orm-public-reset-password diff --git a/sdk/constructive-react/src/public/orm/skills/revParse.md b/skills/orm-public-rev-parse/SKILL.md similarity index 78% rename from sdk/constructive-react/src/public/orm/skills/revParse.md rename to skills/orm-public-rev-parse/SKILL.md index 0a1830ff8..48267c322 100644 --- a/sdk/constructive-react/src/public/orm/skills/revParse.md +++ b/skills/orm-public-rev-parse/SKILL.md @@ -1,4 +1,9 @@ -# orm-revParse +--- +name: orm-public-rev-parse +description: Execute the revParse query +--- + +# orm-public-rev-parse diff --git a/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md b/skills/orm-public-rls-module/SKILL.md similarity index 92% rename from sdk/constructive-sdk/src/public/orm/skills/rlsModule.md rename to skills/orm-public-rls-module/SKILL.md index 2d97f0fe6..11e7186a2 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md +++ b/skills/orm-public-rls-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-rlsModule +--- +name: orm-public-rls-module +description: ORM operations for RlsModule records +--- + +# orm-public-rls-module diff --git a/sdk/constructive-react/src/auth/orm/skills/roleType.md b/skills/orm-public-role-type/SKILL.md similarity index 88% rename from sdk/constructive-react/src/auth/orm/skills/roleType.md rename to skills/orm-public-role-type/SKILL.md index 261296f03..9da17ff48 100644 --- a/sdk/constructive-react/src/auth/orm/skills/roleType.md +++ b/skills/orm-public-role-type/SKILL.md @@ -1,4 +1,9 @@ -# orm-roleType +--- +name: orm-public-role-type +description: ORM operations for RoleType records +--- + +# orm-public-role-type diff --git a/sdk/constructive-react/src/public/orm/skills/schemaGrant.md b/skills/orm-public-schema-grant/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/orm/skills/schemaGrant.md rename to skills/orm-public-schema-grant/SKILL.md index 296f97ae4..4e08d6d36 100644 --- a/sdk/constructive-react/src/public/orm/skills/schemaGrant.md +++ b/skills/orm-public-schema-grant/SKILL.md @@ -1,4 +1,9 @@ -# orm-schemaGrant +--- +name: orm-public-schema-grant +description: ORM operations for SchemaGrant records +--- + +# orm-public-schema-grant diff --git a/sdk/constructive-sdk/src/public/orm/skills/schema.md b/skills/orm-public-schema/SKILL.md similarity index 92% rename from sdk/constructive-sdk/src/public/orm/skills/schema.md rename to skills/orm-public-schema/SKILL.md index d02fb12ca..04e2486c2 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/schema.md +++ b/skills/orm-public-schema/SKILL.md @@ -1,4 +1,9 @@ -# orm-schema +--- +name: orm-public-schema +description: ORM operations for Schema records +--- + +# orm-public-schema diff --git a/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md b/skills/orm-public-secrets-module/SKILL.md similarity index 88% rename from sdk/constructive-sdk/src/public/orm/skills/secretsModule.md rename to skills/orm-public-secrets-module/SKILL.md index e2e1a03a7..9cd83fd70 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md +++ b/skills/orm-public-secrets-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-secretsModule +--- +name: orm-public-secrets-module +description: ORM operations for SecretsModule records +--- + +# orm-public-secrets-module diff --git a/skills/orm-public-secure-table-provision/SKILL.md b/skills/orm-public-secure-table-provision/SKILL.md new file mode 100644 index 000000000..6bc41204f --- /dev/null +++ b/skills/orm-public-secure-table-provision/SKILL.md @@ -0,0 +1,39 @@ +--- +name: orm-public-secure-table-provision +description: Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. +--- + +# orm-public-secure-table-provision + + + +Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + +## Usage + +```typescript +db.secureTableProvision.findMany({ select: { id: true } }).execute() +db.secureTableProvision.findOne({ id: '', select: { id: true } }).execute() +db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute() +db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.secureTableProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all secureTableProvision records + +```typescript +const items = await db.secureTableProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a secureTableProvision + +```typescript +const item = await db.secureTableProvision.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', nodeType: 'value', useRls: 'value', nodeData: 'value', grantRoles: 'value', grantPrivileges: 'value', policyType: 'value', policyPrivileges: 'value', policyRole: 'value', policyPermissive: 'value', policyName: 'value', policyData: 'value', outFields: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md b/skills/orm-public-send-account-deletion-email/SKILL.md similarity index 69% rename from sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md rename to skills/orm-public-send-account-deletion-email/SKILL.md index aaf0470b5..2cd11b55d 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md +++ b/skills/orm-public-send-account-deletion-email/SKILL.md @@ -1,4 +1,9 @@ -# orm-sendAccountDeletionEmail +--- +name: orm-public-send-account-deletion-email +description: Execute the sendAccountDeletionEmail mutation +--- + +# orm-public-send-account-deletion-email diff --git a/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md b/skills/orm-public-send-verification-email/SKILL.md similarity index 70% rename from sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md rename to skills/orm-public-send-verification-email/SKILL.md index 2f0cfea9a..b9522b74d 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md +++ b/skills/orm-public-send-verification-email/SKILL.md @@ -1,4 +1,9 @@ -# orm-sendVerificationEmail +--- +name: orm-public-send-verification-email +description: Execute the sendVerificationEmail mutation +--- + +# orm-public-send-verification-email diff --git a/sdk/constructive-react/src/public/orm/skills/sessionsModule.md b/skills/orm-public-sessions-module/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/orm/skills/sessionsModule.md rename to skills/orm-public-sessions-module/SKILL.md index df8c99266..3234daa59 100644 --- a/sdk/constructive-react/src/public/orm/skills/sessionsModule.md +++ b/skills/orm-public-sessions-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-sessionsModule +--- +name: orm-public-sessions-module +description: ORM operations for SessionsModule records +--- + +# orm-public-sessions-module diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md b/skills/orm-public-set-and-commit/SKILL.md similarity index 72% rename from sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md rename to skills/orm-public-set-and-commit/SKILL.md index a5fa6e0d9..9629874f3 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md +++ b/skills/orm-public-set-and-commit/SKILL.md @@ -1,4 +1,9 @@ -# orm-setAndCommit +--- +name: orm-public-set-and-commit +description: Execute the setAndCommit mutation +--- + +# orm-public-set-and-commit diff --git a/sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md b/skills/orm-public-set-data-at-path/SKILL.md similarity index 72% rename from sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md rename to skills/orm-public-set-data-at-path/SKILL.md index 7f09dab97..fa681513a 100644 --- a/sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md +++ b/skills/orm-public-set-data-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-setDataAtPath +--- +name: orm-public-set-data-at-path +description: Execute the setDataAtPath mutation +--- + +# orm-public-set-data-at-path diff --git a/sdk/constructive-react/src/public/orm/skills/setFieldOrder.md b/skills/orm-public-set-field-order/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/setFieldOrder.md rename to skills/orm-public-set-field-order/SKILL.md index 7a221b219..035bd9f98 100644 --- a/sdk/constructive-react/src/public/orm/skills/setFieldOrder.md +++ b/skills/orm-public-set-field-order/SKILL.md @@ -1,4 +1,9 @@ -# orm-setFieldOrder +--- +name: orm-public-set-field-order +description: Execute the setFieldOrder mutation +--- + +# orm-public-set-field-order diff --git a/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md b/skills/orm-public-set-password/SKILL.md similarity index 73% rename from sdk/constructive-sdk/src/auth/orm/skills/setPassword.md rename to skills/orm-public-set-password/SKILL.md index bbf15b68d..8a31b150e 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md +++ b/skills/orm-public-set-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-setPassword +--- +name: orm-public-set-password +description: Execute the setPassword mutation +--- + +# orm-public-set-password diff --git a/sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md b/skills/orm-public-set-props-and-commit/SKILL.md similarity index 71% rename from sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md rename to skills/orm-public-set-props-and-commit/SKILL.md index 7248c0e1c..241326a64 100644 --- a/sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md +++ b/skills/orm-public-set-props-and-commit/SKILL.md @@ -1,4 +1,9 @@ -# orm-setPropsAndCommit +--- +name: orm-public-set-props-and-commit +description: Execute the setPropsAndCommit mutation +--- + +# orm-public-set-props-and-commit diff --git a/sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md b/skills/orm-public-sign-in-one-time-token/SKILL.md similarity index 70% rename from sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md rename to skills/orm-public-sign-in-one-time-token/SKILL.md index 9a87fd088..a37af9f59 100644 --- a/sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md +++ b/skills/orm-public-sign-in-one-time-token/SKILL.md @@ -1,4 +1,9 @@ -# orm-signInOneTimeToken +--- +name: orm-public-sign-in-one-time-token +description: Execute the signInOneTimeToken mutation +--- + +# orm-public-sign-in-one-time-token diff --git a/sdk/constructive-react/src/auth/orm/skills/signIn.md b/skills/orm-public-sign-in/SKILL.md similarity index 74% rename from sdk/constructive-react/src/auth/orm/skills/signIn.md rename to skills/orm-public-sign-in/SKILL.md index d49334136..ef1338695 100644 --- a/sdk/constructive-react/src/auth/orm/skills/signIn.md +++ b/skills/orm-public-sign-in/SKILL.md @@ -1,4 +1,9 @@ -# orm-signIn +--- +name: orm-public-sign-in +description: Execute the signIn mutation +--- + +# orm-public-sign-in diff --git a/sdk/constructive-react/src/auth/orm/skills/signOut.md b/skills/orm-public-sign-out/SKILL.md similarity index 74% rename from sdk/constructive-react/src/auth/orm/skills/signOut.md rename to skills/orm-public-sign-out/SKILL.md index 7ada67374..c5f4e7bc1 100644 --- a/sdk/constructive-react/src/auth/orm/skills/signOut.md +++ b/skills/orm-public-sign-out/SKILL.md @@ -1,4 +1,9 @@ -# orm-signOut +--- +name: orm-public-sign-out +description: Execute the signOut mutation +--- + +# orm-public-sign-out diff --git a/sdk/constructive-sdk/src/public/orm/skills/signUp.md b/skills/orm-public-sign-up/SKILL.md similarity index 74% rename from sdk/constructive-sdk/src/public/orm/skills/signUp.md rename to skills/orm-public-sign-up/SKILL.md index 8c999d2b8..4344c93ba 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/signUp.md +++ b/skills/orm-public-sign-up/SKILL.md @@ -1,4 +1,9 @@ -# orm-signUp +--- +name: orm-public-sign-up +description: Execute the signUp mutation +--- + +# orm-public-sign-up diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md b/skills/orm-public-site-metadatum/SKILL.md similarity index 79% rename from sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md rename to skills/orm-public-site-metadatum/SKILL.md index b1aaf8017..4c0b0d1b4 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md +++ b/skills/orm-public-site-metadatum/SKILL.md @@ -1,8 +1,13 @@ -# orm-siteMetadatum +--- +name: orm-public-site-metadatum +description: SEO and social sharing metadata for a site: page title, description, and Open Graph image +--- + +# orm-public-site-metadatum -ORM operations for SiteMetadatum records +SEO and social sharing metadata for a site: page title, description, and Open Graph image ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteModule.md b/skills/orm-public-site-module/SKILL.md similarity index 74% rename from sdk/constructive-sdk/src/public/orm/skills/siteModule.md rename to skills/orm-public-site-module/SKILL.md index 94a650431..f5d75a169 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/siteModule.md +++ b/skills/orm-public-site-module/SKILL.md @@ -1,8 +1,13 @@ -# orm-siteModule +--- +name: orm-public-site-module +description: Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site +--- + +# orm-public-site-module -ORM operations for SiteModule records +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/siteTheme.md b/skills/orm-public-site-theme/SKILL.md similarity index 77% rename from sdk/constructive-react/src/public/orm/skills/siteTheme.md rename to skills/orm-public-site-theme/SKILL.md index 4b58181c8..5ee3be9ca 100644 --- a/sdk/constructive-react/src/public/orm/skills/siteTheme.md +++ b/skills/orm-public-site-theme/SKILL.md @@ -1,8 +1,13 @@ -# orm-siteTheme +--- +name: orm-public-site-theme +description: Theme configuration for a site; stores design tokens, colors, and typography as JSONB +--- + +# orm-public-site-theme -ORM operations for SiteTheme records +Theme configuration for a site; stores design tokens, colors, and typography as JSONB ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/site.md b/skills/orm-public-site/SKILL.md similarity index 80% rename from sdk/constructive-react/src/public/orm/skills/site.md rename to skills/orm-public-site/SKILL.md index 93aa35cdd..fb8ec210a 100644 --- a/sdk/constructive-react/src/public/orm/skills/site.md +++ b/skills/orm-public-site/SKILL.md @@ -1,8 +1,13 @@ -# orm-site +--- +name: orm-public-site +description: Top-level site configuration: branding assets, title, and description for a deployed application +--- + +# orm-public-site -ORM operations for Site records +Top-level site configuration: branding assets, title, and description for a deployed application ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md b/skills/orm-public-sql-migration/SKILL.md similarity index 90% rename from sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md rename to skills/orm-public-sql-migration/SKILL.md index f02f86fd5..892e1bfb0 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md +++ b/skills/orm-public-sql-migration/SKILL.md @@ -1,4 +1,9 @@ -# orm-sqlMigration +--- +name: orm-public-sql-migration +description: ORM operations for SqlMigration records +--- + +# orm-public-sql-migration diff --git a/sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md b/skills/orm-public-steps-achieved/SKILL.md similarity index 75% rename from sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md rename to skills/orm-public-steps-achieved/SKILL.md index bce806fd4..b57faa5e7 100644 --- a/sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md +++ b/skills/orm-public-steps-achieved/SKILL.md @@ -1,4 +1,9 @@ -# orm-stepsAchieved +--- +name: orm-public-steps-achieved +description: Execute the stepsAchieved query +--- + +# orm-public-steps-achieved diff --git a/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md b/skills/orm-public-steps-required/SKILL.md similarity index 76% rename from sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md rename to skills/orm-public-steps-required/SKILL.md index 8ea0ad638..1d8e29a7e 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md +++ b/skills/orm-public-steps-required/SKILL.md @@ -1,4 +1,9 @@ -# orm-stepsRequired +--- +name: orm-public-steps-required +description: Reads and enables pagination through a set of `AppLevelRequirement`. +--- + +# orm-public-steps-required diff --git a/sdk/constructive-react/src/public/orm/skills/store.md b/skills/orm-public-store/SKILL.md similarity index 86% rename from sdk/constructive-react/src/public/orm/skills/store.md rename to skills/orm-public-store/SKILL.md index 1a9bfc8a5..956d8288d 100644 --- a/sdk/constructive-react/src/public/orm/skills/store.md +++ b/skills/orm-public-store/SKILL.md @@ -1,4 +1,9 @@ -# orm-store +--- +name: orm-public-store +description: A store represents an isolated object repository within a database. +--- + +# orm-public-store diff --git a/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md b/skills/orm-public-submit-invite-code/SKILL.md similarity index 71% rename from sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md rename to skills/orm-public-submit-invite-code/SKILL.md index ae946fe75..68c1dd83d 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md +++ b/skills/orm-public-submit-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# orm-submitInviteCode +--- +name: orm-public-submit-invite-code +description: Execute the submitInviteCode mutation +--- + +# orm-public-submit-invite-code diff --git a/sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md b/skills/orm-public-submit-org-invite-code/SKILL.md similarity index 70% rename from sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md rename to skills/orm-public-submit-org-invite-code/SKILL.md index 0ceff0ee1..cd1e6d1a9 100644 --- a/sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md +++ b/skills/orm-public-submit-org-invite-code/SKILL.md @@ -1,4 +1,9 @@ -# orm-submitOrgInviteCode +--- +name: orm-public-submit-org-invite-code +description: Execute the submitOrgInviteCode mutation +--- + +# orm-public-submit-org-invite-code diff --git a/sdk/constructive-react/src/public/orm/skills/tableGrant.md b/skills/orm-public-table-grant/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/tableGrant.md rename to skills/orm-public-table-grant/SKILL.md index e31fcb8ff..876457168 100644 --- a/sdk/constructive-react/src/public/orm/skills/tableGrant.md +++ b/skills/orm-public-table-grant/SKILL.md @@ -1,4 +1,9 @@ -# orm-tableGrant +--- +name: orm-public-table-grant +description: ORM operations for TableGrant records +--- + +# orm-public-table-grant @@ -9,7 +14,7 @@ ORM operations for TableGrant records ```typescript db.tableGrant.findMany({ select: { id: true } }).execute() db.tableGrant.findOne({ id: '', select: { id: true } }).execute() -db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute() +db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute() db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.tableGrant.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.tableGrant.findMany({ ```typescript const item = await db.tableGrant.create({ - data: { databaseId: 'value', tableId: 'value', privilege: 'value', roleName: 'value', fieldIds: 'value' }, + data: { databaseId: 'value', tableId: 'value', privilege: 'value', granteeName: 'value', fieldIds: 'value', isGrant: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableModule.md b/skills/orm-public-table-module/SKILL.md similarity index 59% rename from sdk/constructive-sdk/src/public/orm/skills/tableModule.md rename to skills/orm-public-table-module/SKILL.md index 38fa64d39..06d87f19e 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/tableModule.md +++ b/skills/orm-public-table-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-tableModule +--- +name: orm-public-table-module +description: ORM operations for TableModule records +--- + +# orm-public-table-module @@ -9,7 +14,7 @@ ORM operations for TableModule records ```typescript db.tableModule.findMany({ select: { id: true } }).execute() db.tableModule.findOne({ id: '', select: { id: true } }).execute() -db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute() +db.tableModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }, select: { id: true } }).execute() db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.tableModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.tableModule.findMany({ ```typescript const item = await db.tableModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', nodeType: 'value', data: 'value', fields: 'value' }, + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', nodeType: 'value', useRls: 'value', data: 'value', fields: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md b/skills/orm-public-table-template-module/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md rename to skills/orm-public-table-template-module/SKILL.md index f829a0de9..501177e1a 100644 --- a/sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md +++ b/skills/orm-public-table-template-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-tableTemplateModule +--- +name: orm-public-table-template-module +description: ORM operations for TableTemplateModule records +--- + +# orm-public-table-template-module diff --git a/sdk/constructive-react/src/public/orm/skills/table.md b/skills/orm-public-table/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/orm/skills/table.md rename to skills/orm-public-table/SKILL.md index eae9607ea..b628cb022 100644 --- a/sdk/constructive-react/src/public/orm/skills/table.md +++ b/skills/orm-public-table/SKILL.md @@ -1,4 +1,9 @@ -# orm-table +--- +name: orm-public-table +description: ORM operations for Table records +--- + +# orm-public-table diff --git a/sdk/constructive-react/src/public/orm/skills/triggerFunction.md b/skills/orm-public-trigger-function/SKILL.md similarity index 88% rename from sdk/constructive-react/src/public/orm/skills/triggerFunction.md rename to skills/orm-public-trigger-function/SKILL.md index 739e3f267..3185e5319 100644 --- a/sdk/constructive-react/src/public/orm/skills/triggerFunction.md +++ b/skills/orm-public-trigger-function/SKILL.md @@ -1,4 +1,9 @@ -# orm-triggerFunction +--- +name: orm-public-trigger-function +description: ORM operations for TriggerFunction records +--- + +# orm-public-trigger-function diff --git a/sdk/constructive-react/src/public/orm/skills/trigger.md b/skills/orm-public-trigger/SKILL.md similarity index 91% rename from sdk/constructive-react/src/public/orm/skills/trigger.md rename to skills/orm-public-trigger/SKILL.md index ef4d73ecc..4c83b1475 100644 --- a/sdk/constructive-react/src/public/orm/skills/trigger.md +++ b/skills/orm-public-trigger/SKILL.md @@ -1,4 +1,9 @@ -# orm-trigger +--- +name: orm-public-trigger +description: ORM operations for Trigger records +--- + +# orm-public-trigger diff --git a/sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md b/skills/orm-public-unique-constraint/SKILL.md similarity index 90% rename from sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md rename to skills/orm-public-unique-constraint/SKILL.md index 8724c6983..07213d926 100644 --- a/sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md +++ b/skills/orm-public-unique-constraint/SKILL.md @@ -1,4 +1,9 @@ -# orm-uniqueConstraint +--- +name: orm-public-unique-constraint +description: ORM operations for UniqueConstraint records +--- + +# orm-public-unique-constraint diff --git a/sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md b/skills/orm-public-update-node-at-path/SKILL.md similarity index 71% rename from sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md rename to skills/orm-public-update-node-at-path/SKILL.md index d1a7bbf95..8c14570aa 100644 --- a/sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md +++ b/skills/orm-public-update-node-at-path/SKILL.md @@ -1,4 +1,9 @@ -# orm-updateNodeAtPath +--- +name: orm-public-update-node-at-path +description: Execute the updateNodeAtPath mutation +--- + +# orm-public-update-node-at-path diff --git a/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md b/skills/orm-public-user-auth-module/SKILL.md similarity index 94% rename from sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md rename to skills/orm-public-user-auth-module/SKILL.md index 4b022d732..e8b890d79 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md +++ b/skills/orm-public-user-auth-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-userAuthModule +--- +name: orm-public-user-auth-module +description: ORM operations for UserAuthModule records +--- + +# orm-public-user-auth-module diff --git a/sdk/constructive-sdk/src/auth/orm/skills/user.md b/skills/orm-public-user/SKILL.md similarity index 91% rename from sdk/constructive-sdk/src/auth/orm/skills/user.md rename to skills/orm-public-user/SKILL.md index e80b99583..04a5c97a9 100644 --- a/sdk/constructive-sdk/src/auth/orm/skills/user.md +++ b/skills/orm-public-user/SKILL.md @@ -1,4 +1,9 @@ -# orm-user +--- +name: orm-public-user +description: ORM operations for User records +--- + +# orm-public-user diff --git a/sdk/constructive-sdk/src/public/orm/skills/usersModule.md b/skills/orm-public-users-module/SKILL.md similarity index 90% rename from sdk/constructive-sdk/src/public/orm/skills/usersModule.md rename to skills/orm-public-users-module/SKILL.md index 320d49201..0b35c5052 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/usersModule.md +++ b/skills/orm-public-users-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-usersModule +--- +name: orm-public-users-module +description: ORM operations for UsersModule records +--- + +# orm-public-users-module diff --git a/sdk/constructive-react/src/public/orm/skills/uuidModule.md b/skills/orm-public-uuid-module/SKILL.md similarity index 89% rename from sdk/constructive-react/src/public/orm/skills/uuidModule.md rename to skills/orm-public-uuid-module/SKILL.md index 3f2a19a32..33c8937b6 100644 --- a/sdk/constructive-react/src/public/orm/skills/uuidModule.md +++ b/skills/orm-public-uuid-module/SKILL.md @@ -1,4 +1,9 @@ -# orm-uuidModule +--- +name: orm-public-uuid-module +description: ORM operations for UuidModule records +--- + +# orm-public-uuid-module diff --git a/sdk/constructive-react/src/public/orm/skills/verifyEmail.md b/skills/orm-public-verify-email/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/verifyEmail.md rename to skills/orm-public-verify-email/SKILL.md index c9a3f4ac1..2e3188524 100644 --- a/sdk/constructive-react/src/public/orm/skills/verifyEmail.md +++ b/skills/orm-public-verify-email/SKILL.md @@ -1,4 +1,9 @@ -# orm-verifyEmail +--- +name: orm-public-verify-email +description: Execute the verifyEmail mutation +--- + +# orm-public-verify-email diff --git a/sdk/constructive-react/src/public/orm/skills/verifyPassword.md b/skills/orm-public-verify-password/SKILL.md similarity index 72% rename from sdk/constructive-react/src/public/orm/skills/verifyPassword.md rename to skills/orm-public-verify-password/SKILL.md index 10b75c518..efe824261 100644 --- a/sdk/constructive-react/src/public/orm/skills/verifyPassword.md +++ b/skills/orm-public-verify-password/SKILL.md @@ -1,4 +1,9 @@ -# orm-verifyPassword +--- +name: orm-public-verify-password +description: Execute the verifyPassword mutation +--- + +# orm-public-verify-password diff --git a/sdk/constructive-react/src/public/orm/skills/verifyTotp.md b/skills/orm-public-verify-totp/SKILL.md similarity index 73% rename from sdk/constructive-react/src/public/orm/skills/verifyTotp.md rename to skills/orm-public-verify-totp/SKILL.md index 5541069f3..88be3870a 100644 --- a/sdk/constructive-react/src/public/orm/skills/verifyTotp.md +++ b/skills/orm-public-verify-totp/SKILL.md @@ -1,4 +1,9 @@ -# orm-verifyTotp +--- +name: orm-public-verify-totp +description: Execute the verifyTotp mutation +--- + +# orm-public-verify-totp diff --git a/sdk/constructive-react/src/public/orm/skills/viewGrant.md b/skills/orm-public-view-grant/SKILL.md similarity index 66% rename from sdk/constructive-react/src/public/orm/skills/viewGrant.md rename to skills/orm-public-view-grant/SKILL.md index 062399792..f1dc49299 100644 --- a/sdk/constructive-react/src/public/orm/skills/viewGrant.md +++ b/skills/orm-public-view-grant/SKILL.md @@ -1,4 +1,9 @@ -# orm-viewGrant +--- +name: orm-public-view-grant +description: ORM operations for ViewGrant records +--- + +# orm-public-view-grant @@ -9,7 +14,7 @@ ORM operations for ViewGrant records ```typescript db.viewGrant.findMany({ select: { id: true } }).execute() db.viewGrant.findOne({ id: '', select: { id: true } }).execute() -db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute() +db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute() db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.viewGrant.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +33,7 @@ const items = await db.viewGrant.findMany({ ```typescript const item = await db.viewGrant.create({ - data: { databaseId: 'value', viewId: 'value', roleName: 'value', privilege: 'value', withGrantOption: 'value' }, + data: { databaseId: 'value', viewId: 'value', granteeName: 'value', privilege: 'value', withGrantOption: 'value', isGrant: 'value' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md b/skills/orm-public-view-rule/SKILL.md similarity index 88% rename from sdk/constructive-sdk/src/public/orm/skills/viewRule.md rename to skills/orm-public-view-rule/SKILL.md index e6bd8f1ab..30031fedc 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md +++ b/skills/orm-public-view-rule/SKILL.md @@ -1,4 +1,9 @@ -# orm-viewRule +--- +name: orm-public-view-rule +description: DO INSTEAD rules for views (e.g., read-only enforcement) +--- + +# orm-public-view-rule diff --git a/sdk/constructive-react/src/public/orm/skills/viewTable.md b/skills/orm-public-view-table/SKILL.md similarity index 86% rename from sdk/constructive-react/src/public/orm/skills/viewTable.md rename to skills/orm-public-view-table/SKILL.md index d3adc9f0e..b1de12bee 100644 --- a/sdk/constructive-react/src/public/orm/skills/viewTable.md +++ b/skills/orm-public-view-table/SKILL.md @@ -1,4 +1,9 @@ -# orm-viewTable +--- +name: orm-public-view-table +description: Junction table linking views to their joined tables for referential integrity +--- + +# orm-public-view-table diff --git a/sdk/constructive-react/src/public/orm/skills/view.md b/skills/orm-public-view/SKILL.md similarity index 93% rename from sdk/constructive-react/src/public/orm/skills/view.md rename to skills/orm-public-view/SKILL.md index c2db2a347..ac88ff543 100644 --- a/sdk/constructive-react/src/public/orm/skills/view.md +++ b/skills/orm-public-view/SKILL.md @@ -1,4 +1,9 @@ -# orm-view +--- +name: orm-public-view +description: ORM operations for View records +--- + +# orm-public-view From 71544df34e7528124a45a9fc62b3a8ae55519fd8 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Wed, 4 Mar 2026 12:07:38 +0000 Subject: [PATCH 2/2] feat: consolidate skills into single-per-API with references/ subdirectories - Update ORM, hooks, and CLI skill generators to emit one skill per API (e.g. orm-public, hooks-admin) with entity docs in references/ - Add buildSkillReference() helper for reference file generation - Update buildSkillFile() to accept referenceNames and generate References section - Delete 486 old per-entity skill directories - Regenerate SDK and React SDK with new consolidated structure - Update test assertions and snapshots for new structure --- .../__snapshots__/cli-generator.test.ts.snap | 478 ++++++++++++------ .../__tests__/codegen/cli-generator.test.ts | 7 +- .../src/core/codegen/cli/docs-generator.ts | 215 +++++--- .../codegen/src/core/codegen/docs-utils.ts | 58 ++- .../src/core/codegen/hooks-docs-generator.ts | 60 ++- .../src/core/codegen/orm/docs-generator.ts | 60 ++- skills/hooks-admin/SKILL.md | 84 +++ .../references/app-achievement.md} | 7 +- .../references/app-admin-grant.md} | 7 +- .../references/app-grant.md} | 7 +- .../references/app-level-requirement.md} | 7 +- .../references/app-level.md} | 7 +- .../references/app-limit-default.md} | 7 +- .../references/app-limit.md} | 7 +- .../references/app-membership-default.md} | 7 +- .../references/app-membership.md} | 7 +- .../references/app-owner-grant.md} | 7 +- .../references/app-permission-default.md} | 7 +- .../references/app-permission.md} | 7 +- .../app-permissions-get-by-mask.md} | 7 +- .../app-permissions-get-mask-by-names.md} | 7 +- .../references/app-permissions-get-mask.md} | 7 +- .../app-permissions-get-padded-mask.md} | 7 +- .../references/app-step.md} | 7 +- .../references/claimed-invite.md} | 7 +- .../references/invite.md} | 7 +- .../references/membership-type.md} | 7 +- .../references/org-admin-grant.md} | 7 +- .../references/org-chart-edge-grant.md} | 7 +- .../references/org-chart-edge.md} | 7 +- .../references/org-claimed-invite.md} | 7 +- .../references/org-get-managers-record.md} | 7 +- .../org-get-subordinates-record.md} | 7 +- .../references/org-grant.md} | 7 +- .../references/org-invite.md} | 7 +- .../references/org-is-manager-of.md} | 7 +- .../references/org-limit-default.md} | 7 +- .../references/org-limit.md} | 7 +- .../references/org-member.md} | 7 +- .../references/org-membership-default.md} | 7 +- .../references/org-membership.md} | 7 +- .../references/org-owner-grant.md} | 7 +- .../references/org-permission-default.md} | 7 +- .../references/org-permission.md} | 7 +- .../org-permissions-get-by-mask.md} | 7 +- .../org-permissions-get-mask-by-names.md} | 7 +- .../references/org-permissions-get-mask.md} | 7 +- .../org-permissions-get-padded-mask.md} | 7 +- .../references/steps-achieved.md} | 7 +- .../references/steps-required.md} | 7 +- .../references/submit-invite-code.md} | 7 +- .../references/submit-org-invite-code.md} | 7 +- skills/hooks-auth/SKILL.md | 66 +++ .../references/audit-log.md} | 7 +- .../references/check-password.md} | 7 +- .../references/confirm-delete-account.md} | 7 +- .../references/connected-account.md} | 7 +- .../references/crypto-address.md} | 7 +- .../references/current-ip-address.md} | 7 +- .../references/current-user-agent.md} | 7 +- .../references/current-user-id.md} | 7 +- .../references/current-user.md} | 7 +- .../references/email.md} | 7 +- .../references/extend-token-expires.md} | 7 +- .../references/forgot-password.md} | 7 +- .../references/one-time-token.md} | 7 +- .../references/phone-number.md} | 7 +- .../references/reset-password.md} | 7 +- .../references/role-type.md} | 7 +- .../send-account-deletion-email.md} | 7 +- .../references/send-verification-email.md} | 7 +- .../references/set-password.md} | 7 +- .../references/sign-in-one-time-token.md} | 7 +- .../references/sign-in.md} | 7 +- .../references/sign-out.md} | 7 +- .../references/sign-up.md} | 7 +- .../references/user.md} | 7 +- .../references/verify-email.md} | 7 +- .../references/verify-password.md} | 7 +- .../references/verify-totp.md} | 7 +- skills/hooks-objects/SKILL.md | 56 ++ .../references/commit.md} | 7 +- .../references/freeze-objects.md} | 7 +- .../references/get-all-objects-from-root.md} | 7 +- .../references/get-all-record.md} | 7 +- .../references/get-object-at-path.md} | 7 +- .../references/get-path-objects-from-root.md} | 7 +- .../references/init-empty-repo.md} | 7 +- .../references/insert-node-at-path.md} | 7 +- .../references/object.md} | 7 +- .../references/ref.md} | 7 +- .../references/remove-node-at-path.md} | 7 +- .../references/rev-parse.md} | 7 +- .../references/set-and-commit.md} | 7 +- .../references/set-data-at-path.md} | 7 +- .../references/set-props-and-commit.md} | 7 +- .../references/store.md} | 7 +- .../references/update-node-at-path.md} | 7 +- skills/hooks-public/SKILL.md | 193 +++++++ .../references/api-module.md} | 7 +- .../references/api-schema.md} | 7 +- .../references/api.md} | 7 +- .../references/app-achievement.md} | 7 +- .../references/app-admin-grant.md} | 7 +- .../references/app-grant.md} | 7 +- .../references/app-level-requirement.md} | 7 +- .../references/app-level.md} | 7 +- .../references/app-limit-default.md} | 7 +- .../references/app-limit.md} | 7 +- .../references/app-membership-default.md} | 7 +- .../references/app-membership.md} | 7 +- .../references/app-owner-grant.md} | 7 +- .../references/app-permission-default.md} | 7 +- .../references/app-permission.md} | 7 +- .../app-permissions-get-by-mask.md} | 7 +- .../app-permissions-get-mask-by-names.md} | 7 +- .../references/app-permissions-get-mask.md} | 7 +- .../app-permissions-get-padded-mask.md} | 7 +- .../references/app-step.md} | 7 +- .../references/app.md} | 7 +- .../references/apply-rls.md} | 7 +- .../references/ast-migration.md} | 7 +- .../references/audit-log.md} | 7 +- .../references/bootstrap-user.md} | 7 +- .../references/check-constraint.md} | 7 +- .../references/check-password.md} | 7 +- .../references/claimed-invite.md} | 7 +- .../references/commit.md} | 7 +- .../references/confirm-delete-account.md} | 7 +- .../references/connected-account.md} | 7 +- .../references/connected-accounts-module.md} | 7 +- .../references/create-user-database.md} | 23 +- .../references/crypto-address.md} | 7 +- .../references/crypto-addresses-module.md} | 7 +- .../references/crypto-auth-module.md} | 7 +- .../references/current-ip-address.md} | 7 +- .../references/current-user-agent.md} | 7 +- .../references/current-user-id.md} | 7 +- .../references/current-user.md} | 7 +- .../references/database-provision-module.md} | 7 +- .../references/database.md} | 7 +- .../references/default-ids-module.md} | 7 +- .../references/default-privilege.md} | 7 +- .../references/denormalized-table-field.md} | 7 +- .../references/domain.md} | 7 +- .../references/email.md} | 7 +- .../references/emails-module.md} | 7 +- .../references/encrypted-secrets-module.md} | 7 +- .../references/extend-token-expires.md} | 7 +- .../references/field-module.md} | 7 +- .../references/field.md} | 7 +- .../references/foreign-key-constraint.md} | 7 +- .../references/forgot-password.md} | 7 +- .../references/freeze-objects.md} | 7 +- .../references/full-text-search.md} | 7 +- .../references/get-all-objects-from-root.md} | 7 +- .../references/get-all-record.md} | 7 +- .../references/get-object-at-path.md} | 7 +- .../references/get-path-objects-from-root.md} | 7 +- .../references/hierarchy-module.md} | 7 +- .../references/index.md} | 7 +- .../references/init-empty-repo.md} | 7 +- .../references/insert-node-at-path.md} | 7 +- .../references/invite.md} | 7 +- .../references/invites-module.md} | 7 +- .../references/levels-module.md} | 7 +- .../references/limits-module.md} | 7 +- .../references/membership-type.md} | 7 +- .../references/membership-types-module.md} | 7 +- .../references/memberships-module.md} | 7 +- .../references/node-type-registry.md} | 7 +- .../references/object.md} | 7 +- .../references/one-time-token.md} | 7 +- .../references/org-admin-grant.md} | 7 +- .../references/org-chart-edge-grant.md} | 7 +- .../references/org-chart-edge.md} | 7 +- .../references/org-claimed-invite.md} | 7 +- .../references/org-get-managers-record.md} | 7 +- .../org-get-subordinates-record.md} | 7 +- .../references/org-grant.md} | 7 +- .../references/org-invite.md} | 7 +- .../references/org-is-manager-of.md} | 7 +- .../references/org-limit-default.md} | 7 +- .../references/org-limit.md} | 7 +- .../references/org-member.md} | 7 +- .../references/org-membership-default.md} | 7 +- .../references/org-membership.md} | 7 +- .../references/org-owner-grant.md} | 7 +- .../references/org-permission-default.md} | 7 +- .../references/org-permission.md} | 7 +- .../org-permissions-get-by-mask.md} | 7 +- .../org-permissions-get-mask-by-names.md} | 7 +- .../references/org-permissions-get-mask.md} | 7 +- .../org-permissions-get-padded-mask.md} | 7 +- .../references/permissions-module.md} | 7 +- .../references/phone-number.md} | 7 +- .../references/phone-numbers-module.md} | 7 +- .../references/policy.md} | 7 +- .../references/primary-key-constraint.md} | 7 +- .../references/profiles-module.md} | 7 +- .../provision-database-with-user.md} | 7 +- .../references/ref.md} | 7 +- .../references/relation-provision.md} | 14 +- .../references/remove-node-at-path.md} | 7 +- .../references/reset-password.md} | 7 +- .../references/rev-parse.md} | 7 +- .../references/rls-module.md} | 7 +- .../references/role-type.md} | 7 +- .../references/schema-grant.md} | 7 +- .../references/schema.md} | 7 +- .../references/secrets-module.md} | 7 +- .../references/secure-table-provision.md} | 7 +- .../send-account-deletion-email.md} | 7 +- .../references/send-verification-email.md} | 7 +- .../references/sessions-module.md} | 7 +- .../references/set-and-commit.md} | 7 +- .../references/set-data-at-path.md} | 7 +- .../references/set-field-order.md} | 7 +- .../references/set-password.md} | 7 +- .../references/set-props-and-commit.md} | 7 +- .../references/sign-in-one-time-token.md} | 7 +- .../references/sign-in.md} | 7 +- .../references/sign-out.md} | 7 +- .../references/sign-up.md} | 7 +- .../references/site-metadatum.md} | 7 +- .../references/site-module.md} | 7 +- .../references/site-theme.md} | 7 +- .../references/site.md} | 7 +- .../references/sql-migration.md} | 7 +- .../references/steps-achieved.md} | 7 +- .../references/steps-required.md} | 7 +- .../references/store.md} | 7 +- .../references/submit-invite-code.md} | 7 +- .../references/submit-org-invite-code.md} | 7 +- .../references/table-grant.md} | 7 +- .../references/table-module.md} | 7 +- .../references/table-template-module.md} | 7 +- .../references/table.md} | 7 +- .../references/trigger-function.md} | 7 +- .../references/trigger.md} | 7 +- .../references/unique-constraint.md} | 7 +- .../references/update-node-at-path.md} | 7 +- .../references/user-auth-module.md} | 7 +- .../references/user.md} | 7 +- .../references/users-module.md} | 7 +- .../references/uuid-module.md} | 7 +- .../references/verify-email.md} | 7 +- .../references/verify-password.md} | 7 +- .../references/verify-totp.md} | 7 +- .../references/view-grant.md} | 7 +- .../references/view-rule.md} | 7 +- .../references/view-table.md} | 7 +- .../references/view.md} | 7 +- skills/orm-admin/SKILL.md | 84 +++ .../references/app-achievement.md} | 7 +- .../references/app-admin-grant.md} | 7 +- .../references/app-grant.md} | 7 +- .../references/app-level-requirement.md} | 7 +- .../references/app-level.md} | 7 +- .../references/app-limit-default.md} | 7 +- .../references/app-limit.md} | 7 +- .../references/app-membership-default.md} | 7 +- .../references/app-membership.md} | 7 +- .../references/app-owner-grant.md} | 7 +- .../references/app-permission-default.md} | 7 +- .../references/app-permission.md} | 7 +- .../app-permissions-get-by-mask.md} | 7 +- .../app-permissions-get-mask-by-names.md} | 7 +- .../references/app-permissions-get-mask.md} | 7 +- .../app-permissions-get-padded-mask.md} | 7 +- .../references/app-step.md} | 7 +- .../references/claimed-invite.md} | 7 +- .../references/invite.md} | 7 +- .../references/membership-type.md} | 7 +- .../references/org-admin-grant.md} | 7 +- .../references/org-chart-edge-grant.md} | 7 +- .../references/org-chart-edge.md} | 7 +- .../references/org-claimed-invite.md} | 7 +- .../references/org-get-managers-record.md} | 7 +- .../org-get-subordinates-record.md} | 7 +- .../references/org-grant.md} | 7 +- .../references/org-invite.md} | 7 +- .../references/org-is-manager-of.md} | 7 +- .../references/org-limit-default.md} | 7 +- .../references/org-limit.md} | 7 +- .../references/org-member.md} | 7 +- .../references/org-membership-default.md} | 7 +- .../references/org-membership.md} | 7 +- .../references/org-owner-grant.md} | 7 +- .../references/org-permission-default.md} | 7 +- .../references/org-permission.md} | 7 +- .../org-permissions-get-by-mask.md} | 7 +- .../org-permissions-get-mask-by-names.md} | 7 +- .../references/org-permissions-get-mask.md} | 7 +- .../org-permissions-get-padded-mask.md} | 7 +- .../references/steps-achieved.md} | 7 +- .../references/steps-required.md} | 7 +- .../references/submit-invite-code.md} | 7 +- .../references/submit-org-invite-code.md} | 7 +- skills/orm-auth/SKILL.md | 66 +++ .../references/audit-log.md} | 7 +- .../references/check-password.md} | 7 +- .../references/confirm-delete-account.md} | 7 +- .../references/connected-account.md} | 7 +- .../references/crypto-address.md} | 7 +- .../references/current-ip-address.md} | 7 +- .../references/current-user-agent.md} | 7 +- .../references/current-user-id.md} | 7 +- .../references/current-user.md} | 7 +- .../SKILL.md => orm-auth/references/email.md} | 7 +- .../references/extend-token-expires.md} | 7 +- .../references/forgot-password.md} | 7 +- .../references/one-time-token.md} | 7 +- .../references/phone-number.md} | 7 +- .../references/reset-password.md} | 7 +- .../references/role-type.md} | 7 +- .../send-account-deletion-email.md} | 7 +- .../references/send-verification-email.md} | 7 +- .../references/set-password.md} | 7 +- .../references/sign-in-one-time-token.md} | 7 +- .../references/sign-in.md} | 7 +- .../references/sign-out.md} | 7 +- .../references/sign-up.md} | 7 +- .../SKILL.md => orm-auth/references/user.md} | 7 +- .../references/verify-email.md} | 7 +- .../references/verify-password.md} | 7 +- .../references/verify-totp.md} | 7 +- skills/orm-objects/SKILL.md | 56 ++ .../references/commit.md} | 7 +- .../references/freeze-objects.md} | 7 +- .../references/get-all-objects-from-root.md} | 7 +- .../references/get-all-record.md} | 7 +- .../references/get-object-at-path.md} | 7 +- .../references/get-path-objects-from-root.md} | 7 +- .../references/init-empty-repo.md} | 7 +- .../references/insert-node-at-path.md} | 7 +- .../references/object.md} | 7 +- .../references/ref.md} | 7 +- .../references/remove-node-at-path.md} | 7 +- .../references/rev-parse.md} | 7 +- .../references/set-and-commit.md} | 7 +- .../references/set-data-at-path.md} | 7 +- .../references/set-props-and-commit.md} | 7 +- .../references/store.md} | 7 +- .../references/update-node-at-path.md} | 7 +- skills/orm-public/SKILL.md | 193 +++++++ .../references/api-module.md} | 7 +- .../references/api-schema.md} | 7 +- .../SKILL.md => orm-public/references/api.md} | 7 +- .../references/app-achievement.md} | 7 +- .../references/app-admin-grant.md} | 7 +- .../references/app-grant.md} | 7 +- .../references/app-level-requirement.md} | 7 +- .../references/app-level.md} | 7 +- .../references/app-limit-default.md} | 7 +- .../references/app-limit.md} | 7 +- .../references/app-membership-default.md} | 7 +- .../references/app-membership.md} | 7 +- .../references/app-owner-grant.md} | 7 +- .../references/app-permission-default.md} | 7 +- .../references/app-permission.md} | 7 +- .../app-permissions-get-by-mask.md} | 7 +- .../app-permissions-get-mask-by-names.md} | 7 +- .../references/app-permissions-get-mask.md} | 7 +- .../app-permissions-get-padded-mask.md} | 7 +- .../references/app-step.md} | 7 +- .../SKILL.md => orm-public/references/app.md} | 7 +- .../references/apply-rls.md} | 7 +- .../references/ast-migration.md} | 7 +- .../references/audit-log.md} | 7 +- .../references/bootstrap-user.md} | 7 +- .../references/check-constraint.md} | 7 +- .../references/check-password.md} | 7 +- .../references/claimed-invite.md} | 7 +- .../references/commit.md} | 7 +- .../references/confirm-delete-account.md} | 7 +- .../references/connected-account.md} | 7 +- .../references/connected-accounts-module.md} | 7 +- .../references/create-user-database.md} | 23 +- .../references/crypto-address.md} | 7 +- .../references/crypto-addresses-module.md} | 7 +- .../references/crypto-auth-module.md} | 7 +- .../references/current-ip-address.md} | 7 +- .../references/current-user-agent.md} | 7 +- .../references/current-user-id.md} | 7 +- .../references/current-user.md} | 7 +- .../references/database-provision-module.md} | 7 +- .../references/database.md} | 7 +- .../references/default-ids-module.md} | 7 +- .../references/default-privilege.md} | 7 +- .../references/denormalized-table-field.md} | 7 +- .../references/domain.md} | 7 +- .../references/email.md} | 7 +- .../references/emails-module.md} | 7 +- .../references/encrypted-secrets-module.md} | 7 +- .../references/extend-token-expires.md} | 7 +- .../references/field-module.md} | 7 +- .../references/field.md} | 7 +- .../references/foreign-key-constraint.md} | 7 +- .../references/forgot-password.md} | 7 +- .../references/freeze-objects.md} | 7 +- .../references/full-text-search.md} | 7 +- .../references/get-all-objects-from-root.md} | 7 +- .../references/get-all-record.md} | 7 +- .../references/get-object-at-path.md} | 7 +- .../references/get-path-objects-from-root.md} | 7 +- .../references/hierarchy-module.md} | 7 +- .../references/index.md} | 7 +- .../references/init-empty-repo.md} | 7 +- .../references/insert-node-at-path.md} | 7 +- .../references/invite.md} | 7 +- .../references/invites-module.md} | 7 +- .../references/levels-module.md} | 7 +- .../references/limits-module.md} | 7 +- .../references/membership-type.md} | 7 +- .../references/membership-types-module.md} | 7 +- .../references/memberships-module.md} | 7 +- .../references/node-type-registry.md} | 7 +- .../references/object.md} | 7 +- .../references/one-time-token.md} | 7 +- .../references/org-admin-grant.md} | 7 +- .../references/org-chart-edge-grant.md} | 7 +- .../references/org-chart-edge.md} | 7 +- .../references/org-claimed-invite.md} | 7 +- .../references/org-get-managers-record.md} | 7 +- .../org-get-subordinates-record.md} | 7 +- .../references/org-grant.md} | 7 +- .../references/org-invite.md} | 7 +- .../references/org-is-manager-of.md} | 7 +- .../references/org-limit-default.md} | 7 +- .../references/org-limit.md} | 7 +- .../references/org-member.md} | 7 +- .../references/org-membership-default.md} | 7 +- .../references/org-membership.md} | 7 +- .../references/org-owner-grant.md} | 7 +- .../references/org-permission-default.md} | 7 +- .../references/org-permission.md} | 7 +- .../org-permissions-get-by-mask.md} | 7 +- .../org-permissions-get-mask-by-names.md} | 7 +- .../references/org-permissions-get-mask.md} | 7 +- .../org-permissions-get-padded-mask.md} | 7 +- .../references/permissions-module.md} | 7 +- .../references/phone-number.md} | 7 +- .../references/phone-numbers-module.md} | 7 +- .../references/policy.md} | 7 +- .../references/primary-key-constraint.md} | 7 +- .../references/profiles-module.md} | 7 +- .../provision-database-with-user.md} | 7 +- .../SKILL.md => orm-public/references/ref.md} | 7 +- .../references/relation-provision.md} | 14 +- .../references/remove-node-at-path.md} | 7 +- .../references/reset-password.md} | 7 +- .../references/rev-parse.md} | 7 +- .../references/rls-module.md} | 7 +- .../references/role-type.md} | 7 +- .../references/schema-grant.md} | 7 +- .../references/schema.md} | 7 +- .../references/secrets-module.md} | 7 +- .../references/secure-table-provision.md} | 7 +- .../send-account-deletion-email.md} | 7 +- .../references/send-verification-email.md} | 7 +- .../references/sessions-module.md} | 7 +- .../references/set-and-commit.md} | 7 +- .../references/set-data-at-path.md} | 7 +- .../references/set-field-order.md} | 7 +- .../references/set-password.md} | 7 +- .../references/set-props-and-commit.md} | 7 +- .../references/sign-in-one-time-token.md} | 7 +- .../references/sign-in.md} | 7 +- .../references/sign-out.md} | 7 +- .../references/sign-up.md} | 7 +- .../references/site-metadatum.md} | 7 +- .../references/site-module.md} | 7 +- .../references/site-theme.md} | 7 +- .../references/site.md} | 7 +- .../references/sql-migration.md} | 7 +- .../references/steps-achieved.md} | 7 +- .../references/steps-required.md} | 7 +- .../references/store.md} | 7 +- .../references/submit-invite-code.md} | 7 +- .../references/submit-org-invite-code.md} | 7 +- .../references/table-grant.md} | 7 +- .../references/table-module.md} | 7 +- .../references/table-template-module.md} | 7 +- .../references/table.md} | 7 +- .../references/trigger-function.md} | 7 +- .../references/trigger.md} | 7 +- .../references/unique-constraint.md} | 7 +- .../references/update-node-at-path.md} | 7 +- .../references/user-auth-module.md} | 7 +- .../references/user.md} | 7 +- .../references/users-module.md} | 7 +- .../references/uuid-module.md} | 7 +- .../references/verify-email.md} | 7 +- .../references/verify-password.md} | 7 +- .../references/verify-totp.md} | 7 +- .../references/view-grant.md} | 7 +- .../references/view-rule.md} | 7 +- .../references/view-table.md} | 7 +- .../references/view.md} | 7 +- 500 files changed, 1909 insertions(+), 3215 deletions(-) create mode 100644 skills/hooks-admin/SKILL.md rename skills/{hooks-admin-app-achievement/SKILL.md => hooks-admin/references/app-achievement.md} (83%) rename skills/{hooks-admin-app-admin-grant/SKILL.md => hooks-admin/references/app-admin-grant.md} (88%) rename skills/{hooks-admin-app-grant/SKILL.md => hooks-admin/references/app-grant.md} (88%) rename skills/{hooks-admin-app-level-requirement/SKILL.md => hooks-admin/references/app-level-requirement.md} (88%) rename skills/{hooks-admin-app-level/SKILL.md => hooks-admin/references/app-level.md} (88%) rename skills/{hooks-admin-app-limit-default/SKILL.md => hooks-admin/references/app-limit-default.md} (83%) rename skills/{hooks-admin-app-limit/SKILL.md => hooks-admin/references/app-limit.md} (87%) rename skills/{hooks-admin-app-membership-default/SKILL.md => hooks-admin/references/app-membership-default.md} (86%) rename skills/{hooks-admin-app-membership/SKILL.md => hooks-admin/references/app-membership.md} (90%) rename skills/{hooks-admin-app-owner-grant/SKILL.md => hooks-admin/references/app-owner-grant.md} (88%) rename skills/{hooks-admin-app-permission-default/SKILL.md => hooks-admin/references/app-permission-default.md} (84%) rename skills/{hooks-admin-app-permission/SKILL.md => hooks-admin/references/app-permission.md} (85%) rename skills/{hooks-admin-app-permissions-get-by-mask/SKILL.md => hooks-admin/references/app-permissions-get-by-mask.md} (73%) rename skills/{hooks-admin-app-permissions-get-mask-by-names/SKILL.md => hooks-admin/references/app-permissions-get-mask-by-names.md} (67%) rename skills/{hooks-admin-app-permissions-get-mask/SKILL.md => hooks-admin/references/app-permissions-get-mask.md} (68%) rename skills/{hooks-admin-app-permissions-get-padded-mask/SKILL.md => hooks-admin/references/app-permissions-get-padded-mask.md} (67%) rename skills/{hooks-admin-app-step/SKILL.md => hooks-admin/references/app-step.md} (85%) rename skills/{hooks-admin-claimed-invite/SKILL.md => hooks-admin/references/claimed-invite.md} (87%) rename skills/{hooks-admin-invite/SKILL.md => hooks-admin/references/invite.md} (89%) rename skills/{hooks-admin-membership-type/SKILL.md => hooks-admin/references/membership-type.md} (84%) rename skills/{hooks-admin-org-admin-grant/SKILL.md => hooks-admin/references/org-admin-grant.md} (88%) rename skills/{hooks-admin-org-chart-edge-grant/SKILL.md => hooks-admin/references/org-chart-edge-grant.md} (87%) rename skills/{hooks-admin-org-chart-edge/SKILL.md => hooks-admin/references/org-chart-edge.md} (87%) rename skills/{hooks-admin-org-claimed-invite/SKILL.md => hooks-admin/references/org-claimed-invite.md} (87%) rename skills/{hooks-admin-org-get-managers-record/SKILL.md => hooks-admin/references/org-get-managers-record.md} (80%) rename skills/{hooks-admin-org-get-subordinates-record/SKILL.md => hooks-admin/references/org-get-subordinates-record.md} (80%) rename skills/{hooks-admin-org-grant/SKILL.md => hooks-admin/references/org-grant.md} (88%) rename skills/{hooks-admin-org-invite/SKILL.md => hooks-admin/references/org-invite.md} (90%) rename skills/{hooks-admin-org-is-manager-of/SKILL.md => hooks-admin/references/org-is-manager-of.md} (77%) rename skills/{hooks-admin-org-limit-default/SKILL.md => hooks-admin/references/org-limit-default.md} (83%) rename skills/{hooks-admin-org-limit/SKILL.md => hooks-admin/references/org-limit.md} (87%) rename skills/{hooks-admin-org-member/SKILL.md => hooks-admin/references/org-member.md} (85%) rename skills/{hooks-admin-org-membership-default/SKILL.md => hooks-admin/references/org-membership-default.md} (88%) rename skills/{hooks-admin-org-membership/SKILL.md => hooks-admin/references/org-membership.md} (90%) rename skills/{hooks-admin-org-owner-grant/SKILL.md => hooks-admin/references/org-owner-grant.md} (88%) rename skills/{hooks-admin-org-permission-default/SKILL.md => hooks-admin/references/org-permission-default.md} (85%) rename skills/{hooks-admin-org-permission/SKILL.md => hooks-admin/references/org-permission.md} (85%) rename skills/{hooks-admin-org-permissions-get-by-mask/SKILL.md => hooks-admin/references/org-permissions-get-by-mask.md} (73%) rename skills/{hooks-admin-org-permissions-get-mask-by-names/SKILL.md => hooks-admin/references/org-permissions-get-mask-by-names.md} (67%) rename skills/{hooks-admin-org-permissions-get-mask/SKILL.md => hooks-admin/references/org-permissions-get-mask.md} (68%) rename skills/{hooks-admin-org-permissions-get-padded-mask/SKILL.md => hooks-admin/references/org-permissions-get-padded-mask.md} (67%) rename skills/{hooks-admin-steps-achieved/SKILL.md => hooks-admin/references/steps-achieved.md} (73%) rename skills/{hooks-admin-steps-required/SKILL.md => hooks-admin/references/steps-required.md} (76%) rename skills/{hooks-admin-submit-invite-code/SKILL.md => hooks-admin/references/submit-invite-code.md} (72%) rename skills/{hooks-admin-submit-org-invite-code/SKILL.md => hooks-admin/references/submit-org-invite-code.md} (72%) create mode 100644 skills/hooks-auth/SKILL.md rename skills/{hooks-auth-audit-log/SKILL.md => hooks-auth/references/audit-log.md} (88%) rename skills/{hooks-auth-check-password/SKILL.md => hooks-auth/references/check-password.md} (74%) rename skills/{hooks-auth-confirm-delete-account/SKILL.md => hooks-auth/references/confirm-delete-account.md} (72%) rename skills/{hooks-auth-connected-account/SKILL.md => hooks-auth/references/connected-account.md} (88%) rename skills/{hooks-auth-crypto-address/SKILL.md => hooks-auth/references/crypto-address.md} (86%) rename skills/{hooks-auth-current-ip-address/SKILL.md => hooks-auth/references/current-ip-address.md} (67%) rename skills/{hooks-auth-current-user-agent/SKILL.md => hooks-auth/references/current-user-agent.md} (67%) rename skills/{hooks-auth-current-user-id/SKILL.md => hooks-auth/references/current-user-id.md} (68%) rename skills/{hooks-auth-current-user/SKILL.md => hooks-auth/references/current-user.md} (68%) rename skills/{hooks-auth-email/SKILL.md => hooks-auth/references/email.md} (89%) rename skills/{hooks-auth-extend-token-expires/SKILL.md => hooks-auth/references/extend-token-expires.md} (72%) rename skills/{hooks-auth-forgot-password/SKILL.md => hooks-auth/references/forgot-password.md} (73%) rename skills/{hooks-auth-one-time-token/SKILL.md => hooks-auth/references/one-time-token.md} (74%) rename skills/{hooks-auth-phone-number/SKILL.md => hooks-auth/references/phone-number.md} (88%) rename skills/{hooks-auth-reset-password/SKILL.md => hooks-auth/references/reset-password.md} (74%) rename skills/{hooks-auth-role-type/SKILL.md => hooks-auth/references/role-type.md} (86%) rename skills/{hooks-auth-send-account-deletion-email/SKILL.md => hooks-auth/references/send-account-deletion-email.md} (71%) rename skills/{hooks-auth-send-verification-email/SKILL.md => hooks-auth/references/send-verification-email.md} (72%) rename skills/{hooks-auth-set-password/SKILL.md => hooks-auth/references/set-password.md} (74%) rename skills/{hooks-auth-sign-in-one-time-token/SKILL.md => hooks-auth/references/sign-in-one-time-token.md} (72%) rename skills/{hooks-auth-sign-in/SKILL.md => hooks-auth/references/sign-in.md} (76%) rename skills/{hooks-auth-sign-out/SKILL.md => hooks-auth/references/sign-out.md} (75%) rename skills/{hooks-auth-sign-up/SKILL.md => hooks-auth/references/sign-up.md} (76%) rename skills/{hooks-auth-user/SKILL.md => hooks-auth/references/user.md} (92%) rename skills/{hooks-auth-verify-email/SKILL.md => hooks-auth/references/verify-email.md} (74%) rename skills/{hooks-auth-verify-password/SKILL.md => hooks-auth/references/verify-password.md} (73%) rename skills/{hooks-auth-verify-totp/SKILL.md => hooks-auth/references/verify-totp.md} (74%) create mode 100644 skills/hooks-objects/SKILL.md rename skills/{hooks-public-commit/SKILL.md => hooks-objects/references/commit.md} (91%) rename skills/{hooks-public-freeze-objects/SKILL.md => hooks-objects/references/freeze-objects.md} (73%) rename skills/{hooks-public-get-all-objects-from-root/SKILL.md => hooks-objects/references/get-all-objects-from-root.md} (75%) rename skills/{hooks-public-get-all-record/SKILL.md => hooks-objects/references/get-all-record.md} (81%) rename skills/{hooks-public-get-object-at-path/SKILL.md => hooks-objects/references/get-object-at-path.md} (75%) rename skills/{hooks-public-get-path-objects-from-root/SKILL.md => hooks-objects/references/get-path-objects-from-root.md} (76%) rename skills/{hooks-public-init-empty-repo/SKILL.md => hooks-objects/references/init-empty-repo.md} (73%) rename skills/{hooks-public-insert-node-at-path/SKILL.md => hooks-objects/references/insert-node-at-path.md} (72%) rename skills/{hooks-public-object/SKILL.md => hooks-objects/references/object.md} (90%) rename skills/{hooks-public-ref/SKILL.md => hooks-objects/references/ref.md} (89%) rename skills/{hooks-public-remove-node-at-path/SKILL.md => hooks-objects/references/remove-node-at-path.md} (72%) rename skills/{hooks-public-rev-parse/SKILL.md => hooks-objects/references/rev-parse.md} (76%) rename skills/{hooks-public-set-and-commit/SKILL.md => hooks-objects/references/set-and-commit.md} (73%) rename skills/{hooks-public-set-data-at-path/SKILL.md => hooks-objects/references/set-data-at-path.md} (72%) rename skills/{hooks-public-set-props-and-commit/SKILL.md => hooks-objects/references/set-props-and-commit.md} (72%) rename skills/{hooks-public-store/SKILL.md => hooks-objects/references/store.md} (87%) rename skills/{hooks-public-update-node-at-path/SKILL.md => hooks-objects/references/update-node-at-path.md} (72%) create mode 100644 skills/hooks-public/SKILL.md rename skills/{hooks-public-api-module/SKILL.md => hooks-public/references/api-module.md} (83%) rename skills/{hooks-public-api-schema/SKILL.md => hooks-public/references/api-schema.md} (83%) rename skills/{hooks-public-api/SKILL.md => hooks-public/references/api.md} (85%) rename skills/{hooks-public-app-achievement/SKILL.md => hooks-public/references/app-achievement.md} (83%) rename skills/{hooks-public-app-admin-grant/SKILL.md => hooks-public/references/app-admin-grant.md} (87%) rename skills/{hooks-public-app-grant/SKILL.md => hooks-public/references/app-grant.md} (87%) rename skills/{hooks-public-app-level-requirement/SKILL.md => hooks-public/references/app-level-requirement.md} (88%) rename skills/{hooks-public-app-level/SKILL.md => hooks-public/references/app-level.md} (87%) rename skills/{hooks-public-app-limit-default/SKILL.md => hooks-public/references/app-limit-default.md} (83%) rename skills/{hooks-public-app-limit/SKILL.md => hooks-public/references/app-limit.md} (87%) rename skills/{hooks-public-app-membership-default/SKILL.md => hooks-public/references/app-membership-default.md} (86%) rename skills/{hooks-public-app-membership/SKILL.md => hooks-public/references/app-membership.md} (90%) rename skills/{hooks-public-app-owner-grant/SKILL.md => hooks-public/references/app-owner-grant.md} (88%) rename skills/{hooks-public-app-permission-default/SKILL.md => hooks-public/references/app-permission-default.md} (84%) rename skills/{hooks-public-app-permission/SKILL.md => hooks-public/references/app-permission.md} (84%) rename skills/{hooks-public-app-permissions-get-by-mask/SKILL.md => hooks-public/references/app-permissions-get-by-mask.md} (72%) rename skills/{hooks-public-app-permissions-get-mask-by-names/SKILL.md => hooks-public/references/app-permissions-get-mask-by-names.md} (67%) rename skills/{hooks-public-app-permissions-get-mask/SKILL.md => hooks-public/references/app-permissions-get-mask.md} (68%) rename skills/{hooks-public-app-permissions-get-padded-mask/SKILL.md => hooks-public/references/app-permissions-get-padded-mask.md} (67%) rename skills/{hooks-public-app-step/SKILL.md => hooks-public/references/app-step.md} (85%) rename skills/{hooks-public-app/SKILL.md => hooks-public/references/app.md} (89%) rename skills/{hooks-public-apply-rls/SKILL.md => hooks-public/references/apply-rls.md} (74%) rename skills/{hooks-public-ast-migration/SKILL.md => hooks-public/references/ast-migration.md} (91%) rename skills/{hooks-public-audit-log/SKILL.md => hooks-public/references/audit-log.md} (87%) rename skills/{hooks-public-bootstrap-user/SKILL.md => hooks-public/references/bootstrap-user.md} (73%) rename skills/{hooks-public-check-constraint/SKILL.md => hooks-public/references/check-constraint.md} (91%) rename skills/{hooks-public-check-password/SKILL.md => hooks-public/references/check-password.md} (73%) rename skills/{hooks-public-claimed-invite/SKILL.md => hooks-public/references/claimed-invite.md} (87%) rename skills/{hooks-objects-commit/SKILL.md => hooks-public/references/commit.md} (91%) rename skills/{hooks-public-confirm-delete-account/SKILL.md => hooks-public/references/confirm-delete-account.md} (71%) rename skills/{hooks-public-connected-account/SKILL.md => hooks-public/references/connected-account.md} (88%) rename skills/{hooks-public-connected-accounts-module/SKILL.md => hooks-public/references/connected-accounts-module.md} (88%) rename skills/{hooks-public-create-user-database/SKILL.md => hooks-public/references/create-user-database.md} (55%) rename skills/{hooks-public-crypto-address/SKILL.md => hooks-public/references/crypto-address.md} (86%) rename skills/{hooks-public-crypto-addresses-module/SKILL.md => hooks-public/references/crypto-addresses-module.md} (89%) rename skills/{hooks-public-crypto-auth-module/SKILL.md => hooks-public/references/crypto-auth-module.md} (93%) rename skills/{hooks-public-current-ip-address/SKILL.md => hooks-public/references/current-ip-address.md} (66%) rename skills/{hooks-public-current-user-agent/SKILL.md => hooks-public/references/current-user-agent.md} (66%) rename skills/{hooks-public-current-user-id/SKILL.md => hooks-public/references/current-user-id.md} (67%) rename skills/{hooks-public-current-user/SKILL.md => hooks-public/references/current-user.md} (68%) rename skills/{hooks-public-database-provision-module/SKILL.md => hooks-public/references/database-provision-module.md} (87%) rename skills/{hooks-public-database/SKILL.md => hooks-public/references/database.md} (90%) rename skills/{hooks-public-default-ids-module/SKILL.md => hooks-public/references/default-ids-module.md} (85%) rename skills/{hooks-public-default-privilege/SKILL.md => hooks-public/references/default-privilege.md} (89%) rename skills/{hooks-public-denormalized-table-field/SKILL.md => hooks-public/references/denormalized-table-field.md} (90%) rename skills/{hooks-public-domain/SKILL.md => hooks-public/references/domain.md} (87%) rename skills/{hooks-public-email/SKILL.md => hooks-public/references/email.md} (88%) rename skills/{hooks-public-emails-module/SKILL.md => hooks-public/references/emails-module.md} (90%) rename skills/{hooks-public-encrypted-secrets-module/SKILL.md => hooks-public/references/encrypted-secrets-module.md} (87%) rename skills/{hooks-public-extend-token-expires/SKILL.md => hooks-public/references/extend-token-expires.md} (72%) rename skills/{hooks-public-field-module/SKILL.md => hooks-public/references/field-module.md} (90%) rename skills/{hooks-public-field/SKILL.md => hooks-public/references/field.md} (95%) rename skills/{hooks-public-foreign-key-constraint/SKILL.md => hooks-public/references/foreign-key-constraint.md} (92%) rename skills/{hooks-public-forgot-password/SKILL.md => hooks-public/references/forgot-password.md} (73%) rename skills/{hooks-objects-freeze-objects/SKILL.md => hooks-public/references/freeze-objects.md} (73%) rename skills/{hooks-public-full-text-search/SKILL.md => hooks-public/references/full-text-search.md} (89%) rename skills/{hooks-objects-get-all-objects-from-root/SKILL.md => hooks-public/references/get-all-objects-from-root.md} (74%) rename skills/{hooks-objects-get-all-record/SKILL.md => hooks-public/references/get-all-record.md} (81%) rename skills/{hooks-objects-get-object-at-path/SKILL.md => hooks-public/references/get-object-at-path.md} (75%) rename skills/{hooks-objects-get-path-objects-from-root/SKILL.md => hooks-public/references/get-path-objects-from-root.md} (76%) rename skills/{hooks-public-hierarchy-module/SKILL.md => hooks-public/references/hierarchy-module.md} (94%) rename skills/{hooks-public-index/SKILL.md => hooks-public/references/index.md} (94%) rename skills/{hooks-objects-init-empty-repo/SKILL.md => hooks-public/references/init-empty-repo.md} (72%) rename skills/{hooks-objects-insert-node-at-path/SKILL.md => hooks-public/references/insert-node-at-path.md} (72%) rename skills/{hooks-public-invite/SKILL.md => hooks-public/references/invite.md} (89%) rename skills/{hooks-public-invites-module/SKILL.md => hooks-public/references/invites-module.md} (93%) rename skills/{hooks-public-levels-module/SKILL.md => hooks-public/references/levels-module.md} (96%) rename skills/{hooks-public-limits-module/SKILL.md => hooks-public/references/limits-module.md} (94%) rename skills/{hooks-public-membership-type/SKILL.md => hooks-public/references/membership-type.md} (84%) rename skills/{hooks-public-membership-types-module/SKILL.md => hooks-public/references/membership-types-module.md} (87%) rename skills/{hooks-public-memberships-module/SKILL.md => hooks-public/references/memberships-module.md} (96%) rename skills/{hooks-public-node-type-registry/SKILL.md => hooks-public/references/node-type-registry.md} (85%) rename skills/{hooks-objects-object/SKILL.md => hooks-public/references/object.md} (90%) rename skills/{hooks-public-one-time-token/SKILL.md => hooks-public/references/one-time-token.md} (73%) rename skills/{hooks-public-org-admin-grant/SKILL.md => hooks-public/references/org-admin-grant.md} (88%) rename skills/{hooks-public-org-chart-edge-grant/SKILL.md => hooks-public/references/org-chart-edge-grant.md} (87%) rename skills/{hooks-public-org-chart-edge/SKILL.md => hooks-public/references/org-chart-edge.md} (87%) rename skills/{hooks-public-org-claimed-invite/SKILL.md => hooks-public/references/org-claimed-invite.md} (87%) rename skills/{hooks-public-org-get-managers-record/SKILL.md => hooks-public/references/org-get-managers-record.md} (80%) rename skills/{hooks-public-org-get-subordinates-record/SKILL.md => hooks-public/references/org-get-subordinates-record.md} (80%) rename skills/{hooks-public-org-grant/SKILL.md => hooks-public/references/org-grant.md} (88%) rename skills/{hooks-public-org-invite/SKILL.md => hooks-public/references/org-invite.md} (90%) rename skills/{hooks-public-org-is-manager-of/SKILL.md => hooks-public/references/org-is-manager-of.md} (77%) rename skills/{hooks-public-org-limit-default/SKILL.md => hooks-public/references/org-limit-default.md} (83%) rename skills/{hooks-public-org-limit/SKILL.md => hooks-public/references/org-limit.md} (87%) rename skills/{hooks-public-org-member/SKILL.md => hooks-public/references/org-member.md} (84%) rename skills/{hooks-public-org-membership-default/SKILL.md => hooks-public/references/org-membership-default.md} (88%) rename skills/{hooks-public-org-membership/SKILL.md => hooks-public/references/org-membership.md} (90%) rename skills/{hooks-public-org-owner-grant/SKILL.md => hooks-public/references/org-owner-grant.md} (88%) rename skills/{hooks-public-org-permission-default/SKILL.md => hooks-public/references/org-permission-default.md} (85%) rename skills/{hooks-public-org-permission/SKILL.md => hooks-public/references/org-permission.md} (84%) rename skills/{hooks-public-org-permissions-get-by-mask/SKILL.md => hooks-public/references/org-permissions-get-by-mask.md} (72%) rename skills/{hooks-public-org-permissions-get-mask-by-names/SKILL.md => hooks-public/references/org-permissions-get-mask-by-names.md} (67%) rename skills/{hooks-public-org-permissions-get-mask/SKILL.md => hooks-public/references/org-permissions-get-mask.md} (68%) rename skills/{hooks-public-org-permissions-get-padded-mask/SKILL.md => hooks-public/references/org-permissions-get-padded-mask.md} (67%) rename skills/{hooks-public-permissions-module/SKILL.md => hooks-public/references/permissions-module.md} (93%) rename skills/{hooks-public-phone-number/SKILL.md => hooks-public/references/phone-number.md} (88%) rename skills/{hooks-public-phone-numbers-module/SKILL.md => hooks-public/references/phone-numbers-module.md} (89%) rename skills/{hooks-public-policy/SKILL.md => hooks-public/references/policy.md} (93%) rename skills/{hooks-public-primary-key-constraint/SKILL.md => hooks-public/references/primary-key-constraint.md} (90%) rename skills/{hooks-public-profiles-module/SKILL.md => hooks-public/references/profiles-module.md} (94%) rename skills/{hooks-public-provision-database-with-user/SKILL.md => hooks-public/references/provision-database-with-user.md} (70%) rename skills/{hooks-objects-ref/SKILL.md => hooks-public/references/ref.md} (88%) rename skills/{hooks-public-relation-provision/SKILL.md => hooks-public/references/relation-provision.md} (76%) rename skills/{hooks-objects-remove-node-at-path/SKILL.md => hooks-public/references/remove-node-at-path.md} (72%) rename skills/{hooks-public-reset-password/SKILL.md => hooks-public/references/reset-password.md} (73%) rename skills/{hooks-objects-rev-parse/SKILL.md => hooks-public/references/rev-parse.md} (76%) rename skills/{hooks-public-rls-module/SKILL.md => hooks-public/references/rls-module.md} (93%) rename skills/{hooks-public-role-type/SKILL.md => hooks-public/references/role-type.md} (86%) rename skills/{hooks-public-schema-grant/SKILL.md => hooks-public/references/schema-grant.md} (89%) rename skills/{hooks-public-schema/SKILL.md => hooks-public/references/schema.md} (93%) rename skills/{hooks-public-secrets-module/SKILL.md => hooks-public/references/secrets-module.md} (88%) rename skills/{hooks-public-secure-table-provision/SKILL.md => hooks-public/references/secure-table-provision.md} (84%) rename skills/{hooks-public-send-account-deletion-email/SKILL.md => hooks-public/references/send-account-deletion-email.md} (70%) rename skills/{hooks-public-send-verification-email/SKILL.md => hooks-public/references/send-verification-email.md} (71%) rename skills/{hooks-public-sessions-module/SKILL.md => hooks-public/references/sessions-module.md} (92%) rename skills/{hooks-objects-set-and-commit/SKILL.md => hooks-public/references/set-and-commit.md} (73%) rename skills/{hooks-objects-set-data-at-path/SKILL.md => hooks-public/references/set-data-at-path.md} (72%) rename skills/{hooks-public-set-field-order/SKILL.md => hooks-public/references/set-field-order.md} (73%) rename skills/{hooks-public-set-password/SKILL.md => hooks-public/references/set-password.md} (74%) rename skills/{hooks-objects-set-props-and-commit/SKILL.md => hooks-public/references/set-props-and-commit.md} (71%) rename skills/{hooks-public-sign-in-one-time-token/SKILL.md => hooks-public/references/sign-in-one-time-token.md} (71%) rename skills/{hooks-public-sign-in/SKILL.md => hooks-public/references/sign-in.md} (75%) rename skills/{hooks-public-sign-out/SKILL.md => hooks-public/references/sign-out.md} (75%) rename skills/{hooks-public-sign-up/SKILL.md => hooks-public/references/sign-up.md} (75%) rename skills/{hooks-public-site-metadatum/SKILL.md => hooks-public/references/site-metadatum.md} (86%) rename skills/{hooks-public-site-module/SKILL.md => hooks-public/references/site-module.md} (84%) rename skills/{hooks-public-site-theme/SKILL.md => hooks-public/references/site-theme.md} (85%) rename skills/{hooks-public-site/SKILL.md => hooks-public/references/site.md} (88%) rename skills/{hooks-public-sql-migration/SKILL.md => hooks-public/references/sql-migration.md} (91%) rename skills/{hooks-public-steps-achieved/SKILL.md => hooks-public/references/steps-achieved.md} (73%) rename skills/{hooks-public-steps-required/SKILL.md => hooks-public/references/steps-required.md} (75%) rename skills/{hooks-objects-store/SKILL.md => hooks-public/references/store.md} (87%) rename skills/{hooks-public-submit-invite-code/SKILL.md => hooks-public/references/submit-invite-code.md} (72%) rename skills/{hooks-public-submit-org-invite-code/SKILL.md => hooks-public/references/submit-org-invite-code.md} (71%) rename skills/{hooks-public-table-grant/SKILL.md => hooks-public/references/table-grant.md} (90%) rename skills/{hooks-public-table-module/SKILL.md => hooks-public/references/table-module.md} (90%) rename skills/{hooks-public-table-template-module/SKILL.md => hooks-public/references/table-template-module.md} (89%) rename skills/{hooks-public-table/SKILL.md => hooks-public/references/table.md} (94%) rename skills/{hooks-public-trigger-function/SKILL.md => hooks-public/references/trigger-function.md} (88%) rename skills/{hooks-public-trigger/SKILL.md => hooks-public/references/trigger.md} (92%) rename skills/{hooks-public-unique-constraint/SKILL.md => hooks-public/references/unique-constraint.md} (91%) rename skills/{hooks-objects-update-node-at-path/SKILL.md => hooks-public/references/update-node-at-path.md} (72%) rename skills/{hooks-public-user-auth-module/SKILL.md => hooks-public/references/user-auth-module.md} (96%) rename skills/{hooks-public-user/SKILL.md => hooks-public/references/user.md} (91%) rename skills/{hooks-public-users-module/SKILL.md => hooks-public/references/users-module.md} (90%) rename skills/{hooks-public-uuid-module/SKILL.md => hooks-public/references/uuid-module.md} (88%) rename skills/{hooks-public-verify-email/SKILL.md => hooks-public/references/verify-email.md} (74%) rename skills/{hooks-public-verify-password/SKILL.md => hooks-public/references/verify-password.md} (73%) rename skills/{hooks-public-verify-totp/SKILL.md => hooks-public/references/verify-totp.md} (74%) rename skills/{hooks-public-view-grant/SKILL.md => hooks-public/references/view-grant.md} (90%) rename skills/{hooks-public-view-rule/SKILL.md => hooks-public/references/view-rule.md} (88%) rename skills/{hooks-public-view-table/SKILL.md => hooks-public/references/view-table.md} (86%) rename skills/{hooks-public-view/SKILL.md => hooks-public/references/view.md} (94%) create mode 100644 skills/orm-admin/SKILL.md rename skills/{orm-admin-app-achievement/SKILL.md => orm-admin/references/app-achievement.md} (82%) rename skills/{orm-admin-app-admin-grant/SKILL.md => orm-admin/references/app-admin-grant.md} (87%) rename skills/{orm-admin-app-grant/SKILL.md => orm-admin/references/app-grant.md} (86%) rename skills/{orm-admin-app-level-requirement/SKILL.md => orm-admin/references/app-level-requirement.md} (87%) rename skills/{orm-admin-app-level/SKILL.md => orm-admin/references/app-level.md} (86%) rename skills/{orm-admin-app-limit-default/SKILL.md => orm-admin/references/app-limit-default.md} (84%) rename skills/{orm-admin-app-limit/SKILL.md => orm-admin/references/app-limit.md} (87%) rename skills/{orm-admin-app-membership-default/SKILL.md => orm-admin/references/app-membership-default.md} (84%) rename skills/{orm-admin-app-membership/SKILL.md => orm-admin/references/app-membership.md} (88%) rename skills/{orm-admin-app-owner-grant/SKILL.md => orm-admin/references/app-owner-grant.md} (87%) rename skills/{orm-admin-app-permission-default/SKILL.md => orm-admin/references/app-permission-default.md} (85%) rename skills/{orm-admin-app-permission/SKILL.md => orm-admin/references/app-permission.md} (84%) rename skills/{orm-admin-app-permissions-get-by-mask/SKILL.md => orm-admin/references/app-permissions-get-by-mask.md} (73%) rename skills/{orm-admin-app-permissions-get-mask-by-names/SKILL.md => orm-admin/references/app-permissions-get-mask-by-names.md} (68%) rename skills/{orm-admin-app-permissions-get-mask/SKILL.md => orm-admin/references/app-permissions-get-mask.md} (70%) rename skills/{orm-admin-app-permissions-get-padded-mask/SKILL.md => orm-admin/references/app-permissions-get-padded-mask.md} (69%) rename skills/{orm-admin-app-step/SKILL.md => orm-admin/references/app-step.md} (84%) rename skills/{orm-admin-claimed-invite/SKILL.md => orm-admin/references/claimed-invite.md} (86%) rename skills/{orm-admin-invite/SKILL.md => orm-admin/references/invite.md} (87%) rename skills/{orm-admin-membership-type/SKILL.md => orm-admin/references/membership-type.md} (84%) rename skills/{orm-admin-org-admin-grant/SKILL.md => orm-admin/references/org-admin-grant.md} (87%) rename skills/{orm-admin-org-chart-edge-grant/SKILL.md => orm-admin/references/org-chart-edge-grant.md} (86%) rename skills/{orm-admin-org-chart-edge/SKILL.md => orm-admin/references/org-chart-edge.md} (85%) rename skills/{orm-admin-org-claimed-invite/SKILL.md => orm-admin/references/org-claimed-invite.md} (86%) rename skills/{orm-admin-org-get-managers-record/SKILL.md => orm-admin/references/org-get-managers-record.md} (86%) rename skills/{orm-admin-org-get-subordinates-record/SKILL.md => orm-admin/references/org-get-subordinates-record.md} (86%) rename skills/{orm-admin-org-grant/SKILL.md => orm-admin/references/org-grant.md} (87%) rename skills/{orm-admin-org-invite/SKILL.md => orm-admin/references/org-invite.md} (88%) rename skills/{orm-admin-org-is-manager-of/SKILL.md => orm-admin/references/org-is-manager-of.md} (79%) rename skills/{orm-admin-org-limit-default/SKILL.md => orm-admin/references/org-limit-default.md} (84%) rename skills/{orm-admin-org-limit/SKILL.md => orm-admin/references/org-limit.md} (87%) rename skills/{orm-admin-org-member/SKILL.md => orm-admin/references/org-member.md} (85%) rename skills/{orm-admin-org-membership-default/SKILL.md => orm-admin/references/org-membership-default.md} (86%) rename skills/{orm-admin-org-membership/SKILL.md => orm-admin/references/org-membership.md} (88%) rename skills/{orm-admin-org-owner-grant/SKILL.md => orm-admin/references/org-owner-grant.md} (87%) rename skills/{orm-admin-org-permission-default/SKILL.md => orm-admin/references/org-permission-default.md} (85%) rename skills/{orm-admin-org-permission/SKILL.md => orm-admin/references/org-permission.md} (84%) rename skills/{orm-admin-org-permissions-get-by-mask/SKILL.md => orm-admin/references/org-permissions-get-by-mask.md} (73%) rename skills/{orm-admin-org-permissions-get-mask-by-names/SKILL.md => orm-admin/references/org-permissions-get-mask-by-names.md} (68%) rename skills/{orm-admin-org-permissions-get-mask/SKILL.md => orm-admin/references/org-permissions-get-mask.md} (70%) rename skills/{orm-admin-org-permissions-get-padded-mask/SKILL.md => orm-admin/references/org-permissions-get-padded-mask.md} (69%) rename skills/{orm-admin-steps-achieved/SKILL.md => orm-admin/references/steps-achieved.md} (75%) rename skills/{orm-admin-steps-required/SKILL.md => orm-admin/references/steps-required.md} (76%) rename skills/{orm-admin-submit-invite-code/SKILL.md => orm-admin/references/submit-invite-code.md} (72%) rename skills/{orm-admin-submit-org-invite-code/SKILL.md => orm-admin/references/submit-org-invite-code.md} (71%) create mode 100644 skills/orm-auth/SKILL.md rename skills/{orm-auth-audit-log/SKILL.md => orm-auth/references/audit-log.md} (86%) rename skills/{orm-auth-check-password/SKILL.md => orm-auth/references/check-password.md} (73%) rename skills/{orm-auth-confirm-delete-account/SKILL.md => orm-auth/references/confirm-delete-account.md} (71%) rename skills/{orm-auth-connected-account/SKILL.md => orm-auth/references/connected-account.md} (87%) rename skills/{orm-auth-crypto-address/SKILL.md => orm-auth/references/crypto-address.md} (85%) rename skills/{orm-auth-current-ip-address/SKILL.md => orm-auth/references/current-ip-address.md} (69%) rename skills/{orm-auth-current-user-agent/SKILL.md => orm-auth/references/current-user-agent.md} (69%) rename skills/{orm-auth-current-user-id/SKILL.md => orm-auth/references/current-user-id.md} (70%) rename skills/{orm-auth-current-user/SKILL.md => orm-auth/references/current-user.md} (71%) rename skills/{orm-auth-email/SKILL.md => orm-auth/references/email.md} (87%) rename skills/{orm-auth-extend-token-expires/SKILL.md => orm-auth/references/extend-token-expires.md} (72%) rename skills/{orm-auth-forgot-password/SKILL.md => orm-auth/references/forgot-password.md} (73%) rename skills/{orm-auth-one-time-token/SKILL.md => orm-auth/references/one-time-token.md} (73%) rename skills/{orm-auth-phone-number/SKILL.md => orm-auth/references/phone-number.md} (86%) rename skills/{orm-auth-reset-password/SKILL.md => orm-auth/references/reset-password.md} (73%) rename skills/{orm-auth-role-type/SKILL.md => orm-auth/references/role-type.md} (88%) rename skills/{orm-auth-send-account-deletion-email/SKILL.md => orm-auth/references/send-account-deletion-email.md} (70%) rename skills/{orm-auth-send-verification-email/SKILL.md => orm-auth/references/send-verification-email.md} (71%) rename skills/{orm-auth-set-password/SKILL.md => orm-auth/references/set-password.md} (74%) rename skills/{orm-auth-sign-in-one-time-token/SKILL.md => orm-auth/references/sign-in-one-time-token.md} (71%) rename skills/{orm-auth-sign-in/SKILL.md => orm-auth/references/sign-in.md} (75%) rename skills/{orm-auth-sign-out/SKILL.md => orm-auth/references/sign-out.md} (75%) rename skills/{orm-auth-sign-up/SKILL.md => orm-auth/references/sign-up.md} (75%) rename skills/{orm-auth-user/SKILL.md => orm-auth/references/user.md} (91%) rename skills/{orm-auth-verify-email/SKILL.md => orm-auth/references/verify-email.md} (74%) rename skills/{orm-auth-verify-password/SKILL.md => orm-auth/references/verify-password.md} (73%) rename skills/{orm-auth-verify-totp/SKILL.md => orm-auth/references/verify-totp.md} (74%) create mode 100644 skills/orm-objects/SKILL.md rename skills/{orm-public-commit/SKILL.md => orm-objects/references/commit.md} (90%) rename skills/{orm-public-freeze-objects/SKILL.md => orm-objects/references/freeze-objects.md} (72%) rename skills/{orm-public-get-all-objects-from-root/SKILL.md => orm-objects/references/get-all-objects-from-root.md} (75%) rename skills/{orm-public-get-all-record/SKILL.md => orm-objects/references/get-all-record.md} (87%) rename skills/{orm-public-get-object-at-path/SKILL.md => orm-objects/references/get-object-at-path.md} (77%) rename skills/{orm-public-get-path-objects-from-root/SKILL.md => orm-objects/references/get-path-objects-from-root.md} (76%) rename skills/{orm-public-init-empty-repo/SKILL.md => orm-objects/references/init-empty-repo.md} (72%) rename skills/{orm-public-insert-node-at-path/SKILL.md => orm-objects/references/insert-node-at-path.md} (71%) rename skills/{orm-public-object/SKILL.md => orm-objects/references/object.md} (90%) rename skills/{orm-public-ref/SKILL.md => orm-objects/references/ref.md} (88%) rename skills/{orm-public-remove-node-at-path/SKILL.md => orm-objects/references/remove-node-at-path.md} (71%) rename skills/{orm-public-rev-parse/SKILL.md => orm-objects/references/rev-parse.md} (78%) rename skills/{orm-public-set-and-commit/SKILL.md => orm-objects/references/set-and-commit.md} (72%) rename skills/{orm-public-set-data-at-path/SKILL.md => orm-objects/references/set-data-at-path.md} (72%) rename skills/{orm-public-set-props-and-commit/SKILL.md => orm-objects/references/set-props-and-commit.md} (71%) rename skills/{orm-public-store/SKILL.md => orm-objects/references/store.md} (86%) rename skills/{orm-public-update-node-at-path/SKILL.md => orm-objects/references/update-node-at-path.md} (71%) create mode 100644 skills/orm-public/SKILL.md rename skills/{orm-public-api-module/SKILL.md => orm-public/references/api-module.md} (83%) rename skills/{orm-public-api-schema/SKILL.md => orm-public/references/api-schema.md} (83%) rename skills/{orm-public-api/SKILL.md => orm-public/references/api.md} (84%) rename skills/{orm-public-app-achievement/SKILL.md => orm-public/references/app-achievement.md} (82%) rename skills/{orm-public-app-admin-grant/SKILL.md => orm-public/references/app-admin-grant.md} (86%) rename skills/{orm-public-app-grant/SKILL.md => orm-public/references/app-grant.md} (86%) rename skills/{orm-public-app-level-requirement/SKILL.md => orm-public/references/app-level-requirement.md} (86%) rename skills/{orm-public-app-level/SKILL.md => orm-public/references/app-level.md} (86%) rename skills/{orm-public-app-limit-default/SKILL.md => orm-public/references/app-limit-default.md} (84%) rename skills/{orm-public-app-limit/SKILL.md => orm-public/references/app-limit.md} (87%) rename skills/{orm-public-app-membership-default/SKILL.md => orm-public/references/app-membership-default.md} (84%) rename skills/{orm-public-app-membership/SKILL.md => orm-public/references/app-membership.md} (88%) rename skills/{orm-public-app-owner-grant/SKILL.md => orm-public/references/app-owner-grant.md} (87%) rename skills/{orm-public-app-permission-default/SKILL.md => orm-public/references/app-permission-default.md} (84%) rename skills/{orm-public-app-permission/SKILL.md => orm-public/references/app-permission.md} (84%) rename skills/{orm-public-app-permissions-get-by-mask/SKILL.md => orm-public/references/app-permissions-get-by-mask.md} (73%) rename skills/{orm-public-app-permissions-get-mask-by-names/SKILL.md => orm-public/references/app-permissions-get-mask-by-names.md} (68%) rename skills/{orm-public-app-permissions-get-mask/SKILL.md => orm-public/references/app-permissions-get-mask.md} (70%) rename skills/{orm-public-app-permissions-get-padded-mask/SKILL.md => orm-public/references/app-permissions-get-padded-mask.md} (68%) rename skills/{orm-public-app-step/SKILL.md => orm-public/references/app-step.md} (84%) rename skills/{orm-public-app/SKILL.md => orm-public/references/app.md} (88%) rename skills/{orm-public-apply-rls/SKILL.md => orm-public/references/apply-rls.md} (74%) rename skills/{orm-public-ast-migration/SKILL.md => orm-public/references/ast-migration.md} (91%) rename skills/{orm-public-audit-log/SKILL.md => orm-public/references/audit-log.md} (86%) rename skills/{orm-public-bootstrap-user/SKILL.md => orm-public/references/bootstrap-user.md} (72%) rename skills/{orm-public-check-constraint/SKILL.md => orm-public/references/check-constraint.md} (90%) rename skills/{orm-public-check-password/SKILL.md => orm-public/references/check-password.md} (72%) rename skills/{orm-public-claimed-invite/SKILL.md => orm-public/references/claimed-invite.md} (86%) rename skills/{orm-objects-commit/SKILL.md => orm-public/references/commit.md} (90%) rename skills/{orm-public-confirm-delete-account/SKILL.md => orm-public/references/confirm-delete-account.md} (71%) rename skills/{orm-public-connected-account/SKILL.md => orm-public/references/connected-account.md} (86%) rename skills/{orm-public-connected-accounts-module/SKILL.md => orm-public/references/connected-accounts-module.md} (88%) rename skills/{orm-public-create-user-database/SKILL.md => orm-public/references/create-user-database.md} (54%) rename skills/{orm-public-crypto-address/SKILL.md => orm-public/references/crypto-address.md} (85%) rename skills/{orm-public-crypto-addresses-module/SKILL.md => orm-public/references/crypto-addresses-module.md} (89%) rename skills/{orm-public-crypto-auth-module/SKILL.md => orm-public/references/crypto-auth-module.md} (92%) rename skills/{orm-public-current-ip-address/SKILL.md => orm-public/references/current-ip-address.md} (68%) rename skills/{orm-public-current-user-agent/SKILL.md => orm-public/references/current-user-agent.md} (68%) rename skills/{orm-public-current-user-id/SKILL.md => orm-public/references/current-user-id.md} (69%) rename skills/{orm-public-current-user/SKILL.md => orm-public/references/current-user.md} (70%) rename skills/{orm-public-database-provision-module/SKILL.md => orm-public/references/database-provision-module.md} (85%) rename skills/{orm-public-database/SKILL.md => orm-public/references/database.md} (89%) rename skills/{orm-public-default-ids-module/SKILL.md => orm-public/references/default-ids-module.md} (87%) rename skills/{orm-public-default-privilege/SKILL.md => orm-public/references/default-privilege.md} (89%) rename skills/{orm-public-denormalized-table-field/SKILL.md => orm-public/references/denormalized-table-field.md} (90%) rename skills/{orm-public-domain/SKILL.md => orm-public/references/domain.md} (86%) rename skills/{orm-public-email/SKILL.md => orm-public/references/email.md} (87%) rename skills/{orm-public-emails-module/SKILL.md => orm-public/references/emails-module.md} (90%) rename skills/{orm-public-encrypted-secrets-module/SKILL.md => orm-public/references/encrypted-secrets-module.md} (87%) rename skills/{orm-public-extend-token-expires/SKILL.md => orm-public/references/extend-token-expires.md} (71%) rename skills/{orm-public-field-module/SKILL.md => orm-public/references/field-module.md} (90%) rename skills/{orm-public-field/SKILL.md => orm-public/references/field.md} (94%) rename skills/{orm-public-foreign-key-constraint/SKILL.md => orm-public/references/foreign-key-constraint.md} (91%) rename skills/{orm-public-forgot-password/SKILL.md => orm-public/references/forgot-password.md} (72%) rename skills/{orm-objects-freeze-objects/SKILL.md => orm-public/references/freeze-objects.md} (72%) rename skills/{orm-public-full-text-search/SKILL.md => orm-public/references/full-text-search.md} (89%) rename skills/{orm-objects-get-all-objects-from-root/SKILL.md => orm-public/references/get-all-objects-from-root.md} (75%) rename skills/{orm-objects-get-all-record/SKILL.md => orm-public/references/get-all-record.md} (87%) rename skills/{orm-objects-get-object-at-path/SKILL.md => orm-public/references/get-object-at-path.md} (77%) rename skills/{orm-objects-get-path-objects-from-root/SKILL.md => orm-public/references/get-path-objects-from-root.md} (76%) rename skills/{orm-public-hierarchy-module/SKILL.md => orm-public/references/hierarchy-module.md} (93%) rename skills/{orm-public-index/SKILL.md => orm-public/references/index.md} (93%) rename skills/{orm-objects-init-empty-repo/SKILL.md => orm-public/references/init-empty-repo.md} (72%) rename skills/{orm-objects-insert-node-at-path/SKILL.md => orm-public/references/insert-node-at-path.md} (71%) rename skills/{orm-public-invite/SKILL.md => orm-public/references/invite.md} (87%) rename skills/{orm-public-invites-module/SKILL.md => orm-public/references/invites-module.md} (92%) rename skills/{orm-public-levels-module/SKILL.md => orm-public/references/levels-module.md} (94%) rename skills/{orm-public-limits-module/SKILL.md => orm-public/references/limits-module.md} (93%) rename skills/{orm-public-membership-type/SKILL.md => orm-public/references/membership-type.md} (84%) rename skills/{orm-public-membership-types-module/SKILL.md => orm-public/references/membership-types-module.md} (87%) rename skills/{orm-public-memberships-module/SKILL.md => orm-public/references/memberships-module.md} (94%) rename skills/{orm-public-node-type-registry/SKILL.md => orm-public/references/node-type-registry.md} (83%) rename skills/{orm-objects-object/SKILL.md => orm-public/references/object.md} (90%) rename skills/{orm-public-one-time-token/SKILL.md => orm-public/references/one-time-token.md} (72%) rename skills/{orm-public-org-admin-grant/SKILL.md => orm-public/references/org-admin-grant.md} (87%) rename skills/{orm-public-org-chart-edge-grant/SKILL.md => orm-public/references/org-chart-edge-grant.md} (86%) rename skills/{orm-public-org-chart-edge/SKILL.md => orm-public/references/org-chart-edge.md} (85%) rename skills/{orm-public-org-claimed-invite/SKILL.md => orm-public/references/org-claimed-invite.md} (86%) rename skills/{orm-public-org-get-managers-record/SKILL.md => orm-public/references/org-get-managers-record.md} (86%) rename skills/{orm-public-org-get-subordinates-record/SKILL.md => orm-public/references/org-get-subordinates-record.md} (86%) rename skills/{orm-public-org-grant/SKILL.md => orm-public/references/org-grant.md} (87%) rename skills/{orm-public-org-invite/SKILL.md => orm-public/references/org-invite.md} (88%) rename skills/{orm-public-org-is-manager-of/SKILL.md => orm-public/references/org-is-manager-of.md} (78%) rename skills/{orm-public-org-limit-default/SKILL.md => orm-public/references/org-limit-default.md} (84%) rename skills/{orm-public-org-limit/SKILL.md => orm-public/references/org-limit.md} (87%) rename skills/{orm-public-org-member/SKILL.md => orm-public/references/org-member.md} (84%) rename skills/{orm-public-org-membership-default/SKILL.md => orm-public/references/org-membership-default.md} (86%) rename skills/{orm-public-org-membership/SKILL.md => orm-public/references/org-membership.md} (88%) rename skills/{orm-public-org-owner-grant/SKILL.md => orm-public/references/org-owner-grant.md} (87%) rename skills/{orm-public-org-permission-default/SKILL.md => orm-public/references/org-permission-default.md} (85%) rename skills/{orm-public-org-permission/SKILL.md => orm-public/references/org-permission.md} (84%) rename skills/{orm-public-org-permissions-get-by-mask/SKILL.md => orm-public/references/org-permissions-get-by-mask.md} (73%) rename skills/{orm-public-org-permissions-get-mask-by-names/SKILL.md => orm-public/references/org-permissions-get-mask-by-names.md} (68%) rename skills/{orm-public-org-permissions-get-mask/SKILL.md => orm-public/references/org-permissions-get-mask.md} (70%) rename skills/{orm-public-org-permissions-get-padded-mask/SKILL.md => orm-public/references/org-permissions-get-padded-mask.md} (68%) rename skills/{orm-public-permissions-module/SKILL.md => orm-public/references/permissions-module.md} (92%) rename skills/{orm-public-phone-number/SKILL.md => orm-public/references/phone-number.md} (86%) rename skills/{orm-public-phone-numbers-module/SKILL.md => orm-public/references/phone-numbers-module.md} (89%) rename skills/{orm-public-policy/SKILL.md => orm-public/references/policy.md} (92%) rename skills/{orm-public-primary-key-constraint/SKILL.md => orm-public/references/primary-key-constraint.md} (89%) rename skills/{orm-public-profiles-module/SKILL.md => orm-public/references/profiles-module.md} (93%) rename skills/{orm-public-provision-database-with-user/SKILL.md => orm-public/references/provision-database-with-user.md} (69%) rename skills/{orm-objects-ref/SKILL.md => orm-public/references/ref.md} (88%) rename skills/{orm-public-relation-provision/SKILL.md => orm-public/references/relation-provision.md} (72%) rename skills/{orm-objects-remove-node-at-path/SKILL.md => orm-public/references/remove-node-at-path.md} (71%) rename skills/{orm-public-reset-password/SKILL.md => orm-public/references/reset-password.md} (72%) rename skills/{orm-objects-rev-parse/SKILL.md => orm-public/references/rev-parse.md} (78%) rename skills/{orm-public-rls-module/SKILL.md => orm-public/references/rls-module.md} (92%) rename skills/{orm-public-role-type/SKILL.md => orm-public/references/role-type.md} (88%) rename skills/{orm-public-schema-grant/SKILL.md => orm-public/references/schema-grant.md} (88%) rename skills/{orm-public-schema/SKILL.md => orm-public/references/schema.md} (92%) rename skills/{orm-public-secrets-module/SKILL.md => orm-public/references/secrets-module.md} (88%) rename skills/{orm-public-secure-table-provision/SKILL.md => orm-public/references/secure-table-provision.md} (81%) rename skills/{orm-public-send-account-deletion-email/SKILL.md => orm-public/references/send-account-deletion-email.md} (69%) rename skills/{orm-public-send-verification-email/SKILL.md => orm-public/references/send-verification-email.md} (70%) rename skills/{orm-public-sessions-module/SKILL.md => orm-public/references/sessions-module.md} (91%) rename skills/{orm-objects-set-and-commit/SKILL.md => orm-public/references/set-and-commit.md} (72%) rename skills/{orm-objects-set-data-at-path/SKILL.md => orm-public/references/set-data-at-path.md} (71%) rename skills/{orm-public-set-field-order/SKILL.md => orm-public/references/set-field-order.md} (72%) rename skills/{orm-public-set-password/SKILL.md => orm-public/references/set-password.md} (73%) rename skills/{orm-objects-set-props-and-commit/SKILL.md => orm-public/references/set-props-and-commit.md} (71%) rename skills/{orm-public-sign-in-one-time-token/SKILL.md => orm-public/references/sign-in-one-time-token.md} (70%) rename skills/{orm-public-sign-in/SKILL.md => orm-public/references/sign-in.md} (74%) rename skills/{orm-public-sign-out/SKILL.md => orm-public/references/sign-out.md} (74%) rename skills/{orm-public-sign-up/SKILL.md => orm-public/references/sign-up.md} (74%) rename skills/{orm-public-site-metadatum/SKILL.md => orm-public/references/site-metadatum.md} (86%) rename skills/{orm-public-site-module/SKILL.md => orm-public/references/site-module.md} (84%) rename skills/{orm-public-site-theme/SKILL.md => orm-public/references/site-theme.md} (85%) rename skills/{orm-public-site/SKILL.md => orm-public/references/site.md} (87%) rename skills/{orm-public-sql-migration/SKILL.md => orm-public/references/sql-migration.md} (90%) rename skills/{orm-public-steps-achieved/SKILL.md => orm-public/references/steps-achieved.md} (75%) rename skills/{orm-public-steps-required/SKILL.md => orm-public/references/steps-required.md} (76%) rename skills/{orm-objects-store/SKILL.md => orm-public/references/store.md} (86%) rename skills/{orm-public-submit-invite-code/SKILL.md => orm-public/references/submit-invite-code.md} (71%) rename skills/{orm-public-submit-org-invite-code/SKILL.md => orm-public/references/submit-org-invite-code.md} (70%) rename skills/{orm-public-table-grant/SKILL.md => orm-public/references/table-grant.md} (90%) rename skills/{orm-public-table-module/SKILL.md => orm-public/references/table-module.md} (90%) rename skills/{orm-public-table-template-module/SKILL.md => orm-public/references/table-template-module.md} (89%) rename skills/{orm-public-table/SKILL.md => orm-public/references/table.md} (93%) rename skills/{orm-public-trigger-function/SKILL.md => orm-public/references/trigger-function.md} (88%) rename skills/{orm-public-trigger/SKILL.md => orm-public/references/trigger.md} (91%) rename skills/{orm-public-unique-constraint/SKILL.md => orm-public/references/unique-constraint.md} (90%) rename skills/{orm-objects-update-node-at-path/SKILL.md => orm-public/references/update-node-at-path.md} (71%) rename skills/{orm-public-user-auth-module/SKILL.md => orm-public/references/user-auth-module.md} (94%) rename skills/{orm-public-user/SKILL.md => orm-public/references/user.md} (91%) rename skills/{orm-public-users-module/SKILL.md => orm-public/references/users-module.md} (90%) rename skills/{orm-public-uuid-module/SKILL.md => orm-public/references/uuid-module.md} (89%) rename skills/{orm-public-verify-email/SKILL.md => orm-public/references/verify-email.md} (73%) rename skills/{orm-public-verify-password/SKILL.md => orm-public/references/verify-password.md} (72%) rename skills/{orm-public-verify-totp/SKILL.md => orm-public/references/verify-totp.md} (73%) rename skills/{orm-public-view-grant/SKILL.md => orm-public/references/view-grant.md} (90%) rename skills/{orm-public-view-rule/SKILL.md => orm-public/references/view-rule.md} (88%) rename skills/{orm-public-view-table/SKILL.md => orm-public/references/view-table.md} (86%) rename skills/{orm-public-view/SKILL.md => orm-public/references/view.md} (93%) diff --git a/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap b/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap index dd48e9391..4e0126985 100644 --- a/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap +++ b/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap @@ -362,12 +362,7 @@ No developer or entity involved in creating this software will be liable for any `; exports[`cli docs generator generates CLI skill files 1`] = ` -"--- -name: cli-context -description: Manage API endpoint contexts for myapp ---- - -# cli-context +"# Context Management @@ -401,12 +396,7 @@ myapp context list `; exports[`cli docs generator generates CLI skill files 2`] = ` -"--- -name: cli-auth -description: Manage authentication tokens for myapp ---- - -# cli-auth +"# Authentication @@ -437,12 +427,7 @@ myapp auth status `; exports[`cli docs generator generates CLI skill files 3`] = ` -"--- -name: cli-default-car -description: CRUD operations for Car records via myapp CLI ---- - -# cli-default-car +"# car @@ -477,28 +462,11 @@ myapp car create --make "value" --model "value" --year "value" --isElectric "val \`\`\`bash myapp car get --id \`\`\` - -### Update a car - -\`\`\`bash -myapp car update --id --make "new-value" -\`\`\` - -### Delete a car - -\`\`\`bash -myapp car delete --id -\`\`\` " `; exports[`cli docs generator generates CLI skill files 4`] = ` -"--- -name: cli-default-driver -description: CRUD operations for Driver records via myapp CLI ---- - -# cli-default-driver +"# driver @@ -533,74 +501,104 @@ myapp driver create --name "value" --licenseNumber "value" \`\`\`bash myapp driver get --id \`\`\` +" +`; -### Update a driver +exports[`cli docs generator generates CLI skill files 5`] = ` +"# currentUser + + + +Get the currently authenticated user + +## Usage \`\`\`bash -myapp driver update --id --name "new-value" +myapp current-user \`\`\` -### Delete a driver +## Examples + +### Run currentUser \`\`\`bash -myapp driver delete --id +myapp current-user \`\`\` " `; -exports[`cli docs generator generates CLI skill files 5`] = ` -"--- -name: cli-default-current-user -description: Get the currently authenticated user ---- - -# cli-default-current-user +exports[`cli docs generator generates CLI skill files 6`] = ` +"# login -Get the currently authenticated user +Authenticate a user ## Usage \`\`\`bash -myapp current-user +myapp login --email --password \`\`\` ## Examples -### Run currentUser +### Run login \`\`\`bash -myapp current-user +myapp login --email --password \`\`\` " `; -exports[`cli docs generator generates CLI skill files 6`] = ` +exports[`cli docs generator generates CLI skill files 7`] = ` "--- -name: cli-default-login -description: Authenticate a user +name: cli-default +description: CLI tool (myapp) for the default API — provides CRUD commands for 2 tables and 2 custom operations --- -# cli-default-login +# cli-default -Authenticate a user +CLI tool (myapp) for the default API — provides CRUD commands for 2 tables and 2 custom operations ## Usage \`\`\`bash -myapp login --email --password +# Context management +myapp context create --endpoint +myapp context use + +# Authentication +myapp auth set-token + +# CRUD for any table (e.g. car) +myapp car list +myapp car get --id +myapp car create -- \`\`\` ## Examples -### Run login +### Set up and query \`\`\`bash -myapp login --email --password +myapp context create local --endpoint http://localhost:5000/graphql +myapp context use local +myapp auth set-token +myapp car list \`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [car](references/car.md) +- [driver](references/driver.md) +- [current-user](references/current-user.md) +- [login](references/login.md) " `; @@ -1811,12 +1809,7 @@ No developer or entity involved in creating this software will be liable for any `; exports[`hooks docs generator generates hooks skill files 1`] = ` -"--- -name: hooks-default-car -description: React Query hooks for Car data operations ---- - -# hooks-default-car +"# car @@ -1854,12 +1847,7 @@ mutate({ make: '', model: '', year: '', isElectric: ' @@ -1897,12 +1885,7 @@ mutate({ name: '', licenseNumber: '' }); `; exports[`hooks docs generator generates hooks skill files 3`] = ` -"--- -name: hooks-default-current-user -description: Get the currently authenticated user ---- - -# hooks-default-current-user +"# currentUser @@ -1925,12 +1908,7 @@ const { data, isLoading } = useCurrentUserQuery(); `; exports[`hooks docs generator generates hooks skill files 4`] = ` -"--- -name: hooks-default-login -description: Authenticate a user ---- - -# hooks-default-login +"# login @@ -1953,6 +1931,53 @@ mutate({ email: '', password: '' }); " `; +exports[`hooks docs generator generates hooks skill files 5`] = ` +"--- +name: hooks-default +description: React Query hooks for the default API — provides typed query and mutation hooks for 2 tables and 2 custom operations +--- + +# hooks-default + + + +React Query hooks for the default API — provides typed query and mutation hooks for 2 tables and 2 custom operations + +## Usage + +\`\`\`typescript +// Import hooks +import { useCarsQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useCarsQuery({ + selection: { fields: { id: true } }, +}); +\`\`\` + +## Examples + +### Query records + +\`\`\`typescript +const { data, isLoading } = useCarsQuery({ + selection: { fields: { id: true } }, +}); +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [car](references/car.md) +- [driver](references/driver.md) +- [current-user](references/current-user.md) +- [login](references/login.md) +" +`; + exports[`multi-target cli docs generates multi-target AGENTS.md 1`] = ` "# myapp CLI - Agent Reference @@ -2955,12 +2980,7 @@ No developer or entity involved in creating this software will be liable for any exports[`multi-target cli docs generates multi-target skills 1`] = ` [ { - "content": "--- -name: cli-context -description: Manage API endpoint contexts for myapp (multi-target: auth, members, app) ---- - -# cli-context + "content": "# Context Management @@ -2991,23 +3011,11 @@ myapp context use local myapp context create production --auth-endpoint --members-endpoint --app-endpoint myapp context use production \`\`\` - -### List and switch contexts - -\`\`\`bash -myapp context list -myapp context use staging -\`\`\` ", - "fileName": "cli-context/SKILL.md", + "fileName": "cli-common/references/context.md", }, { - "content": "--- -name: cli-auth -description: Manage authentication tokens for myapp (shared across all targets) ---- - -# cli-auth + "content": "# Authentication @@ -3035,15 +3043,53 @@ myapp credentials set-token eyJhbGciOiJIUzI1NiIs... myapp credentials status \`\`\` ", - "fileName": "cli-auth/SKILL.md", + "fileName": "cli-common/references/auth.md", }, { "content": "--- -name: cli-auth-user -description: CRUD operations for User records via myapp CLI (auth target) +name: cli-common +description: Shared CLI utilities for myapp — context management and authentication across targets: auth, members, app --- -# cli-auth-user +# cli-common + + + +Shared CLI utilities for myapp — context management and authentication across targets: auth, members, app + +## Usage + +\`\`\`bash +# Context management +myapp context create +myapp context use + +# Authentication +myapp credentials set-token +myapp credentials status +\`\`\` + +## Examples + +### Set up and authenticate + +\`\`\`bash +myapp context create local +myapp context use local +myapp credentials set-token +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +", + "fileName": "cli-common/SKILL.md", + }, + { + "content": "# user @@ -3072,22 +3118,11 @@ myapp auth:user list \`\`\`bash myapp auth:user create --email "value" --name "value" \`\`\` - -### Get a user by id - -\`\`\`bash -myapp auth:user get --id -\`\`\` ", - "fileName": "cli-auth-user/SKILL.md", + "fileName": "cli-auth/references/user.md", }, { - "content": "--- -name: cli-auth-current-user -description: Get the currently authenticated user (auth target) ---- - -# cli-auth-current-user + "content": "# currentUser @@ -3107,15 +3142,10 @@ myapp auth:current-user myapp auth:current-user \`\`\` ", - "fileName": "cli-auth-current-user/SKILL.md", + "fileName": "cli-auth/references/current-user.md", }, { - "content": "--- -name: cli-auth-login -description: Authenticate a user (auth target) ---- - -# cli-auth-login + "content": "# login @@ -3136,15 +3166,49 @@ myapp auth:login --email --password --save-token myapp auth:login --email --password \`\`\` ", - "fileName": "cli-auth-login/SKILL.md", + "fileName": "cli-auth/references/login.md", }, { "content": "--- -name: cli-members-member -description: CRUD operations for Member records via myapp CLI (members target) +name: cli-auth +description: CLI commands for the auth API target — 1 tables and 2 custom operations via myapp --- -# cli-members-member +# cli-auth + + + +CLI commands for the auth API target — 1 tables and 2 custom operations via myapp + +## Usage + +\`\`\`bash +# CRUD for auth tables (e.g. user) +myapp auth:user list +myapp auth:user get --id +myapp auth:user create -- +\`\`\` + +## Examples + +### Query auth records + +\`\`\`bash +myapp auth:user list +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [user](references/user.md) +- [current-user](references/current-user.md) +- [login](references/login.md) +", + "fileName": "cli-auth/SKILL.md", + }, + { + "content": "# member @@ -3173,22 +3237,48 @@ myapp members:member list \`\`\`bash myapp members:member create --role "value" \`\`\` +", + "fileName": "cli-members/references/member.md", + }, + { + "content": "--- +name: cli-members +description: CLI commands for the members API target — 1 tables and 0 custom operations via myapp +--- + +# cli-members + + -### Get a member by id +CLI commands for the members API target — 1 tables and 0 custom operations via myapp + +## Usage \`\`\`bash +# CRUD for members tables (e.g. member) +myapp members:member list myapp members:member get --id +myapp members:member create -- \`\`\` + +## Examples + +### Query members records + +\`\`\`bash +myapp members:member list +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [member](references/member.md) ", - "fileName": "cli-members-member/SKILL.md", + "fileName": "cli-members/SKILL.md", }, { - "content": "--- -name: cli-app-car -description: CRUD operations for Car records via myapp CLI (app target) ---- - -# cli-app-car + "content": "# car @@ -3217,14 +3307,45 @@ myapp app:car list \`\`\`bash myapp app:car create --make "value" --model "value" --year "value" --isElectric "value" \`\`\` +", + "fileName": "cli-app/references/car.md", + }, + { + "content": "--- +name: cli-app +description: CLI commands for the app API target — 1 tables and 0 custom operations via myapp +--- -### Get a car by id +# cli-app + + + +CLI commands for the app API target — 1 tables and 0 custom operations via myapp + +## Usage \`\`\`bash +# CRUD for app tables (e.g. car) +myapp app:car list myapp app:car get --id +myapp app:car create -- +\`\`\` + +## Examples + +### Query app records + +\`\`\`bash +myapp app:car list \`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [car](references/car.md) ", - "fileName": "cli-app-car/SKILL.md", + "fileName": "cli-app/SKILL.md", }, ] `; @@ -4587,12 +4708,7 @@ No developer or entity involved in creating this software will be liable for any `; exports[`orm docs generator generates ORM skill files 1`] = ` -"--- -name: orm-default-car -description: ORM operations for Car records ---- - -# orm-default-car +"# car @@ -4630,12 +4746,7 @@ const item = await db.car.create({ `; exports[`orm docs generator generates ORM skill files 2`] = ` -"--- -name: orm-default-driver -description: ORM operations for Driver records ---- - -# orm-default-driver +"# driver @@ -4673,12 +4784,7 @@ const item = await db.driver.create({ `; exports[`orm docs generator generates ORM skill files 3`] = ` -"--- -name: orm-default-current-user -description: Get the currently authenticated user ---- - -# orm-default-current-user +"# currentUser @@ -4701,12 +4807,7 @@ const result = await db.query.currentUser().execute(); `; exports[`orm docs generator generates ORM skill files 4`] = ` -"--- -name: orm-default-login -description: Authenticate a user ---- - -# orm-default-login +"# login @@ -4728,6 +4829,53 @@ const result = await db.mutation.login({ email: '', password: '' } " `; +exports[`orm docs generator generates ORM skill files 5`] = ` +"--- +name: orm-default +description: ORM client for the default API — provides typed CRUD operations for 2 tables and 2 custom operations +--- + +# orm-default + + + +ORM client for the default API — provides typed CRUD operations for 2 tables and 2 custom operations + +## Usage + +\`\`\`typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: car, driver +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +\`\`\` + +## Examples + +### Query records + +\`\`\`typescript +const items = await db.car.findMany({ + select: { id: true } +}).execute(); +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [car](references/car.md) +- [driver](references/driver.md) +- [current-user](references/current-user.md) +- [login](references/login.md) +" +`; + exports[`target docs generator generates combined MCP config 1`] = ` "{ "name": "myapp", diff --git a/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts b/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts index 4839022b2..0d04d177d 100644 --- a/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts +++ b/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts @@ -700,9 +700,10 @@ describe('multi-target cli docs', () => { const skills = generateMultiTargetSkills(docsInput); expect(skills.length).toBeGreaterThan(0); const fileNames = skills.map((s) => s.fileName); - expect(fileNames.some((n) => n.includes('auth-'))).toBe(true); - expect(fileNames.some((n) => n.includes('members-'))).toBe(true); - expect(fileNames.some((n) => n.includes('app-'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-auth/'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-members/'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-app/'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-common/'))).toBe(true); expect(skills).toMatchSnapshot(); }); diff --git a/graphql/codegen/src/core/codegen/cli/docs-generator.ts b/graphql/codegen/src/core/codegen/cli/docs-generator.ts index 83fd43b8d..414949d8f 100644 --- a/graphql/codegen/src/core/codegen/cli/docs-generator.ts +++ b/graphql/codegen/src/core/codegen/cli/docs-generator.ts @@ -8,6 +8,7 @@ import { getReadmeFooter, gqlTypeToJsonSchemaType, buildSkillFile, + buildSkillReference, } from '../docs-utils'; import type { GeneratedDocFile, McpTool } from '../docs-utils'; import { @@ -594,13 +595,15 @@ export function generateSkills( targetName: string, ): GeneratedDocFile[] { const files: GeneratedDocFile[] = []; + const skillName = `cli-${targetName}`; + const referenceNames: string[] = []; - const contextSkillName = 'cli-context'; - + // Context reference + referenceNames.push('context'); files.push({ - fileName: `${contextSkillName}/SKILL.md`, - content: buildSkillFile({ - name: contextSkillName, + fileName: `${skillName}/references/context.md`, + content: buildSkillReference({ + title: 'Context Management', description: `Manage API endpoint contexts for ${toolName}`, usage: [ `${toolName} context create --endpoint `, @@ -625,12 +628,12 @@ export function generateSkills( }), }); - const authSkillName = 'cli-auth'; - + // Auth reference + referenceNames.push('auth'); files.push({ - fileName: `${authSkillName}/SKILL.md`, - content: buildSkillFile({ - name: authSkillName, + fileName: `${skillName}/references/auth.md`, + content: buildSkillReference({ + title: 'Authentication', description: `Manage authentication tokens for ${toolName}`, usage: [ `${toolName} auth set-token `, @@ -650,18 +653,19 @@ export function generateSkills( }), }); + // Table references for (const table of tables) { const { singularName } = getTableNames(table); const kebab = toKebabCase(singularName); const pk = getPrimaryKeyInfo(table)[0]; const editableFields = getEditableFields(table); - const skillName = `cli-${targetName}-${kebab}`; + referenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: singularName, description: `CRUD operations for ${table.name} records via ${toolName} CLI`, usage: [ `${toolName} ${kebab} list`, @@ -685,21 +689,12 @@ export function generateSkills( description: `Get a ${singularName} by ${pk.name}`, code: [`${toolName} ${kebab} get --${pk.name} `], }, - { - description: `Update a ${singularName}`, - code: [ - `${toolName} ${kebab} update --${pk.name} --${editableFields[0]?.name || 'field'} "new-value"`, - ], - }, - { - description: `Delete a ${singularName}`, - code: [`${toolName} ${kebab} delete --${pk.name} `], - }, ], }), }); } + // Custom operation references for (const op of customOperations) { const kebab = toKebabCase(op.name); const usage = @@ -707,12 +702,12 @@ export function generateSkills( ? `${toolName} ${kebab} ${op.args.map((a) => `--${a.name} `).join(' ')}` : `${toolName} ${kebab}`; - const skillName = `cli-${targetName}-${kebab}`; + referenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: op.name, description: op.description || `Execute the ${op.name} ${op.kind}`, usage: [usage], examples: [ @@ -725,6 +720,43 @@ export function generateSkills( }); } + // Overview SKILL.md + const tableKebabs = tables.slice(0, 5).map((t) => toKebabCase(getTableNames(t).singularName)); + files.push({ + fileName: `${skillName}/SKILL.md`, + content: buildSkillFile( + { + name: skillName, + description: `CLI tool (${toolName}) for the ${targetName} API — provides CRUD commands for ${tables.length} tables and ${customOperations.length} custom operations`, + usage: [ + `# Context management`, + `${toolName} context create --endpoint `, + `${toolName} context use `, + '', + `# Authentication`, + `${toolName} auth set-token `, + '', + `# CRUD for any table (e.g. ${tableKebabs[0] || 'model'})`, + `${toolName} ${tableKebabs[0] || 'model'} list`, + `${toolName} ${tableKebabs[0] || 'model'} get --id `, + `${toolName} ${tableKebabs[0] || 'model'} create -- `, + ], + examples: [ + { + description: 'Set up and query', + code: [ + `${toolName} context create local --endpoint http://localhost:5000/graphql`, + `${toolName} context use local`, + `${toolName} auth set-token `, + `${toolName} ${tableKebabs[0] || 'model'} list`, + ], + }, + ], + }, + referenceNames, + ), + }); + return files; } @@ -1427,24 +1459,28 @@ export function generateMultiTargetSkills( const { toolName, builtinNames, targets } = input; const files: GeneratedDocFile[] = []; - const contextUsage = [ - `${toolName} ${builtinNames.context} create `, - `${toolName} ${builtinNames.context} list`, - `${toolName} ${builtinNames.context} use `, - `${toolName} ${builtinNames.context} current`, - `${toolName} ${builtinNames.context} delete `, - ]; + // Generate one skill per target, plus a shared cli-common skill for context/auth + const commonSkillName = 'cli-common'; + const commonReferenceNames: string[] = []; + const contextCreateFlags = targets .map((t) => `--${t.name}-endpoint `) .join(' '); - const contextSkillName = 'cli-context'; + // Context reference + commonReferenceNames.push('context'); files.push({ - fileName: `${contextSkillName}/SKILL.md`, - content: buildSkillFile({ - name: contextSkillName, + fileName: `${commonSkillName}/references/context.md`, + content: buildSkillReference({ + title: 'Context Management', description: `Manage API endpoint contexts for ${toolName} (multi-target: ${targets.map((t) => t.name).join(', ')})`, - usage: contextUsage, + usage: [ + `${toolName} ${builtinNames.context} create `, + `${toolName} ${builtinNames.context} list`, + `${toolName} ${builtinNames.context} use `, + `${toolName} ${builtinNames.context} current`, + `${toolName} ${builtinNames.context} delete `, + ], examples: [ { description: 'Create a context for local development (accept all defaults)', @@ -1460,23 +1496,16 @@ export function generateMultiTargetSkills( `${toolName} ${builtinNames.context} use production`, ], }, - { - description: 'List and switch contexts', - code: [ - `${toolName} ${builtinNames.context} list`, - `${toolName} ${builtinNames.context} use staging`, - ], - }, ], }), }); - const authSkillName = 'cli-auth'; - + // Auth reference + commonReferenceNames.push('auth'); files.push({ - fileName: `${authSkillName}/SKILL.md`, - content: buildSkillFile({ - name: authSkillName, + fileName: `${commonSkillName}/references/auth.md`, + content: buildSkillReference({ + title: 'Authentication', description: `Manage authentication tokens for ${toolName} (shared across all targets)`, usage: [ `${toolName} ${builtinNames.auth} set-token `, @@ -1496,7 +1525,42 @@ export function generateMultiTargetSkills( }), }); + // Common SKILL.md + files.push({ + fileName: `${commonSkillName}/SKILL.md`, + content: buildSkillFile( + { + name: commonSkillName, + description: `Shared CLI utilities for ${toolName} — context management and authentication across targets: ${targets.map((t) => t.name).join(', ')}`, + usage: [ + `# Context management`, + `${toolName} ${builtinNames.context} create `, + `${toolName} ${builtinNames.context} use `, + '', + `# Authentication`, + `${toolName} ${builtinNames.auth} set-token `, + `${toolName} ${builtinNames.auth} status`, + ], + examples: [ + { + description: 'Set up and authenticate', + code: [ + `${toolName} ${builtinNames.context} create local`, + `${toolName} ${builtinNames.context} use local`, + `${toolName} ${builtinNames.auth} set-token `, + ], + }, + ], + }, + commonReferenceNames, + ), + }); + + // Generate one skill per target with table/op references for (const tgt of targets) { + const tgtSkillName = `cli-${tgt.name}`; + const tgtReferenceNames: string[] = []; + for (const table of tgt.tables) { const { singularName } = getTableNames(table); const kebab = toKebabCase(singularName); @@ -1504,12 +1568,12 @@ export function generateMultiTargetSkills( const editableFields = getEditableFields(table); const cmd = `${tgt.name}:${kebab}`; - const skillName = `cli-${tgt.name}-${kebab}`; + tgtReferenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${tgtSkillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: singularName, description: `CRUD operations for ${table.name} records via ${toolName} CLI (${tgt.name} target)`, usage: [ `${toolName} ${cmd} list`, @@ -1529,10 +1593,6 @@ export function generateMultiTargetSkills( `${toolName} ${cmd} create ${editableFields.map((f) => `--${f.name} "value"`).join(' ')}`, ], }, - { - description: `Get a ${singularName} by ${pk.name}`, - code: [`${toolName} ${cmd} get --${pk.name} `], - }, ], }), }); @@ -1550,12 +1610,12 @@ export function generateMultiTargetSkills( usageLines.push(`${baseUsage} --save-token`); } - const skillName = `cli-${tgt.name}-${kebab}`; + tgtReferenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${tgtSkillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: op.name, description: `${op.description || `Execute the ${op.name} ${op.kind}`} (${tgt.name} target)`, usage: usageLines, examples: [ @@ -1567,6 +1627,33 @@ export function generateMultiTargetSkills( }), }); } + + // Target SKILL.md + const firstKebab = tgt.tables.length > 0 + ? toKebabCase(getTableNames(tgt.tables[0]).singularName) + : 'model'; + files.push({ + fileName: `${tgtSkillName}/SKILL.md`, + content: buildSkillFile( + { + name: tgtSkillName, + description: `CLI commands for the ${tgt.name} API target — ${tgt.tables.length} tables and ${tgt.customOperations.length} custom operations via ${toolName}`, + usage: [ + `# CRUD for ${tgt.name} tables (e.g. ${firstKebab})`, + `${toolName} ${tgt.name}:${firstKebab} list`, + `${toolName} ${tgt.name}:${firstKebab} get --id `, + `${toolName} ${tgt.name}:${firstKebab} create -- `, + ], + examples: [ + { + description: `Query ${tgt.name} records`, + code: [`${toolName} ${tgt.name}:${firstKebab} list`], + }, + ], + }, + tgtReferenceNames, + ), + }); } return files; diff --git a/graphql/codegen/src/core/codegen/docs-utils.ts b/graphql/codegen/src/core/codegen/docs-utils.ts index 751ffb587..c139b3f85 100644 --- a/graphql/codegen/src/core/codegen/docs-utils.ts +++ b/graphql/codegen/src/core/codegen/docs-utils.ts @@ -22,6 +22,14 @@ export interface SkillDefinition { language?: string; } +export interface SkillReferenceDefinition { + title: string; + description: string; + usage: string[]; + examples: { description: string; code: string[] }[]; + language?: string; +} + const CONSTRUCTIVE_LOGO_URL = 'https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg'; @@ -119,7 +127,10 @@ export function gqlTypeToJsonSchemaType(gqlType: string): string { } } -export function buildSkillFile(skill: SkillDefinition): string { +export function buildSkillFile( + skill: SkillDefinition, + referenceNames?: string[], +): string { const lang = skill.language ?? 'bash'; const lines: string[] = []; @@ -157,5 +168,50 @@ export function buildSkillFile(skill: SkillDefinition): string { lines.push(''); } + if (referenceNames && referenceNames.length > 0) { + lines.push('## References'); + lines.push(''); + lines.push('See the `references/` directory for detailed per-entity API documentation:'); + lines.push(''); + for (const name of referenceNames) { + lines.push(`- [${name}](references/${name}.md)`); + } + lines.push(''); + } + + return lines.join('\n'); +} + +export function buildSkillReference(ref: SkillReferenceDefinition): string { + const lang = ref.language ?? 'bash'; + const lines: string[] = []; + + lines.push(`# ${ref.title}`); + lines.push(''); + lines.push(''); + lines.push(''); + lines.push(ref.description); + lines.push(''); + lines.push('## Usage'); + lines.push(''); + lines.push(`\`\`\`${lang}`); + for (const u of ref.usage) { + lines.push(u); + } + lines.push('```'); + lines.push(''); + lines.push('## Examples'); + lines.push(''); + for (const ex of ref.examples) { + lines.push(`### ${ex.description}`); + lines.push(''); + lines.push(`\`\`\`${lang}`); + for (const cmd of ex.code) { + lines.push(cmd); + } + lines.push('```'); + lines.push(''); + } + return lines.join('\n'); } diff --git a/graphql/codegen/src/core/codegen/hooks-docs-generator.ts b/graphql/codegen/src/core/codegen/hooks-docs-generator.ts index 1cca73278..18453f953 100644 --- a/graphql/codegen/src/core/codegen/hooks-docs-generator.ts +++ b/graphql/codegen/src/core/codegen/hooks-docs-generator.ts @@ -3,6 +3,7 @@ import { toKebabCase } from 'komoji'; import type { CleanOperation, CleanTable } from '../../types/schema'; import { buildSkillFile, + buildSkillReference, formatArgType, getReadmeHeader, getReadmeFooter, @@ -501,7 +502,10 @@ export function generateHooksSkills( targetName: string, ): GeneratedDocFile[] { const files: GeneratedDocFile[] = []; + const skillName = `hooks-${targetName}`; + const referenceNames: string[] = []; + // Generate reference files for each table for (const table of tables) { const { singularName, pluralName } = getTableNames(table); const pk = getPrimaryKeyInfo(table)[0]; @@ -510,13 +514,13 @@ export function generateHooksSkills( .map((f) => `${f.name}: true`) .join(', '); - const tableKebab = toKebabCase(singularName); - const skillName = `hooks-${targetName}-${tableKebab}`; + const refName = toKebabCase(singularName); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: singularName, description: table.description || `React Query hooks for ${table.name} data operations`, language: 'typescript', usage: [ @@ -557,6 +561,7 @@ export function generateHooksSkills( }); } + // Generate reference files for custom operations for (const op of customOperations) { const hookName = getCustomHookName(op); const callArgs = @@ -564,13 +569,13 @@ export function generateHooksSkills( ? `{ ${op.args.map((a) => `${a.name}: ''`).join(', ')} }` : ''; - const opKebab = toKebabCase(op.name); - const skillName = `hooks-${targetName}-${opKebab}`; + const refName = toKebabCase(op.name); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: op.name, description: op.description || `React Query ${op.kind} hook for ${op.name}`, @@ -600,5 +605,40 @@ export function generateHooksSkills( }); } + // Generate the overview SKILL.md + const hookExamples = tables.slice(0, 3).map((t) => getListQueryHookName(t)); + files.push({ + fileName: `${skillName}/SKILL.md`, + content: buildSkillFile( + { + name: skillName, + description: `React Query hooks for the ${targetName} API — provides typed query and mutation hooks for ${tables.length} tables and ${customOperations.length} custom operations`, + language: 'typescript', + usage: [ + `// Import hooks`, + `import { ${hookExamples[0] || 'useModelQuery'} } from './hooks';`, + '', + `// Query hooks: useQuery, usesQuery`, + `// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation`, + '', + `const { data, isLoading } = ${hookExamples[0] || 'useModelQuery'}({`, + ` selection: { fields: { id: true } },`, + `});`, + ], + examples: [ + { + description: 'Query records', + code: [ + `const { data, isLoading } = ${hookExamples[0] || 'useModelQuery'}({`, + ' selection: { fields: { id: true } },', + '});', + ], + }, + ], + }, + referenceNames, + ), + }); + return files; } diff --git a/graphql/codegen/src/core/codegen/orm/docs-generator.ts b/graphql/codegen/src/core/codegen/orm/docs-generator.ts index 936c7b09a..fb2c05798 100644 --- a/graphql/codegen/src/core/codegen/orm/docs-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/docs-generator.ts @@ -3,6 +3,7 @@ import { toKebabCase } from 'komoji'; import type { CleanOperation, CleanTable } from '../../../types/schema'; import { buildSkillFile, + buildSkillReference, formatArgType, getEditableFields, getReadmeHeader, @@ -454,20 +455,23 @@ export function generateOrmSkills( targetName: string, ): GeneratedDocFile[] { const files: GeneratedDocFile[] = []; + const skillName = `orm-${targetName}`; + const referenceNames: string[] = []; + // Generate reference files for each table for (const table of tables) { const { singularName } = getTableNames(table); const pk = getPrimaryKeyInfo(table)[0]; const editableFields = getEditableFields(table); const modelName = lcFirst(singularName); - const tableKebab = toKebabCase(singularName); - const skillName = `orm-${targetName}-${tableKebab}`; + const refName = toKebabCase(singularName); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: singularName, description: table.description || `ORM operations for ${table.name} records`, language: 'typescript', usage: [ @@ -500,6 +504,7 @@ export function generateOrmSkills( }); } + // Generate reference files for custom operations for (const op of customOperations) { const accessor = op.kind === 'query' ? 'query' : 'mutation'; const callArgs = @@ -507,13 +512,13 @@ export function generateOrmSkills( ? `{ ${op.args.map((a) => `${a.name}: ''`).join(', ')} }` : ''; - const opKebab = toKebabCase(op.name); - const skillName = `orm-${targetName}-${opKebab}`; + const refName = toKebabCase(op.name); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: op.name, description: op.description || `Execute the ${op.name} ${op.kind}`, language: 'typescript', usage: [`db.${accessor}.${op.name}(${callArgs}).execute()`], @@ -527,5 +532,40 @@ export function generateOrmSkills( }); } + // Generate the overview SKILL.md + const tableNames = tables.map((t) => lcFirst(getTableNames(t).singularName)); + files.push({ + fileName: `${skillName}/SKILL.md`, + content: buildSkillFile( + { + name: skillName, + description: `ORM client for the ${targetName} API — provides typed CRUD operations for ${tables.length} tables and ${customOperations.length} custom operations`, + language: 'typescript', + usage: [ + `// Import the ORM client`, + `import { db } from './orm';`, + '', + `// Available models: ${tableNames.slice(0, 8).join(', ')}${tableNames.length > 8 ? ', ...' : ''}`, + `db..findMany({ select: { id: true } }).execute()`, + `db..findOne({ id: '', select: { id: true } }).execute()`, + `db..create({ data: { ... }, select: { id: true } }).execute()`, + `db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute()`, + `db..delete({ where: { id: '' } }).execute()`, + ], + examples: [ + { + description: 'Query records', + code: [ + `const items = await db.${tableNames[0] || 'model'}.findMany({`, + ' select: { id: true }', + '}).execute();', + ], + }, + ], + }, + referenceNames, + ), + }); + return files; } diff --git a/skills/hooks-admin/SKILL.md b/skills/hooks-admin/SKILL.md new file mode 100644 index 000000000..a41799d36 --- /dev/null +++ b/skills/hooks-admin/SKILL.md @@ -0,0 +1,84 @@ +--- +name: hooks-admin +description: React Query hooks for the admin API — provides typed query and mutation hooks for 32 tables and 13 custom operations +--- + +# hooks-admin + + + +React Query hooks for the admin API — provides typed query and mutation hooks for 32 tables and 13 custom operations + +## Usage + +```typescript +// Import hooks +import { useOrgGetManagersQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +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) +- [org-permission](references/org-permission.md) +- [app-level-requirement](references/app-level-requirement.md) +- [org-member](references/org-member.md) +- [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.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) +- [org-owner-grant](references/org-owner-grant.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [membership-type](references/membership-type.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [app-achievement](references/app-achievement.md) +- [app-step](references/app-step.md) +- [claimed-invite](references/claimed-invite.md) +- [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-limit](references/org-limit.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-membership-default](references/org-membership-default.md) +- [invite](references/invite.md) +- [app-level](references/app-level.md) +- [app-membership](references/app-membership.md) +- [org-membership](references/org-membership.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) +- [org-is-manager-of](references/org-is-manager-of.md) +- [steps-achieved](references/steps-achieved.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [steps-required](references/steps-required.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/skills/hooks-admin-app-achievement/SKILL.md b/skills/hooks-admin/references/app-achievement.md similarity index 83% rename from skills/hooks-admin-app-achievement/SKILL.md rename to skills/hooks-admin/references/app-achievement.md index 8be6be441..3a0751437 100644 --- a/skills/hooks-admin-app-achievement/SKILL.md +++ b/skills/hooks-admin/references/app-achievement.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-achievement -description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ---- - -# hooks-admin-app-achievement +# appAchievement diff --git a/skills/hooks-admin-app-admin-grant/SKILL.md b/skills/hooks-admin/references/app-admin-grant.md similarity index 88% rename from skills/hooks-admin-app-admin-grant/SKILL.md rename to skills/hooks-admin/references/app-admin-grant.md index 4be5d1aaa..dbfaacfe8 100644 --- a/skills/hooks-admin-app-admin-grant/SKILL.md +++ b/skills/hooks-admin/references/app-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-admin-grant -description: Records of admin role grants and revocations between members ---- - -# hooks-admin-app-admin-grant +# appAdminGrant diff --git a/skills/hooks-admin-app-grant/SKILL.md b/skills/hooks-admin/references/app-grant.md similarity index 88% rename from skills/hooks-admin-app-grant/SKILL.md rename to skills/hooks-admin/references/app-grant.md index 925ed0365..38cd132ec 100644 --- a/skills/hooks-admin-app-grant/SKILL.md +++ b/skills/hooks-admin/references/app-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# hooks-admin-app-grant +# appGrant diff --git a/skills/hooks-admin-app-level-requirement/SKILL.md b/skills/hooks-admin/references/app-level-requirement.md similarity index 88% rename from skills/hooks-admin-app-level-requirement/SKILL.md rename to skills/hooks-admin/references/app-level-requirement.md index f5d335ad5..876f64838 100644 --- a/skills/hooks-admin-app-level-requirement/SKILL.md +++ b/skills/hooks-admin/references/app-level-requirement.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-level-requirement -description: Defines the specific requirements that must be met to achieve a level ---- - -# hooks-admin-app-level-requirement +# appLevelRequirement diff --git a/skills/hooks-admin-app-level/SKILL.md b/skills/hooks-admin/references/app-level.md similarity index 88% rename from skills/hooks-admin-app-level/SKILL.md rename to skills/hooks-admin/references/app-level.md index b2fd67560..eb2989219 100644 --- a/skills/hooks-admin-app-level/SKILL.md +++ b/skills/hooks-admin/references/app-level.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-level -description: Defines available levels that users can achieve by completing requirements ---- - -# hooks-admin-app-level +# appLevel diff --git a/skills/hooks-admin-app-limit-default/SKILL.md b/skills/hooks-admin/references/app-limit-default.md similarity index 83% rename from skills/hooks-admin-app-limit-default/SKILL.md rename to skills/hooks-admin/references/app-limit-default.md index fd678d2ab..dc0a272af 100644 --- a/skills/hooks-admin-app-limit-default/SKILL.md +++ b/skills/hooks-admin/references/app-limit-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# hooks-admin-app-limit-default +# appLimitDefault diff --git a/skills/hooks-admin-app-limit/SKILL.md b/skills/hooks-admin/references/app-limit.md similarity index 87% rename from skills/hooks-admin-app-limit/SKILL.md rename to skills/hooks-admin/references/app-limit.md index 8c4fd50e9..17d5b20ed 100644 --- a/skills/hooks-admin-app-limit/SKILL.md +++ b/skills/hooks-admin/references/app-limit.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# hooks-admin-app-limit +# appLimit diff --git a/skills/hooks-admin-app-membership-default/SKILL.md b/skills/hooks-admin/references/app-membership-default.md similarity index 86% rename from skills/hooks-admin-app-membership-default/SKILL.md rename to skills/hooks-admin/references/app-membership-default.md index c7bbe0b3d..49de40fe1 100644 --- a/skills/hooks-admin-app-membership-default/SKILL.md +++ b/skills/hooks-admin/references/app-membership-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# hooks-admin-app-membership-default +# appMembershipDefault diff --git a/skills/hooks-admin-app-membership/SKILL.md b/skills/hooks-admin/references/app-membership.md similarity index 90% rename from skills/hooks-admin-app-membership/SKILL.md rename to skills/hooks-admin/references/app-membership.md index 0ea34b373..f0f2b9e9f 100644 --- a/skills/hooks-admin-app-membership/SKILL.md +++ b/skills/hooks-admin/references/app-membership.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# hooks-admin-app-membership +# appMembership diff --git a/skills/hooks-admin-app-owner-grant/SKILL.md b/skills/hooks-admin/references/app-owner-grant.md similarity index 88% rename from skills/hooks-admin-app-owner-grant/SKILL.md rename to skills/hooks-admin/references/app-owner-grant.md index 8ee9c4507..4ffbb08e3 100644 --- a/skills/hooks-admin-app-owner-grant/SKILL.md +++ b/skills/hooks-admin/references/app-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-owner-grant -description: Records of ownership transfers and grants between members ---- - -# hooks-admin-app-owner-grant +# appOwnerGrant diff --git a/skills/hooks-admin-app-permission-default/SKILL.md b/skills/hooks-admin/references/app-permission-default.md similarity index 84% rename from skills/hooks-admin-app-permission-default/SKILL.md rename to skills/hooks-admin/references/app-permission-default.md index a4a8a8f49..b4fa77c76 100644 --- a/skills/hooks-admin-app-permission-default/SKILL.md +++ b/skills/hooks-admin/references/app-permission-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# hooks-admin-app-permission-default +# appPermissionDefault diff --git a/skills/hooks-admin-app-permission/SKILL.md b/skills/hooks-admin/references/app-permission.md similarity index 85% rename from skills/hooks-admin-app-permission/SKILL.md rename to skills/hooks-admin/references/app-permission.md index 3a10711e5..3d015a2bc 100644 --- a/skills/hooks-admin-app-permission/SKILL.md +++ b/skills/hooks-admin/references/app-permission.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# hooks-admin-app-permission +# appPermission diff --git a/skills/hooks-admin-app-permissions-get-by-mask/SKILL.md b/skills/hooks-admin/references/app-permissions-get-by-mask.md similarity index 73% rename from skills/hooks-admin-app-permissions-get-by-mask/SKILL.md rename to skills/hooks-admin/references/app-permissions-get-by-mask.md index b1f63b1b6..36b60a157 100644 --- a/skills/hooks-admin-app-permissions-get-by-mask/SKILL.md +++ b/skills/hooks-admin/references/app-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-permissions-get-by-mask -description: Reads and enables pagination through a set of `AppPermission`. ---- - -# hooks-admin-app-permissions-get-by-mask +# appPermissionsGetByMask diff --git a/skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md b/skills/hooks-admin/references/app-permissions-get-mask-by-names.md similarity index 67% rename from skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md rename to skills/hooks-admin/references/app-permissions-get-mask-by-names.md index 171bda754..d7ae1ad22 100644 --- a/skills/hooks-admin-app-permissions-get-mask-by-names/SKILL.md +++ b/skills/hooks-admin/references/app-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-permissions-get-mask-by-names -description: React Query query hook for appPermissionsGetMaskByNames ---- - -# hooks-admin-app-permissions-get-mask-by-names +# appPermissionsGetMaskByNames diff --git a/skills/hooks-admin-app-permissions-get-mask/SKILL.md b/skills/hooks-admin/references/app-permissions-get-mask.md similarity index 68% rename from skills/hooks-admin-app-permissions-get-mask/SKILL.md rename to skills/hooks-admin/references/app-permissions-get-mask.md index 895d8e1ff..291cecff5 100644 --- a/skills/hooks-admin-app-permissions-get-mask/SKILL.md +++ b/skills/hooks-admin/references/app-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-permissions-get-mask -description: React Query query hook for appPermissionsGetMask ---- - -# hooks-admin-app-permissions-get-mask +# appPermissionsGetMask diff --git a/skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md b/skills/hooks-admin/references/app-permissions-get-padded-mask.md similarity index 67% rename from skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md rename to skills/hooks-admin/references/app-permissions-get-padded-mask.md index 3b48f818b..fa12f4bda 100644 --- a/skills/hooks-admin-app-permissions-get-padded-mask/SKILL.md +++ b/skills/hooks-admin/references/app-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-permissions-get-padded-mask -description: React Query query hook for appPermissionsGetPaddedMask ---- - -# hooks-admin-app-permissions-get-padded-mask +# appPermissionsGetPaddedMask diff --git a/skills/hooks-admin-app-step/SKILL.md b/skills/hooks-admin/references/app-step.md similarity index 85% rename from skills/hooks-admin-app-step/SKILL.md rename to skills/hooks-admin/references/app-step.md index 38f40f148..dff4c8520 100644 --- a/skills/hooks-admin-app-step/SKILL.md +++ b/skills/hooks-admin/references/app-step.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-app-step -description: Log of individual user actions toward level requirements; every single step ever taken is recorded here ---- - -# hooks-admin-app-step +# appStep diff --git a/skills/hooks-admin-claimed-invite/SKILL.md b/skills/hooks-admin/references/claimed-invite.md similarity index 87% rename from skills/hooks-admin-claimed-invite/SKILL.md rename to skills/hooks-admin/references/claimed-invite.md index a9f7df19b..7b3be74dd 100644 --- a/skills/hooks-admin-claimed-invite/SKILL.md +++ b/skills/hooks-admin/references/claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# hooks-admin-claimed-invite +# claimedInvite diff --git a/skills/hooks-admin-invite/SKILL.md b/skills/hooks-admin/references/invite.md similarity index 89% rename from skills/hooks-admin-invite/SKILL.md rename to skills/hooks-admin/references/invite.md index 4400230de..3d968b414 100644 --- a/skills/hooks-admin-invite/SKILL.md +++ b/skills/hooks-admin/references/invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# hooks-admin-invite +# invite diff --git a/skills/hooks-admin-membership-type/SKILL.md b/skills/hooks-admin/references/membership-type.md similarity index 84% rename from skills/hooks-admin-membership-type/SKILL.md rename to skills/hooks-admin/references/membership-type.md index 410de8988..d603f30be 100644 --- a/skills/hooks-admin-membership-type/SKILL.md +++ b/skills/hooks-admin/references/membership-type.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-membership-type -description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ---- - -# hooks-admin-membership-type +# membershipType diff --git a/skills/hooks-admin-org-admin-grant/SKILL.md b/skills/hooks-admin/references/org-admin-grant.md similarity index 88% rename from skills/hooks-admin-org-admin-grant/SKILL.md rename to skills/hooks-admin/references/org-admin-grant.md index c481f40c3..0c33888b4 100644 --- a/skills/hooks-admin-org-admin-grant/SKILL.md +++ b/skills/hooks-admin/references/org-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-admin-grant -description: Records of admin role grants and revocations between members ---- - -# hooks-admin-org-admin-grant +# orgAdminGrant diff --git a/skills/hooks-admin-org-chart-edge-grant/SKILL.md b/skills/hooks-admin/references/org-chart-edge-grant.md similarity index 87% rename from skills/hooks-admin-org-chart-edge-grant/SKILL.md rename to skills/hooks-admin/references/org-chart-edge-grant.md index 4b8d96259..89e9aa996 100644 --- a/skills/hooks-admin-org-chart-edge-grant/SKILL.md +++ b/skills/hooks-admin/references/org-chart-edge-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-chart-edge-grant -description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table ---- - -# hooks-admin-org-chart-edge-grant +# orgChartEdgeGrant diff --git a/skills/hooks-admin-org-chart-edge/SKILL.md b/skills/hooks-admin/references/org-chart-edge.md similarity index 87% rename from skills/hooks-admin-org-chart-edge/SKILL.md rename to skills/hooks-admin/references/org-chart-edge.md index 6769b47b8..c2c1e4e01 100644 --- a/skills/hooks-admin-org-chart-edge/SKILL.md +++ b/skills/hooks-admin/references/org-chart-edge.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-chart-edge -description: Organizational chart edges defining parent-child reporting relationships between members within an entity ---- - -# hooks-admin-org-chart-edge +# orgChartEdge diff --git a/skills/hooks-admin-org-claimed-invite/SKILL.md b/skills/hooks-admin/references/org-claimed-invite.md similarity index 87% rename from skills/hooks-admin-org-claimed-invite/SKILL.md rename to skills/hooks-admin/references/org-claimed-invite.md index f9426c31a..a03250a6b 100644 --- a/skills/hooks-admin-org-claimed-invite/SKILL.md +++ b/skills/hooks-admin/references/org-claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# hooks-admin-org-claimed-invite +# orgClaimedInvite diff --git a/skills/hooks-admin-org-get-managers-record/SKILL.md b/skills/hooks-admin/references/org-get-managers-record.md similarity index 80% rename from skills/hooks-admin-org-get-managers-record/SKILL.md rename to skills/hooks-admin/references/org-get-managers-record.md index 92aa513b7..26045a477 100644 --- a/skills/hooks-admin-org-get-managers-record/SKILL.md +++ b/skills/hooks-admin/references/org-get-managers-record.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-get-managers-record -description: React Query hooks for OrgGetManagersRecord data operations ---- - -# hooks-admin-org-get-managers-record +# orgGetManagersRecord diff --git a/skills/hooks-admin-org-get-subordinates-record/SKILL.md b/skills/hooks-admin/references/org-get-subordinates-record.md similarity index 80% rename from skills/hooks-admin-org-get-subordinates-record/SKILL.md rename to skills/hooks-admin/references/org-get-subordinates-record.md index 001b13dbd..bd2be4581 100644 --- a/skills/hooks-admin-org-get-subordinates-record/SKILL.md +++ b/skills/hooks-admin/references/org-get-subordinates-record.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-get-subordinates-record -description: React Query hooks for OrgGetSubordinatesRecord data operations ---- - -# hooks-admin-org-get-subordinates-record +# orgGetSubordinatesRecord diff --git a/skills/hooks-admin-org-grant/SKILL.md b/skills/hooks-admin/references/org-grant.md similarity index 88% rename from skills/hooks-admin-org-grant/SKILL.md rename to skills/hooks-admin/references/org-grant.md index cf9435057..97c64dfd3 100644 --- a/skills/hooks-admin-org-grant/SKILL.md +++ b/skills/hooks-admin/references/org-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# hooks-admin-org-grant +# orgGrant diff --git a/skills/hooks-admin-org-invite/SKILL.md b/skills/hooks-admin/references/org-invite.md similarity index 90% rename from skills/hooks-admin-org-invite/SKILL.md rename to skills/hooks-admin/references/org-invite.md index ddaaa4d1b..7f42032c5 100644 --- a/skills/hooks-admin-org-invite/SKILL.md +++ b/skills/hooks-admin/references/org-invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# hooks-admin-org-invite +# orgInvite diff --git a/skills/hooks-admin-org-is-manager-of/SKILL.md b/skills/hooks-admin/references/org-is-manager-of.md similarity index 77% rename from skills/hooks-admin-org-is-manager-of/SKILL.md rename to skills/hooks-admin/references/org-is-manager-of.md index c59eb164b..3832c5a99 100644 --- a/skills/hooks-admin-org-is-manager-of/SKILL.md +++ b/skills/hooks-admin/references/org-is-manager-of.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-is-manager-of -description: React Query query hook for orgIsManagerOf ---- - -# hooks-admin-org-is-manager-of +# orgIsManagerOf diff --git a/skills/hooks-admin-org-limit-default/SKILL.md b/skills/hooks-admin/references/org-limit-default.md similarity index 83% rename from skills/hooks-admin-org-limit-default/SKILL.md rename to skills/hooks-admin/references/org-limit-default.md index 884aacc41..0a41c4449 100644 --- a/skills/hooks-admin-org-limit-default/SKILL.md +++ b/skills/hooks-admin/references/org-limit-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# hooks-admin-org-limit-default +# orgLimitDefault diff --git a/skills/hooks-admin-org-limit/SKILL.md b/skills/hooks-admin/references/org-limit.md similarity index 87% rename from skills/hooks-admin-org-limit/SKILL.md rename to skills/hooks-admin/references/org-limit.md index bbc7c04d7..0bcd78e02 100644 --- a/skills/hooks-admin-org-limit/SKILL.md +++ b/skills/hooks-admin/references/org-limit.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# hooks-admin-org-limit +# orgLimit diff --git a/skills/hooks-admin-org-member/SKILL.md b/skills/hooks-admin/references/org-member.md similarity index 85% rename from skills/hooks-admin-org-member/SKILL.md rename to skills/hooks-admin/references/org-member.md index c1c6d38de..76db77752 100644 --- a/skills/hooks-admin-org-member/SKILL.md +++ b/skills/hooks-admin/references/org-member.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-member -description: Simplified view of active members in an entity, used for listing who belongs to an org or group ---- - -# hooks-admin-org-member +# orgMember diff --git a/skills/hooks-admin-org-membership-default/SKILL.md b/skills/hooks-admin/references/org-membership-default.md similarity index 88% rename from skills/hooks-admin-org-membership-default/SKILL.md rename to skills/hooks-admin/references/org-membership-default.md index 43d5f63de..a6749380d 100644 --- a/skills/hooks-admin-org-membership-default/SKILL.md +++ b/skills/hooks-admin/references/org-membership-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# hooks-admin-org-membership-default +# orgMembershipDefault diff --git a/skills/hooks-admin-org-membership/SKILL.md b/skills/hooks-admin/references/org-membership.md similarity index 90% rename from skills/hooks-admin-org-membership/SKILL.md rename to skills/hooks-admin/references/org-membership.md index 377d0bd08..b31702606 100644 --- a/skills/hooks-admin-org-membership/SKILL.md +++ b/skills/hooks-admin/references/org-membership.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# hooks-admin-org-membership +# orgMembership diff --git a/skills/hooks-admin-org-owner-grant/SKILL.md b/skills/hooks-admin/references/org-owner-grant.md similarity index 88% rename from skills/hooks-admin-org-owner-grant/SKILL.md rename to skills/hooks-admin/references/org-owner-grant.md index 00198b9b4..95febd1ff 100644 --- a/skills/hooks-admin-org-owner-grant/SKILL.md +++ b/skills/hooks-admin/references/org-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-owner-grant -description: Records of ownership transfers and grants between members ---- - -# hooks-admin-org-owner-grant +# orgOwnerGrant diff --git a/skills/hooks-admin-org-permission-default/SKILL.md b/skills/hooks-admin/references/org-permission-default.md similarity index 85% rename from skills/hooks-admin-org-permission-default/SKILL.md rename to skills/hooks-admin/references/org-permission-default.md index 9c2cb1940..0db4e9538 100644 --- a/skills/hooks-admin-org-permission-default/SKILL.md +++ b/skills/hooks-admin/references/org-permission-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# hooks-admin-org-permission-default +# orgPermissionDefault diff --git a/skills/hooks-admin-org-permission/SKILL.md b/skills/hooks-admin/references/org-permission.md similarity index 85% rename from skills/hooks-admin-org-permission/SKILL.md rename to skills/hooks-admin/references/org-permission.md index 43207127e..fed780e55 100644 --- a/skills/hooks-admin-org-permission/SKILL.md +++ b/skills/hooks-admin/references/org-permission.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# hooks-admin-org-permission +# orgPermission diff --git a/skills/hooks-admin-org-permissions-get-by-mask/SKILL.md b/skills/hooks-admin/references/org-permissions-get-by-mask.md similarity index 73% rename from skills/hooks-admin-org-permissions-get-by-mask/SKILL.md rename to skills/hooks-admin/references/org-permissions-get-by-mask.md index cc1d6e149..91a602577 100644 --- a/skills/hooks-admin-org-permissions-get-by-mask/SKILL.md +++ b/skills/hooks-admin/references/org-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-permissions-get-by-mask -description: Reads and enables pagination through a set of `OrgPermission`. ---- - -# hooks-admin-org-permissions-get-by-mask +# orgPermissionsGetByMask diff --git a/skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md b/skills/hooks-admin/references/org-permissions-get-mask-by-names.md similarity index 67% rename from skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md rename to skills/hooks-admin/references/org-permissions-get-mask-by-names.md index 93eb2a652..d2652adfd 100644 --- a/skills/hooks-admin-org-permissions-get-mask-by-names/SKILL.md +++ b/skills/hooks-admin/references/org-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-permissions-get-mask-by-names -description: React Query query hook for orgPermissionsGetMaskByNames ---- - -# hooks-admin-org-permissions-get-mask-by-names +# orgPermissionsGetMaskByNames diff --git a/skills/hooks-admin-org-permissions-get-mask/SKILL.md b/skills/hooks-admin/references/org-permissions-get-mask.md similarity index 68% rename from skills/hooks-admin-org-permissions-get-mask/SKILL.md rename to skills/hooks-admin/references/org-permissions-get-mask.md index 5798c0f0c..75dc58097 100644 --- a/skills/hooks-admin-org-permissions-get-mask/SKILL.md +++ b/skills/hooks-admin/references/org-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-permissions-get-mask -description: React Query query hook for orgPermissionsGetMask ---- - -# hooks-admin-org-permissions-get-mask +# orgPermissionsGetMask diff --git a/skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md b/skills/hooks-admin/references/org-permissions-get-padded-mask.md similarity index 67% rename from skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md rename to skills/hooks-admin/references/org-permissions-get-padded-mask.md index f2475abfc..a23bbbf76 100644 --- a/skills/hooks-admin-org-permissions-get-padded-mask/SKILL.md +++ b/skills/hooks-admin/references/org-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-org-permissions-get-padded-mask -description: React Query query hook for orgPermissionsGetPaddedMask ---- - -# hooks-admin-org-permissions-get-padded-mask +# orgPermissionsGetPaddedMask diff --git a/skills/hooks-admin-steps-achieved/SKILL.md b/skills/hooks-admin/references/steps-achieved.md similarity index 73% rename from skills/hooks-admin-steps-achieved/SKILL.md rename to skills/hooks-admin/references/steps-achieved.md index fe7b17c8e..cf0a84d43 100644 --- a/skills/hooks-admin-steps-achieved/SKILL.md +++ b/skills/hooks-admin/references/steps-achieved.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-steps-achieved -description: React Query query hook for stepsAchieved ---- - -# hooks-admin-steps-achieved +# stepsAchieved diff --git a/skills/hooks-admin-steps-required/SKILL.md b/skills/hooks-admin/references/steps-required.md similarity index 76% rename from skills/hooks-admin-steps-required/SKILL.md rename to skills/hooks-admin/references/steps-required.md index 3919a7314..e50844b6b 100644 --- a/skills/hooks-admin-steps-required/SKILL.md +++ b/skills/hooks-admin/references/steps-required.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-steps-required -description: Reads and enables pagination through a set of `AppLevelRequirement`. ---- - -# hooks-admin-steps-required +# stepsRequired diff --git a/skills/hooks-admin-submit-invite-code/SKILL.md b/skills/hooks-admin/references/submit-invite-code.md similarity index 72% rename from skills/hooks-admin-submit-invite-code/SKILL.md rename to skills/hooks-admin/references/submit-invite-code.md index 7d3a3484c..e774b7aba 100644 --- a/skills/hooks-admin-submit-invite-code/SKILL.md +++ b/skills/hooks-admin/references/submit-invite-code.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-submit-invite-code -description: React Query mutation hook for submitInviteCode ---- - -# hooks-admin-submit-invite-code +# submitInviteCode diff --git a/skills/hooks-admin-submit-org-invite-code/SKILL.md b/skills/hooks-admin/references/submit-org-invite-code.md similarity index 72% rename from skills/hooks-admin-submit-org-invite-code/SKILL.md rename to skills/hooks-admin/references/submit-org-invite-code.md index f971e5345..4a70f698f 100644 --- a/skills/hooks-admin-submit-org-invite-code/SKILL.md +++ b/skills/hooks-admin/references/submit-org-invite-code.md @@ -1,9 +1,4 @@ ---- -name: hooks-admin-submit-org-invite-code -description: React Query mutation hook for submitOrgInviteCode ---- - -# hooks-admin-submit-org-invite-code +# submitOrgInviteCode diff --git a/skills/hooks-auth/SKILL.md b/skills/hooks-auth/SKILL.md new file mode 100644 index 000000000..32030190d --- /dev/null +++ b/skills/hooks-auth/SKILL.md @@ -0,0 +1,66 @@ +--- +name: hooks-auth +description: React Query hooks for the auth API — provides typed query and mutation hooks for 7 tables and 20 custom operations +--- + +# hooks-auth + + + +React Query hooks for the auth API — provides typed query and mutation hooks for 7 tables and 20 custom operations + +## Usage + +```typescript +// Import hooks +import { useRoleTypesQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [role-type](references/role-type.md) +- [crypto-address](references/crypto-address.md) +- [phone-number](references/phone-number.md) +- [connected-account](references/connected-account.md) +- [audit-log](references/audit-log.md) +- [email](references/email.md) +- [user](references/user.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.md) +- [current-user-id](references/current-user-id.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [one-time-token](references/one-time-token.md) +- [extend-token-expires](references/extend-token-expires.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/hooks-auth-audit-log/SKILL.md b/skills/hooks-auth/references/audit-log.md similarity index 88% rename from skills/hooks-auth-audit-log/SKILL.md rename to skills/hooks-auth/references/audit-log.md index ed4407e45..2510fbb60 100644 --- a/skills/hooks-auth-audit-log/SKILL.md +++ b/skills/hooks-auth/references/audit-log.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-audit-log -description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ---- - -# hooks-auth-audit-log +# auditLog diff --git a/skills/hooks-auth-check-password/SKILL.md b/skills/hooks-auth/references/check-password.md similarity index 74% rename from skills/hooks-auth-check-password/SKILL.md rename to skills/hooks-auth/references/check-password.md index 6e2e3a6ce..d288b0d59 100644 --- a/skills/hooks-auth-check-password/SKILL.md +++ b/skills/hooks-auth/references/check-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-check-password -description: React Query mutation hook for checkPassword ---- - -# hooks-auth-check-password +# checkPassword diff --git a/skills/hooks-auth-confirm-delete-account/SKILL.md b/skills/hooks-auth/references/confirm-delete-account.md similarity index 72% rename from skills/hooks-auth-confirm-delete-account/SKILL.md rename to skills/hooks-auth/references/confirm-delete-account.md index 8fbc0aad4..2cbaddf1e 100644 --- a/skills/hooks-auth-confirm-delete-account/SKILL.md +++ b/skills/hooks-auth/references/confirm-delete-account.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-confirm-delete-account -description: React Query mutation hook for confirmDeleteAccount ---- - -# hooks-auth-confirm-delete-account +# confirmDeleteAccount diff --git a/skills/hooks-auth-connected-account/SKILL.md b/skills/hooks-auth/references/connected-account.md similarity index 88% rename from skills/hooks-auth-connected-account/SKILL.md rename to skills/hooks-auth/references/connected-account.md index 98efae74c..460e81e5b 100644 --- a/skills/hooks-auth-connected-account/SKILL.md +++ b/skills/hooks-auth/references/connected-account.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-connected-account -description: OAuth and social login connections linking external service accounts to users ---- - -# hooks-auth-connected-account +# connectedAccount diff --git a/skills/hooks-auth-crypto-address/SKILL.md b/skills/hooks-auth/references/crypto-address.md similarity index 86% rename from skills/hooks-auth-crypto-address/SKILL.md rename to skills/hooks-auth/references/crypto-address.md index 549cdf080..99c41ff1e 100644 --- a/skills/hooks-auth-crypto-address/SKILL.md +++ b/skills/hooks-auth/references/crypto-address.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-crypto-address -description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ---- - -# hooks-auth-crypto-address +# cryptoAddress diff --git a/skills/hooks-auth-current-ip-address/SKILL.md b/skills/hooks-auth/references/current-ip-address.md similarity index 67% rename from skills/hooks-auth-current-ip-address/SKILL.md rename to skills/hooks-auth/references/current-ip-address.md index 805e6dad6..ddb702e16 100644 --- a/skills/hooks-auth-current-ip-address/SKILL.md +++ b/skills/hooks-auth/references/current-ip-address.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-current-ip-address -description: React Query query hook for currentIpAddress ---- - -# hooks-auth-current-ip-address +# currentIpAddress diff --git a/skills/hooks-auth-current-user-agent/SKILL.md b/skills/hooks-auth/references/current-user-agent.md similarity index 67% rename from skills/hooks-auth-current-user-agent/SKILL.md rename to skills/hooks-auth/references/current-user-agent.md index c9cc046b4..3bc483ff7 100644 --- a/skills/hooks-auth-current-user-agent/SKILL.md +++ b/skills/hooks-auth/references/current-user-agent.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-current-user-agent -description: React Query query hook for currentUserAgent ---- - -# hooks-auth-current-user-agent +# currentUserAgent diff --git a/skills/hooks-auth-current-user-id/SKILL.md b/skills/hooks-auth/references/current-user-id.md similarity index 68% rename from skills/hooks-auth-current-user-id/SKILL.md rename to skills/hooks-auth/references/current-user-id.md index fabc307ba..0dcf21a7f 100644 --- a/skills/hooks-auth-current-user-id/SKILL.md +++ b/skills/hooks-auth/references/current-user-id.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-current-user-id -description: React Query query hook for currentUserId ---- - -# hooks-auth-current-user-id +# currentUserId diff --git a/skills/hooks-auth-current-user/SKILL.md b/skills/hooks-auth/references/current-user.md similarity index 68% rename from skills/hooks-auth-current-user/SKILL.md rename to skills/hooks-auth/references/current-user.md index b8b653f72..3411f5951 100644 --- a/skills/hooks-auth-current-user/SKILL.md +++ b/skills/hooks-auth/references/current-user.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-current-user -description: React Query query hook for currentUser ---- - -# hooks-auth-current-user +# currentUser diff --git a/skills/hooks-auth-email/SKILL.md b/skills/hooks-auth/references/email.md similarity index 89% rename from skills/hooks-auth-email/SKILL.md rename to skills/hooks-auth/references/email.md index 8c3dfac9e..4bf0c0eab 100644 --- a/skills/hooks-auth-email/SKILL.md +++ b/skills/hooks-auth/references/email.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-email -description: User email addresses with verification and primary-email management ---- - -# hooks-auth-email +# email diff --git a/skills/hooks-auth-extend-token-expires/SKILL.md b/skills/hooks-auth/references/extend-token-expires.md similarity index 72% rename from skills/hooks-auth-extend-token-expires/SKILL.md rename to skills/hooks-auth/references/extend-token-expires.md index f461e5be3..ecbad8c6a 100644 --- a/skills/hooks-auth-extend-token-expires/SKILL.md +++ b/skills/hooks-auth/references/extend-token-expires.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-extend-token-expires -description: React Query mutation hook for extendTokenExpires ---- - -# hooks-auth-extend-token-expires +# extendTokenExpires diff --git a/skills/hooks-auth-forgot-password/SKILL.md b/skills/hooks-auth/references/forgot-password.md similarity index 73% rename from skills/hooks-auth-forgot-password/SKILL.md rename to skills/hooks-auth/references/forgot-password.md index 3ac4d83a5..04d19984b 100644 --- a/skills/hooks-auth-forgot-password/SKILL.md +++ b/skills/hooks-auth/references/forgot-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-forgot-password -description: React Query mutation hook for forgotPassword ---- - -# hooks-auth-forgot-password +# forgotPassword diff --git a/skills/hooks-auth-one-time-token/SKILL.md b/skills/hooks-auth/references/one-time-token.md similarity index 74% rename from skills/hooks-auth-one-time-token/SKILL.md rename to skills/hooks-auth/references/one-time-token.md index c55c8ed22..1b5ddf37f 100644 --- a/skills/hooks-auth-one-time-token/SKILL.md +++ b/skills/hooks-auth/references/one-time-token.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-one-time-token -description: React Query mutation hook for oneTimeToken ---- - -# hooks-auth-one-time-token +# oneTimeToken diff --git a/skills/hooks-auth-phone-number/SKILL.md b/skills/hooks-auth/references/phone-number.md similarity index 88% rename from skills/hooks-auth-phone-number/SKILL.md rename to skills/hooks-auth/references/phone-number.md index 4d24983ba..0ce6e26c1 100644 --- a/skills/hooks-auth-phone-number/SKILL.md +++ b/skills/hooks-auth/references/phone-number.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-phone-number -description: User phone numbers with country code, verification, and primary-number management ---- - -# hooks-auth-phone-number +# phoneNumber diff --git a/skills/hooks-auth-reset-password/SKILL.md b/skills/hooks-auth/references/reset-password.md similarity index 74% rename from skills/hooks-auth-reset-password/SKILL.md rename to skills/hooks-auth/references/reset-password.md index cf2530bd4..490bccf5d 100644 --- a/skills/hooks-auth-reset-password/SKILL.md +++ b/skills/hooks-auth/references/reset-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-reset-password -description: React Query mutation hook for resetPassword ---- - -# hooks-auth-reset-password +# resetPassword diff --git a/skills/hooks-auth-role-type/SKILL.md b/skills/hooks-auth/references/role-type.md similarity index 86% rename from skills/hooks-auth-role-type/SKILL.md rename to skills/hooks-auth/references/role-type.md index 0e983ae39..8ba5dde40 100644 --- a/skills/hooks-auth-role-type/SKILL.md +++ b/skills/hooks-auth/references/role-type.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-role-type -description: React Query hooks for RoleType data operations ---- - -# hooks-auth-role-type +# roleType diff --git a/skills/hooks-auth-send-account-deletion-email/SKILL.md b/skills/hooks-auth/references/send-account-deletion-email.md similarity index 71% rename from skills/hooks-auth-send-account-deletion-email/SKILL.md rename to skills/hooks-auth/references/send-account-deletion-email.md index 772a19483..6d43414a2 100644 --- a/skills/hooks-auth-send-account-deletion-email/SKILL.md +++ b/skills/hooks-auth/references/send-account-deletion-email.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-send-account-deletion-email -description: React Query mutation hook for sendAccountDeletionEmail ---- - -# hooks-auth-send-account-deletion-email +# sendAccountDeletionEmail diff --git a/skills/hooks-auth-send-verification-email/SKILL.md b/skills/hooks-auth/references/send-verification-email.md similarity index 72% rename from skills/hooks-auth-send-verification-email/SKILL.md rename to skills/hooks-auth/references/send-verification-email.md index 4a0ea5851..36e6216fd 100644 --- a/skills/hooks-auth-send-verification-email/SKILL.md +++ b/skills/hooks-auth/references/send-verification-email.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-send-verification-email -description: React Query mutation hook for sendVerificationEmail ---- - -# hooks-auth-send-verification-email +# sendVerificationEmail diff --git a/skills/hooks-auth-set-password/SKILL.md b/skills/hooks-auth/references/set-password.md similarity index 74% rename from skills/hooks-auth-set-password/SKILL.md rename to skills/hooks-auth/references/set-password.md index 3bd39a04b..7c43ee11f 100644 --- a/skills/hooks-auth-set-password/SKILL.md +++ b/skills/hooks-auth/references/set-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-set-password -description: React Query mutation hook for setPassword ---- - -# hooks-auth-set-password +# setPassword diff --git a/skills/hooks-auth-sign-in-one-time-token/SKILL.md b/skills/hooks-auth/references/sign-in-one-time-token.md similarity index 72% rename from skills/hooks-auth-sign-in-one-time-token/SKILL.md rename to skills/hooks-auth/references/sign-in-one-time-token.md index e8e9d7eb7..8f7d4515c 100644 --- a/skills/hooks-auth-sign-in-one-time-token/SKILL.md +++ b/skills/hooks-auth/references/sign-in-one-time-token.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-sign-in-one-time-token -description: React Query mutation hook for signInOneTimeToken ---- - -# hooks-auth-sign-in-one-time-token +# signInOneTimeToken diff --git a/skills/hooks-auth-sign-in/SKILL.md b/skills/hooks-auth/references/sign-in.md similarity index 76% rename from skills/hooks-auth-sign-in/SKILL.md rename to skills/hooks-auth/references/sign-in.md index 843007613..bdc2cec2c 100644 --- a/skills/hooks-auth-sign-in/SKILL.md +++ b/skills/hooks-auth/references/sign-in.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-sign-in -description: React Query mutation hook for signIn ---- - -# hooks-auth-sign-in +# signIn diff --git a/skills/hooks-auth-sign-out/SKILL.md b/skills/hooks-auth/references/sign-out.md similarity index 75% rename from skills/hooks-auth-sign-out/SKILL.md rename to skills/hooks-auth/references/sign-out.md index 546566eb6..e36cac158 100644 --- a/skills/hooks-auth-sign-out/SKILL.md +++ b/skills/hooks-auth/references/sign-out.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-sign-out -description: React Query mutation hook for signOut ---- - -# hooks-auth-sign-out +# signOut diff --git a/skills/hooks-auth-sign-up/SKILL.md b/skills/hooks-auth/references/sign-up.md similarity index 76% rename from skills/hooks-auth-sign-up/SKILL.md rename to skills/hooks-auth/references/sign-up.md index d1a561df3..ba93ac7ed 100644 --- a/skills/hooks-auth-sign-up/SKILL.md +++ b/skills/hooks-auth/references/sign-up.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-sign-up -description: React Query mutation hook for signUp ---- - -# hooks-auth-sign-up +# signUp diff --git a/skills/hooks-auth-user/SKILL.md b/skills/hooks-auth/references/user.md similarity index 92% rename from skills/hooks-auth-user/SKILL.md rename to skills/hooks-auth/references/user.md index ef164721b..9d3a8cf6b 100644 --- a/skills/hooks-auth-user/SKILL.md +++ b/skills/hooks-auth/references/user.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-user -description: React Query hooks for User data operations ---- - -# hooks-auth-user +# user diff --git a/skills/hooks-auth-verify-email/SKILL.md b/skills/hooks-auth/references/verify-email.md similarity index 74% rename from skills/hooks-auth-verify-email/SKILL.md rename to skills/hooks-auth/references/verify-email.md index 0a02f16b9..14a317763 100644 --- a/skills/hooks-auth-verify-email/SKILL.md +++ b/skills/hooks-auth/references/verify-email.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-verify-email -description: React Query mutation hook for verifyEmail ---- - -# hooks-auth-verify-email +# verifyEmail diff --git a/skills/hooks-auth-verify-password/SKILL.md b/skills/hooks-auth/references/verify-password.md similarity index 73% rename from skills/hooks-auth-verify-password/SKILL.md rename to skills/hooks-auth/references/verify-password.md index d89211222..09e407a2b 100644 --- a/skills/hooks-auth-verify-password/SKILL.md +++ b/skills/hooks-auth/references/verify-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-verify-password -description: React Query mutation hook for verifyPassword ---- - -# hooks-auth-verify-password +# verifyPassword diff --git a/skills/hooks-auth-verify-totp/SKILL.md b/skills/hooks-auth/references/verify-totp.md similarity index 74% rename from skills/hooks-auth-verify-totp/SKILL.md rename to skills/hooks-auth/references/verify-totp.md index f3c1f41dc..b5654b525 100644 --- a/skills/hooks-auth-verify-totp/SKILL.md +++ b/skills/hooks-auth/references/verify-totp.md @@ -1,9 +1,4 @@ ---- -name: hooks-auth-verify-totp -description: React Query mutation hook for verifyTotp ---- - -# hooks-auth-verify-totp +# verifyTotp diff --git a/skills/hooks-objects/SKILL.md b/skills/hooks-objects/SKILL.md new file mode 100644 index 000000000..f7bf1d251 --- /dev/null +++ b/skills/hooks-objects/SKILL.md @@ -0,0 +1,56 @@ +--- +name: hooks-objects +description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 12 custom operations +--- + +# hooks-objects + + + +React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 12 custom operations + +## Usage + +```typescript +// Import hooks +import { useGetAllQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [get-all-record](references/get-all-record.md) +- [object](references/object.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [commit](references/commit.md) +- [rev-parse](references/rev-parse.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) diff --git a/skills/hooks-public-commit/SKILL.md b/skills/hooks-objects/references/commit.md similarity index 91% rename from skills/hooks-public-commit/SKILL.md rename to skills/hooks-objects/references/commit.md index ac6275cf2..6c4d4710e 100644 --- a/skills/hooks-public-commit/SKILL.md +++ b/skills/hooks-objects/references/commit.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-commit -description: A commit records changes to the repository. ---- - -# hooks-public-commit +# commit diff --git a/skills/hooks-public-freeze-objects/SKILL.md b/skills/hooks-objects/references/freeze-objects.md similarity index 73% rename from skills/hooks-public-freeze-objects/SKILL.md rename to skills/hooks-objects/references/freeze-objects.md index 66460f39a..15d3b5afc 100644 --- a/skills/hooks-public-freeze-objects/SKILL.md +++ b/skills/hooks-objects/references/freeze-objects.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-freeze-objects -description: React Query mutation hook for freezeObjects ---- - -# hooks-public-freeze-objects +# freezeObjects diff --git a/skills/hooks-public-get-all-objects-from-root/SKILL.md b/skills/hooks-objects/references/get-all-objects-from-root.md similarity index 75% rename from skills/hooks-public-get-all-objects-from-root/SKILL.md rename to skills/hooks-objects/references/get-all-objects-from-root.md index b74e566ba..dea9b354e 100644 --- a/skills/hooks-public-get-all-objects-from-root/SKILL.md +++ b/skills/hooks-objects/references/get-all-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-get-all-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# hooks-public-get-all-objects-from-root +# getAllObjectsFromRoot diff --git a/skills/hooks-public-get-all-record/SKILL.md b/skills/hooks-objects/references/get-all-record.md similarity index 81% rename from skills/hooks-public-get-all-record/SKILL.md rename to skills/hooks-objects/references/get-all-record.md index 5419f7cb4..6251812bb 100644 --- a/skills/hooks-public-get-all-record/SKILL.md +++ b/skills/hooks-objects/references/get-all-record.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-get-all-record -description: React Query hooks for GetAllRecord data operations ---- - -# hooks-public-get-all-record +# getAllRecord diff --git a/skills/hooks-public-get-object-at-path/SKILL.md b/skills/hooks-objects/references/get-object-at-path.md similarity index 75% rename from skills/hooks-public-get-object-at-path/SKILL.md rename to skills/hooks-objects/references/get-object-at-path.md index 1c05dbdb1..7f8aeed00 100644 --- a/skills/hooks-public-get-object-at-path/SKILL.md +++ b/skills/hooks-objects/references/get-object-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-get-object-at-path -description: React Query query hook for getObjectAtPath ---- - -# hooks-public-get-object-at-path +# getObjectAtPath diff --git a/skills/hooks-public-get-path-objects-from-root/SKILL.md b/skills/hooks-objects/references/get-path-objects-from-root.md similarity index 76% rename from skills/hooks-public-get-path-objects-from-root/SKILL.md rename to skills/hooks-objects/references/get-path-objects-from-root.md index 5b205e7ae..a453967c7 100644 --- a/skills/hooks-public-get-path-objects-from-root/SKILL.md +++ b/skills/hooks-objects/references/get-path-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-get-path-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# hooks-public-get-path-objects-from-root +# getPathObjectsFromRoot diff --git a/skills/hooks-public-init-empty-repo/SKILL.md b/skills/hooks-objects/references/init-empty-repo.md similarity index 73% rename from skills/hooks-public-init-empty-repo/SKILL.md rename to skills/hooks-objects/references/init-empty-repo.md index a2e93fdea..08928b0f4 100644 --- a/skills/hooks-public-init-empty-repo/SKILL.md +++ b/skills/hooks-objects/references/init-empty-repo.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-init-empty-repo -description: React Query mutation hook for initEmptyRepo ---- - -# hooks-public-init-empty-repo +# initEmptyRepo diff --git a/skills/hooks-public-insert-node-at-path/SKILL.md b/skills/hooks-objects/references/insert-node-at-path.md similarity index 72% rename from skills/hooks-public-insert-node-at-path/SKILL.md rename to skills/hooks-objects/references/insert-node-at-path.md index 00cd48174..4b19bea31 100644 --- a/skills/hooks-public-insert-node-at-path/SKILL.md +++ b/skills/hooks-objects/references/insert-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-insert-node-at-path -description: React Query mutation hook for insertNodeAtPath ---- - -# hooks-public-insert-node-at-path +# insertNodeAtPath diff --git a/skills/hooks-public-object/SKILL.md b/skills/hooks-objects/references/object.md similarity index 90% rename from skills/hooks-public-object/SKILL.md rename to skills/hooks-objects/references/object.md index ba597d01d..14e14593f 100644 --- a/skills/hooks-public-object/SKILL.md +++ b/skills/hooks-objects/references/object.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-object -description: React Query hooks for Object data operations ---- - -# hooks-public-object +# object diff --git a/skills/hooks-public-ref/SKILL.md b/skills/hooks-objects/references/ref.md similarity index 89% rename from skills/hooks-public-ref/SKILL.md rename to skills/hooks-objects/references/ref.md index b16372831..d8b3b24c7 100644 --- a/skills/hooks-public-ref/SKILL.md +++ b/skills/hooks-objects/references/ref.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-ref -description: A ref is a data structure for pointing to a commit. ---- - -# hooks-public-ref +# ref diff --git a/skills/hooks-public-remove-node-at-path/SKILL.md b/skills/hooks-objects/references/remove-node-at-path.md similarity index 72% rename from skills/hooks-public-remove-node-at-path/SKILL.md rename to skills/hooks-objects/references/remove-node-at-path.md index 7d7a6b631..32d199b7e 100644 --- a/skills/hooks-public-remove-node-at-path/SKILL.md +++ b/skills/hooks-objects/references/remove-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-remove-node-at-path -description: React Query mutation hook for removeNodeAtPath ---- - -# hooks-public-remove-node-at-path +# removeNodeAtPath diff --git a/skills/hooks-public-rev-parse/SKILL.md b/skills/hooks-objects/references/rev-parse.md similarity index 76% rename from skills/hooks-public-rev-parse/SKILL.md rename to skills/hooks-objects/references/rev-parse.md index c2009b97a..653d003af 100644 --- a/skills/hooks-public-rev-parse/SKILL.md +++ b/skills/hooks-objects/references/rev-parse.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-rev-parse -description: React Query query hook for revParse ---- - -# hooks-public-rev-parse +# revParse diff --git a/skills/hooks-public-set-and-commit/SKILL.md b/skills/hooks-objects/references/set-and-commit.md similarity index 73% rename from skills/hooks-public-set-and-commit/SKILL.md rename to skills/hooks-objects/references/set-and-commit.md index 81110d25c..7e69d5b13 100644 --- a/skills/hooks-public-set-and-commit/SKILL.md +++ b/skills/hooks-objects/references/set-and-commit.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-set-and-commit -description: React Query mutation hook for setAndCommit ---- - -# hooks-public-set-and-commit +# setAndCommit diff --git a/skills/hooks-public-set-data-at-path/SKILL.md b/skills/hooks-objects/references/set-data-at-path.md similarity index 72% rename from skills/hooks-public-set-data-at-path/SKILL.md rename to skills/hooks-objects/references/set-data-at-path.md index 2888f83ee..ff6629dec 100644 --- a/skills/hooks-public-set-data-at-path/SKILL.md +++ b/skills/hooks-objects/references/set-data-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-set-data-at-path -description: React Query mutation hook for setDataAtPath ---- - -# hooks-public-set-data-at-path +# setDataAtPath diff --git a/skills/hooks-public-set-props-and-commit/SKILL.md b/skills/hooks-objects/references/set-props-and-commit.md similarity index 72% rename from skills/hooks-public-set-props-and-commit/SKILL.md rename to skills/hooks-objects/references/set-props-and-commit.md index eccca1685..ff62e4969 100644 --- a/skills/hooks-public-set-props-and-commit/SKILL.md +++ b/skills/hooks-objects/references/set-props-and-commit.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-set-props-and-commit -description: React Query mutation hook for setPropsAndCommit ---- - -# hooks-public-set-props-and-commit +# setPropsAndCommit diff --git a/skills/hooks-public-store/SKILL.md b/skills/hooks-objects/references/store.md similarity index 87% rename from skills/hooks-public-store/SKILL.md rename to skills/hooks-objects/references/store.md index 28034a595..07e008520 100644 --- a/skills/hooks-public-store/SKILL.md +++ b/skills/hooks-objects/references/store.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-store -description: A store represents an isolated object repository within a database. ---- - -# hooks-public-store +# store diff --git a/skills/hooks-public-update-node-at-path/SKILL.md b/skills/hooks-objects/references/update-node-at-path.md similarity index 72% rename from skills/hooks-public-update-node-at-path/SKILL.md rename to skills/hooks-objects/references/update-node-at-path.md index 619225ba3..97a9f8bc1 100644 --- a/skills/hooks-public-update-node-at-path/SKILL.md +++ b/skills/hooks-objects/references/update-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-update-node-at-path -description: React Query mutation hook for updateNodeAtPath ---- - -# hooks-public-update-node-at-path +# updateNodeAtPath diff --git a/skills/hooks-public/SKILL.md b/skills/hooks-public/SKILL.md new file mode 100644 index 000000000..87c7217f3 --- /dev/null +++ b/skills/hooks-public/SKILL.md @@ -0,0 +1,193 @@ +--- +name: hooks-public +description: React Query hooks for the public API — provides typed query and mutation hooks for 104 tables and 50 custom operations +--- + +# hooks-public + + + +React Query hooks for the public API — provides typed query and mutation hooks for 104 tables and 50 custom operations + +## Usage + +```typescript +// Import hooks +import { useOrgGetManagersQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [org-get-managers-record](references/org-get-managers-record.md) +- [org-get-subordinates-record](references/org-get-subordinates-record.md) +- [get-all-record](references/get-all-record.md) +- [app-permission](references/app-permission.md) +- [org-permission](references/org-permission.md) +- [object](references/object.md) +- [app-level-requirement](references/app-level-requirement.md) +- [database](references/database.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [table-module](references/table-module.md) +- [table-template-module](references/table-template-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [relation-provision](references/relation-provision.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [trigger-function](references/trigger-function.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [connected-accounts-module](references/connected-accounts-module.md) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [default-ids-module](references/default-ids-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [emails-module](references/emails-module.md) +- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [field-module](references/field-module.md) +- [invites-module](references/invites-module.md) +- [levels-module](references/levels-module.md) +- [limits-module](references/limits-module.md) +- [membership-types-module](references/membership-types-module.md) +- [memberships-module](references/memberships-module.md) +- [permissions-module](references/permissions-module.md) +- [phone-numbers-module](references/phone-numbers-module.md) +- [profiles-module](references/profiles-module.md) +- [rls-module](references/rls-module.md) +- [secrets-module](references/secrets-module.md) +- [sessions-module](references/sessions-module.md) +- [user-auth-module](references/user-auth-module.md) +- [users-module](references/users-module.md) +- [uuid-module](references/uuid-module.md) +- [database-provision-module](references/database-provision-module.md) +- [app-admin-grant](references/app-admin-grant.md) +- [app-owner-grant](references/app-owner-grant.md) +- [app-grant](references/app-grant.md) +- [org-membership](references/org-membership.md) +- [org-member](references/org-member.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [org-limit](references/org-limit.md) +- [app-step](references/app-step.md) +- [app-achievement](references/app-achievement.md) +- [invite](references/invite.md) +- [claimed-invite](references/claimed-invite.md) +- [org-invite](references/org-invite.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [app-permission-default](references/app-permission-default.md) +- [role-type](references/role-type.md) +- [org-permission-default](references/org-permission-default.md) +- [crypto-address](references/crypto-address.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [connected-account](references/connected-account.md) +- [phone-number](references/phone-number.md) +- [membership-type](references/membership-type.md) +- [node-type-registry](references/node-type-registry.md) +- [app-membership-default](references/app-membership-default.md) +- [commit](references/commit.md) +- [org-membership-default](references/org-membership-default.md) +- [audit-log](references/audit-log.md) +- [app-level](references/app-level.md) +- [email](references/email.md) +- [sql-migration](references/sql-migration.md) +- [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [app-membership](references/app-membership.md) +- [hierarchy-module](references/hierarchy-module.md) +- [current-user-id](references/current-user-id.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.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) +- [steps-achieved](references/steps-achieved.md) +- [rev-parse](references/rev-parse.md) +- [org-is-manager-of](references/org-is-manager-of.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [steps-required](references/steps-required.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [bootstrap-user](references/bootstrap-user.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [provision-database-with-user](references/provision-database-with-user.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [create-user-database](references/create-user-database.md) +- [extend-token-expires](references/extend-token-expires.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [set-field-order](references/set-field-order.md) +- [one-time-token](references/one-time-token.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) +- [apply-rls](references/apply-rls.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/hooks-public-api-module/SKILL.md b/skills/hooks-public/references/api-module.md similarity index 83% rename from skills/hooks-public-api-module/SKILL.md rename to skills/hooks-public/references/api-module.md index a7534da3d..70d115221 100644 --- a/skills/hooks-public-api-module/SKILL.md +++ b/skills/hooks-public/references/api-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-api-module -description: Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server ---- - -# hooks-public-api-module +# apiModule diff --git a/skills/hooks-public-api-schema/SKILL.md b/skills/hooks-public/references/api-schema.md similarity index 83% rename from skills/hooks-public-api-schema/SKILL.md rename to skills/hooks-public/references/api-schema.md index f21a8fb71..369bf55c6 100644 --- a/skills/hooks-public-api-schema/SKILL.md +++ b/skills/hooks-public/references/api-schema.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-api-schema -description: Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API ---- - -# hooks-public-api-schema +# apiSchema diff --git a/skills/hooks-public-api/SKILL.md b/skills/hooks-public/references/api.md similarity index 85% rename from skills/hooks-public-api/SKILL.md rename to skills/hooks-public/references/api.md index e5c7d8999..164c8053c 100644 --- a/skills/hooks-public-api/SKILL.md +++ b/skills/hooks-public/references/api.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-api -description: API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings ---- - -# hooks-public-api +# api diff --git a/skills/hooks-public-app-achievement/SKILL.md b/skills/hooks-public/references/app-achievement.md similarity index 83% rename from skills/hooks-public-app-achievement/SKILL.md rename to skills/hooks-public/references/app-achievement.md index 7a620ef63..3a0751437 100644 --- a/skills/hooks-public-app-achievement/SKILL.md +++ b/skills/hooks-public/references/app-achievement.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-achievement -description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ---- - -# hooks-public-app-achievement +# appAchievement diff --git a/skills/hooks-public-app-admin-grant/SKILL.md b/skills/hooks-public/references/app-admin-grant.md similarity index 87% rename from skills/hooks-public-app-admin-grant/SKILL.md rename to skills/hooks-public/references/app-admin-grant.md index 214e15bb8..dbfaacfe8 100644 --- a/skills/hooks-public-app-admin-grant/SKILL.md +++ b/skills/hooks-public/references/app-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-admin-grant -description: Records of admin role grants and revocations between members ---- - -# hooks-public-app-admin-grant +# appAdminGrant diff --git a/skills/hooks-public-app-grant/SKILL.md b/skills/hooks-public/references/app-grant.md similarity index 87% rename from skills/hooks-public-app-grant/SKILL.md rename to skills/hooks-public/references/app-grant.md index 652dafc16..38cd132ec 100644 --- a/skills/hooks-public-app-grant/SKILL.md +++ b/skills/hooks-public/references/app-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# hooks-public-app-grant +# appGrant diff --git a/skills/hooks-public-app-level-requirement/SKILL.md b/skills/hooks-public/references/app-level-requirement.md similarity index 88% rename from skills/hooks-public-app-level-requirement/SKILL.md rename to skills/hooks-public/references/app-level-requirement.md index 652f53382..876f64838 100644 --- a/skills/hooks-public-app-level-requirement/SKILL.md +++ b/skills/hooks-public/references/app-level-requirement.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-level-requirement -description: Defines the specific requirements that must be met to achieve a level ---- - -# hooks-public-app-level-requirement +# appLevelRequirement diff --git a/skills/hooks-public-app-level/SKILL.md b/skills/hooks-public/references/app-level.md similarity index 87% rename from skills/hooks-public-app-level/SKILL.md rename to skills/hooks-public/references/app-level.md index 8471f6039..eb2989219 100644 --- a/skills/hooks-public-app-level/SKILL.md +++ b/skills/hooks-public/references/app-level.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-level -description: Defines available levels that users can achieve by completing requirements ---- - -# hooks-public-app-level +# appLevel diff --git a/skills/hooks-public-app-limit-default/SKILL.md b/skills/hooks-public/references/app-limit-default.md similarity index 83% rename from skills/hooks-public-app-limit-default/SKILL.md rename to skills/hooks-public/references/app-limit-default.md index aa1fc01e6..dc0a272af 100644 --- a/skills/hooks-public-app-limit-default/SKILL.md +++ b/skills/hooks-public/references/app-limit-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# hooks-public-app-limit-default +# appLimitDefault diff --git a/skills/hooks-public-app-limit/SKILL.md b/skills/hooks-public/references/app-limit.md similarity index 87% rename from skills/hooks-public-app-limit/SKILL.md rename to skills/hooks-public/references/app-limit.md index b83c6956a..17d5b20ed 100644 --- a/skills/hooks-public-app-limit/SKILL.md +++ b/skills/hooks-public/references/app-limit.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# hooks-public-app-limit +# appLimit diff --git a/skills/hooks-public-app-membership-default/SKILL.md b/skills/hooks-public/references/app-membership-default.md similarity index 86% rename from skills/hooks-public-app-membership-default/SKILL.md rename to skills/hooks-public/references/app-membership-default.md index 826a92d23..49de40fe1 100644 --- a/skills/hooks-public-app-membership-default/SKILL.md +++ b/skills/hooks-public/references/app-membership-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# hooks-public-app-membership-default +# appMembershipDefault diff --git a/skills/hooks-public-app-membership/SKILL.md b/skills/hooks-public/references/app-membership.md similarity index 90% rename from skills/hooks-public-app-membership/SKILL.md rename to skills/hooks-public/references/app-membership.md index 433858033..f0f2b9e9f 100644 --- a/skills/hooks-public-app-membership/SKILL.md +++ b/skills/hooks-public/references/app-membership.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# hooks-public-app-membership +# appMembership diff --git a/skills/hooks-public-app-owner-grant/SKILL.md b/skills/hooks-public/references/app-owner-grant.md similarity index 88% rename from skills/hooks-public-app-owner-grant/SKILL.md rename to skills/hooks-public/references/app-owner-grant.md index b5b73e9a6..4ffbb08e3 100644 --- a/skills/hooks-public-app-owner-grant/SKILL.md +++ b/skills/hooks-public/references/app-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-owner-grant -description: Records of ownership transfers and grants between members ---- - -# hooks-public-app-owner-grant +# appOwnerGrant diff --git a/skills/hooks-public-app-permission-default/SKILL.md b/skills/hooks-public/references/app-permission-default.md similarity index 84% rename from skills/hooks-public-app-permission-default/SKILL.md rename to skills/hooks-public/references/app-permission-default.md index aa8e399e1..b4fa77c76 100644 --- a/skills/hooks-public-app-permission-default/SKILL.md +++ b/skills/hooks-public/references/app-permission-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# hooks-public-app-permission-default +# appPermissionDefault diff --git a/skills/hooks-public-app-permission/SKILL.md b/skills/hooks-public/references/app-permission.md similarity index 84% rename from skills/hooks-public-app-permission/SKILL.md rename to skills/hooks-public/references/app-permission.md index e62b1e1ec..3d015a2bc 100644 --- a/skills/hooks-public-app-permission/SKILL.md +++ b/skills/hooks-public/references/app-permission.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# hooks-public-app-permission +# appPermission diff --git a/skills/hooks-public-app-permissions-get-by-mask/SKILL.md b/skills/hooks-public/references/app-permissions-get-by-mask.md similarity index 72% rename from skills/hooks-public-app-permissions-get-by-mask/SKILL.md rename to skills/hooks-public/references/app-permissions-get-by-mask.md index 28b199da2..36b60a157 100644 --- a/skills/hooks-public-app-permissions-get-by-mask/SKILL.md +++ b/skills/hooks-public/references/app-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-permissions-get-by-mask -description: Reads and enables pagination through a set of `AppPermission`. ---- - -# hooks-public-app-permissions-get-by-mask +# appPermissionsGetByMask diff --git a/skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md b/skills/hooks-public/references/app-permissions-get-mask-by-names.md similarity index 67% rename from skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md rename to skills/hooks-public/references/app-permissions-get-mask-by-names.md index 566709683..d7ae1ad22 100644 --- a/skills/hooks-public-app-permissions-get-mask-by-names/SKILL.md +++ b/skills/hooks-public/references/app-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-permissions-get-mask-by-names -description: React Query query hook for appPermissionsGetMaskByNames ---- - -# hooks-public-app-permissions-get-mask-by-names +# appPermissionsGetMaskByNames diff --git a/skills/hooks-public-app-permissions-get-mask/SKILL.md b/skills/hooks-public/references/app-permissions-get-mask.md similarity index 68% rename from skills/hooks-public-app-permissions-get-mask/SKILL.md rename to skills/hooks-public/references/app-permissions-get-mask.md index 50aad33bc..291cecff5 100644 --- a/skills/hooks-public-app-permissions-get-mask/SKILL.md +++ b/skills/hooks-public/references/app-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-permissions-get-mask -description: React Query query hook for appPermissionsGetMask ---- - -# hooks-public-app-permissions-get-mask +# appPermissionsGetMask diff --git a/skills/hooks-public-app-permissions-get-padded-mask/SKILL.md b/skills/hooks-public/references/app-permissions-get-padded-mask.md similarity index 67% rename from skills/hooks-public-app-permissions-get-padded-mask/SKILL.md rename to skills/hooks-public/references/app-permissions-get-padded-mask.md index 3372d600d..fa12f4bda 100644 --- a/skills/hooks-public-app-permissions-get-padded-mask/SKILL.md +++ b/skills/hooks-public/references/app-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-permissions-get-padded-mask -description: React Query query hook for appPermissionsGetPaddedMask ---- - -# hooks-public-app-permissions-get-padded-mask +# appPermissionsGetPaddedMask diff --git a/skills/hooks-public-app-step/SKILL.md b/skills/hooks-public/references/app-step.md similarity index 85% rename from skills/hooks-public-app-step/SKILL.md rename to skills/hooks-public/references/app-step.md index 67090f2f3..dff4c8520 100644 --- a/skills/hooks-public-app-step/SKILL.md +++ b/skills/hooks-public/references/app-step.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app-step -description: Log of individual user actions toward level requirements; every single step ever taken is recorded here ---- - -# hooks-public-app-step +# appStep diff --git a/skills/hooks-public-app/SKILL.md b/skills/hooks-public/references/app.md similarity index 89% rename from skills/hooks-public-app/SKILL.md rename to skills/hooks-public/references/app.md index d2e07bfbc..0aa959cbf 100644 --- a/skills/hooks-public-app/SKILL.md +++ b/skills/hooks-public/references/app.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-app -description: Mobile and native app configuration linked to a site, including store links and identifiers ---- - -# hooks-public-app +# app diff --git a/skills/hooks-public-apply-rls/SKILL.md b/skills/hooks-public/references/apply-rls.md similarity index 74% rename from skills/hooks-public-apply-rls/SKILL.md rename to skills/hooks-public/references/apply-rls.md index 06b2fb22d..484505759 100644 --- a/skills/hooks-public-apply-rls/SKILL.md +++ b/skills/hooks-public/references/apply-rls.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-apply-rls -description: React Query mutation hook for applyRls ---- - -# hooks-public-apply-rls +# applyRls diff --git a/skills/hooks-public-ast-migration/SKILL.md b/skills/hooks-public/references/ast-migration.md similarity index 91% rename from skills/hooks-public-ast-migration/SKILL.md rename to skills/hooks-public/references/ast-migration.md index c2da2011c..0f7b2b67e 100644 --- a/skills/hooks-public-ast-migration/SKILL.md +++ b/skills/hooks-public/references/ast-migration.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-ast-migration -description: React Query hooks for AstMigration data operations ---- - -# hooks-public-ast-migration +# astMigration diff --git a/skills/hooks-public-audit-log/SKILL.md b/skills/hooks-public/references/audit-log.md similarity index 87% rename from skills/hooks-public-audit-log/SKILL.md rename to skills/hooks-public/references/audit-log.md index 9a9dbb296..2510fbb60 100644 --- a/skills/hooks-public-audit-log/SKILL.md +++ b/skills/hooks-public/references/audit-log.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-audit-log -description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ---- - -# hooks-public-audit-log +# auditLog diff --git a/skills/hooks-public-bootstrap-user/SKILL.md b/skills/hooks-public/references/bootstrap-user.md similarity index 73% rename from skills/hooks-public-bootstrap-user/SKILL.md rename to skills/hooks-public/references/bootstrap-user.md index 186d5d26f..ad6c0fff8 100644 --- a/skills/hooks-public-bootstrap-user/SKILL.md +++ b/skills/hooks-public/references/bootstrap-user.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-bootstrap-user -description: React Query mutation hook for bootstrapUser ---- - -# hooks-public-bootstrap-user +# bootstrapUser diff --git a/skills/hooks-public-check-constraint/SKILL.md b/skills/hooks-public/references/check-constraint.md similarity index 91% rename from skills/hooks-public-check-constraint/SKILL.md rename to skills/hooks-public/references/check-constraint.md index 9d1af08af..f77483e84 100644 --- a/skills/hooks-public-check-constraint/SKILL.md +++ b/skills/hooks-public/references/check-constraint.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-check-constraint -description: React Query hooks for CheckConstraint data operations ---- - -# hooks-public-check-constraint +# checkConstraint diff --git a/skills/hooks-public-check-password/SKILL.md b/skills/hooks-public/references/check-password.md similarity index 73% rename from skills/hooks-public-check-password/SKILL.md rename to skills/hooks-public/references/check-password.md index b21cf237f..d288b0d59 100644 --- a/skills/hooks-public-check-password/SKILL.md +++ b/skills/hooks-public/references/check-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-check-password -description: React Query mutation hook for checkPassword ---- - -# hooks-public-check-password +# checkPassword diff --git a/skills/hooks-public-claimed-invite/SKILL.md b/skills/hooks-public/references/claimed-invite.md similarity index 87% rename from skills/hooks-public-claimed-invite/SKILL.md rename to skills/hooks-public/references/claimed-invite.md index 916b55acb..7b3be74dd 100644 --- a/skills/hooks-public-claimed-invite/SKILL.md +++ b/skills/hooks-public/references/claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# hooks-public-claimed-invite +# claimedInvite diff --git a/skills/hooks-objects-commit/SKILL.md b/skills/hooks-public/references/commit.md similarity index 91% rename from skills/hooks-objects-commit/SKILL.md rename to skills/hooks-public/references/commit.md index 3442d9043..6c4d4710e 100644 --- a/skills/hooks-objects-commit/SKILL.md +++ b/skills/hooks-public/references/commit.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-commit -description: A commit records changes to the repository. ---- - -# hooks-objects-commit +# commit diff --git a/skills/hooks-public-confirm-delete-account/SKILL.md b/skills/hooks-public/references/confirm-delete-account.md similarity index 71% rename from skills/hooks-public-confirm-delete-account/SKILL.md rename to skills/hooks-public/references/confirm-delete-account.md index b3a004620..2cbaddf1e 100644 --- a/skills/hooks-public-confirm-delete-account/SKILL.md +++ b/skills/hooks-public/references/confirm-delete-account.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-confirm-delete-account -description: React Query mutation hook for confirmDeleteAccount ---- - -# hooks-public-confirm-delete-account +# confirmDeleteAccount diff --git a/skills/hooks-public-connected-account/SKILL.md b/skills/hooks-public/references/connected-account.md similarity index 88% rename from skills/hooks-public-connected-account/SKILL.md rename to skills/hooks-public/references/connected-account.md index 50d310067..460e81e5b 100644 --- a/skills/hooks-public-connected-account/SKILL.md +++ b/skills/hooks-public/references/connected-account.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-connected-account -description: OAuth and social login connections linking external service accounts to users ---- - -# hooks-public-connected-account +# connectedAccount diff --git a/skills/hooks-public-connected-accounts-module/SKILL.md b/skills/hooks-public/references/connected-accounts-module.md similarity index 88% rename from skills/hooks-public-connected-accounts-module/SKILL.md rename to skills/hooks-public/references/connected-accounts-module.md index cd55825b9..577ef3601 100644 --- a/skills/hooks-public-connected-accounts-module/SKILL.md +++ b/skills/hooks-public/references/connected-accounts-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-connected-accounts-module -description: React Query hooks for ConnectedAccountsModule data operations ---- - -# hooks-public-connected-accounts-module +# connectedAccountsModule diff --git a/skills/hooks-public-create-user-database/SKILL.md b/skills/hooks-public/references/create-user-database.md similarity index 55% rename from skills/hooks-public-create-user-database/SKILL.md rename to skills/hooks-public/references/create-user-database.md index 7de080d2f..1242ebc84 100644 --- a/skills/hooks-public-create-user-database/SKILL.md +++ b/skills/hooks-public/references/create-user-database.md @@ -1,25 +1,4 @@ ---- -name: hooks-public-create-user-database -description: Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include levels/achievements (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - ---- - -# hooks-public-create-user-database +# createUserDatabase diff --git a/skills/hooks-public-crypto-address/SKILL.md b/skills/hooks-public/references/crypto-address.md similarity index 86% rename from skills/hooks-public-crypto-address/SKILL.md rename to skills/hooks-public/references/crypto-address.md index c3a18ff42..99c41ff1e 100644 --- a/skills/hooks-public-crypto-address/SKILL.md +++ b/skills/hooks-public/references/crypto-address.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-crypto-address -description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ---- - -# hooks-public-crypto-address +# cryptoAddress diff --git a/skills/hooks-public-crypto-addresses-module/SKILL.md b/skills/hooks-public/references/crypto-addresses-module.md similarity index 89% rename from skills/hooks-public-crypto-addresses-module/SKILL.md rename to skills/hooks-public/references/crypto-addresses-module.md index 924a847e2..da4903516 100644 --- a/skills/hooks-public-crypto-addresses-module/SKILL.md +++ b/skills/hooks-public/references/crypto-addresses-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-crypto-addresses-module -description: React Query hooks for CryptoAddressesModule data operations ---- - -# hooks-public-crypto-addresses-module +# cryptoAddressesModule diff --git a/skills/hooks-public-crypto-auth-module/SKILL.md b/skills/hooks-public/references/crypto-auth-module.md similarity index 93% rename from skills/hooks-public-crypto-auth-module/SKILL.md rename to skills/hooks-public/references/crypto-auth-module.md index 6ecdc04c2..ffb749fae 100644 --- a/skills/hooks-public-crypto-auth-module/SKILL.md +++ b/skills/hooks-public/references/crypto-auth-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-crypto-auth-module -description: React Query hooks for CryptoAuthModule data operations ---- - -# hooks-public-crypto-auth-module +# cryptoAuthModule diff --git a/skills/hooks-public-current-ip-address/SKILL.md b/skills/hooks-public/references/current-ip-address.md similarity index 66% rename from skills/hooks-public-current-ip-address/SKILL.md rename to skills/hooks-public/references/current-ip-address.md index 6b4996e53..ddb702e16 100644 --- a/skills/hooks-public-current-ip-address/SKILL.md +++ b/skills/hooks-public/references/current-ip-address.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-current-ip-address -description: React Query query hook for currentIpAddress ---- - -# hooks-public-current-ip-address +# currentIpAddress diff --git a/skills/hooks-public-current-user-agent/SKILL.md b/skills/hooks-public/references/current-user-agent.md similarity index 66% rename from skills/hooks-public-current-user-agent/SKILL.md rename to skills/hooks-public/references/current-user-agent.md index 24d4098fa..3bc483ff7 100644 --- a/skills/hooks-public-current-user-agent/SKILL.md +++ b/skills/hooks-public/references/current-user-agent.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-current-user-agent -description: React Query query hook for currentUserAgent ---- - -# hooks-public-current-user-agent +# currentUserAgent diff --git a/skills/hooks-public-current-user-id/SKILL.md b/skills/hooks-public/references/current-user-id.md similarity index 67% rename from skills/hooks-public-current-user-id/SKILL.md rename to skills/hooks-public/references/current-user-id.md index 21cde275d..0dcf21a7f 100644 --- a/skills/hooks-public-current-user-id/SKILL.md +++ b/skills/hooks-public/references/current-user-id.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-current-user-id -description: React Query query hook for currentUserId ---- - -# hooks-public-current-user-id +# currentUserId diff --git a/skills/hooks-public-current-user/SKILL.md b/skills/hooks-public/references/current-user.md similarity index 68% rename from skills/hooks-public-current-user/SKILL.md rename to skills/hooks-public/references/current-user.md index 057cea899..3411f5951 100644 --- a/skills/hooks-public-current-user/SKILL.md +++ b/skills/hooks-public/references/current-user.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-current-user -description: React Query query hook for currentUser ---- - -# hooks-public-current-user +# currentUser diff --git a/skills/hooks-public-database-provision-module/SKILL.md b/skills/hooks-public/references/database-provision-module.md similarity index 87% rename from skills/hooks-public-database-provision-module/SKILL.md rename to skills/hooks-public/references/database-provision-module.md index be702ce40..f4f361430 100644 --- a/skills/hooks-public-database-provision-module/SKILL.md +++ b/skills/hooks-public/references/database-provision-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-database-provision-module -description: Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. ---- - -# hooks-public-database-provision-module +# databaseProvisionModule diff --git a/skills/hooks-public-database/SKILL.md b/skills/hooks-public/references/database.md similarity index 90% rename from skills/hooks-public-database/SKILL.md rename to skills/hooks-public/references/database.md index 9e8e6fe88..5a99d6220 100644 --- a/skills/hooks-public-database/SKILL.md +++ b/skills/hooks-public/references/database.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-database -description: React Query hooks for Database data operations ---- - -# hooks-public-database +# database diff --git a/skills/hooks-public-default-ids-module/SKILL.md b/skills/hooks-public/references/default-ids-module.md similarity index 85% rename from skills/hooks-public-default-ids-module/SKILL.md rename to skills/hooks-public/references/default-ids-module.md index b7cb7878e..451ff48d5 100644 --- a/skills/hooks-public-default-ids-module/SKILL.md +++ b/skills/hooks-public/references/default-ids-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-default-ids-module -description: React Query hooks for DefaultIdsModule data operations ---- - -# hooks-public-default-ids-module +# defaultIdsModule diff --git a/skills/hooks-public-default-privilege/SKILL.md b/skills/hooks-public/references/default-privilege.md similarity index 89% rename from skills/hooks-public-default-privilege/SKILL.md rename to skills/hooks-public/references/default-privilege.md index 7526dfcba..c2d817893 100644 --- a/skills/hooks-public-default-privilege/SKILL.md +++ b/skills/hooks-public/references/default-privilege.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-default-privilege -description: React Query hooks for DefaultPrivilege data operations ---- - -# hooks-public-default-privilege +# defaultPrivilege diff --git a/skills/hooks-public-denormalized-table-field/SKILL.md b/skills/hooks-public/references/denormalized-table-field.md similarity index 90% rename from skills/hooks-public-denormalized-table-field/SKILL.md rename to skills/hooks-public/references/denormalized-table-field.md index 8418f74f8..fddc67c80 100644 --- a/skills/hooks-public-denormalized-table-field/SKILL.md +++ b/skills/hooks-public/references/denormalized-table-field.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-denormalized-table-field -description: React Query hooks for DenormalizedTableField data operations ---- - -# hooks-public-denormalized-table-field +# denormalizedTableField diff --git a/skills/hooks-public-domain/SKILL.md b/skills/hooks-public/references/domain.md similarity index 87% rename from skills/hooks-public-domain/SKILL.md rename to skills/hooks-public/references/domain.md index 879bc03ab..2c26a3fef 100644 --- a/skills/hooks-public-domain/SKILL.md +++ b/skills/hooks-public/references/domain.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-domain -description: DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site ---- - -# hooks-public-domain +# domain diff --git a/skills/hooks-public-email/SKILL.md b/skills/hooks-public/references/email.md similarity index 88% rename from skills/hooks-public-email/SKILL.md rename to skills/hooks-public/references/email.md index bd8f92b30..4bf0c0eab 100644 --- a/skills/hooks-public-email/SKILL.md +++ b/skills/hooks-public/references/email.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-email -description: User email addresses with verification and primary-email management ---- - -# hooks-public-email +# email diff --git a/skills/hooks-public-emails-module/SKILL.md b/skills/hooks-public/references/emails-module.md similarity index 90% rename from skills/hooks-public-emails-module/SKILL.md rename to skills/hooks-public/references/emails-module.md index 7daeea066..9ea341fb2 100644 --- a/skills/hooks-public-emails-module/SKILL.md +++ b/skills/hooks-public/references/emails-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-emails-module -description: React Query hooks for EmailsModule data operations ---- - -# hooks-public-emails-module +# emailsModule diff --git a/skills/hooks-public-encrypted-secrets-module/SKILL.md b/skills/hooks-public/references/encrypted-secrets-module.md similarity index 87% rename from skills/hooks-public-encrypted-secrets-module/SKILL.md rename to skills/hooks-public/references/encrypted-secrets-module.md index 83a4efde7..505b8af62 100644 --- a/skills/hooks-public-encrypted-secrets-module/SKILL.md +++ b/skills/hooks-public/references/encrypted-secrets-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-encrypted-secrets-module -description: React Query hooks for EncryptedSecretsModule data operations ---- - -# hooks-public-encrypted-secrets-module +# encryptedSecretsModule diff --git a/skills/hooks-public-extend-token-expires/SKILL.md b/skills/hooks-public/references/extend-token-expires.md similarity index 72% rename from skills/hooks-public-extend-token-expires/SKILL.md rename to skills/hooks-public/references/extend-token-expires.md index c503e1732..ecbad8c6a 100644 --- a/skills/hooks-public-extend-token-expires/SKILL.md +++ b/skills/hooks-public/references/extend-token-expires.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-extend-token-expires -description: React Query mutation hook for extendTokenExpires ---- - -# hooks-public-extend-token-expires +# extendTokenExpires diff --git a/skills/hooks-public-field-module/SKILL.md b/skills/hooks-public/references/field-module.md similarity index 90% rename from skills/hooks-public-field-module/SKILL.md rename to skills/hooks-public/references/field-module.md index 6e2ed43ab..944ef2b91 100644 --- a/skills/hooks-public-field-module/SKILL.md +++ b/skills/hooks-public/references/field-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-field-module -description: React Query hooks for FieldModule data operations ---- - -# hooks-public-field-module +# fieldModule diff --git a/skills/hooks-public-field/SKILL.md b/skills/hooks-public/references/field.md similarity index 95% rename from skills/hooks-public-field/SKILL.md rename to skills/hooks-public/references/field.md index b77483149..cde3c6dc5 100644 --- a/skills/hooks-public-field/SKILL.md +++ b/skills/hooks-public/references/field.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-field -description: React Query hooks for Field data operations ---- - -# hooks-public-field +# field diff --git a/skills/hooks-public-foreign-key-constraint/SKILL.md b/skills/hooks-public/references/foreign-key-constraint.md similarity index 92% rename from skills/hooks-public-foreign-key-constraint/SKILL.md rename to skills/hooks-public/references/foreign-key-constraint.md index ea4110152..37446aa14 100644 --- a/skills/hooks-public-foreign-key-constraint/SKILL.md +++ b/skills/hooks-public/references/foreign-key-constraint.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-foreign-key-constraint -description: React Query hooks for ForeignKeyConstraint data operations ---- - -# hooks-public-foreign-key-constraint +# foreignKeyConstraint diff --git a/skills/hooks-public-forgot-password/SKILL.md b/skills/hooks-public/references/forgot-password.md similarity index 73% rename from skills/hooks-public-forgot-password/SKILL.md rename to skills/hooks-public/references/forgot-password.md index 827c5ed93..04d19984b 100644 --- a/skills/hooks-public-forgot-password/SKILL.md +++ b/skills/hooks-public/references/forgot-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-forgot-password -description: React Query mutation hook for forgotPassword ---- - -# hooks-public-forgot-password +# forgotPassword diff --git a/skills/hooks-objects-freeze-objects/SKILL.md b/skills/hooks-public/references/freeze-objects.md similarity index 73% rename from skills/hooks-objects-freeze-objects/SKILL.md rename to skills/hooks-public/references/freeze-objects.md index 9dd477b33..15d3b5afc 100644 --- a/skills/hooks-objects-freeze-objects/SKILL.md +++ b/skills/hooks-public/references/freeze-objects.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-freeze-objects -description: React Query mutation hook for freezeObjects ---- - -# hooks-objects-freeze-objects +# freezeObjects diff --git a/skills/hooks-public-full-text-search/SKILL.md b/skills/hooks-public/references/full-text-search.md similarity index 89% rename from skills/hooks-public-full-text-search/SKILL.md rename to skills/hooks-public/references/full-text-search.md index ab32800a8..9f921e353 100644 --- a/skills/hooks-public-full-text-search/SKILL.md +++ b/skills/hooks-public/references/full-text-search.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-full-text-search -description: React Query hooks for FullTextSearch data operations ---- - -# hooks-public-full-text-search +# fullTextSearch diff --git a/skills/hooks-objects-get-all-objects-from-root/SKILL.md b/skills/hooks-public/references/get-all-objects-from-root.md similarity index 74% rename from skills/hooks-objects-get-all-objects-from-root/SKILL.md rename to skills/hooks-public/references/get-all-objects-from-root.md index dc19f94eb..dea9b354e 100644 --- a/skills/hooks-objects-get-all-objects-from-root/SKILL.md +++ b/skills/hooks-public/references/get-all-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-get-all-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# hooks-objects-get-all-objects-from-root +# getAllObjectsFromRoot diff --git a/skills/hooks-objects-get-all-record/SKILL.md b/skills/hooks-public/references/get-all-record.md similarity index 81% rename from skills/hooks-objects-get-all-record/SKILL.md rename to skills/hooks-public/references/get-all-record.md index adc064d0f..6251812bb 100644 --- a/skills/hooks-objects-get-all-record/SKILL.md +++ b/skills/hooks-public/references/get-all-record.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-get-all-record -description: React Query hooks for GetAllRecord data operations ---- - -# hooks-objects-get-all-record +# getAllRecord diff --git a/skills/hooks-objects-get-object-at-path/SKILL.md b/skills/hooks-public/references/get-object-at-path.md similarity index 75% rename from skills/hooks-objects-get-object-at-path/SKILL.md rename to skills/hooks-public/references/get-object-at-path.md index efaf36fe9..7f8aeed00 100644 --- a/skills/hooks-objects-get-object-at-path/SKILL.md +++ b/skills/hooks-public/references/get-object-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-get-object-at-path -description: React Query query hook for getObjectAtPath ---- - -# hooks-objects-get-object-at-path +# getObjectAtPath diff --git a/skills/hooks-objects-get-path-objects-from-root/SKILL.md b/skills/hooks-public/references/get-path-objects-from-root.md similarity index 76% rename from skills/hooks-objects-get-path-objects-from-root/SKILL.md rename to skills/hooks-public/references/get-path-objects-from-root.md index 57a1ed039..a453967c7 100644 --- a/skills/hooks-objects-get-path-objects-from-root/SKILL.md +++ b/skills/hooks-public/references/get-path-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-get-path-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# hooks-objects-get-path-objects-from-root +# getPathObjectsFromRoot diff --git a/skills/hooks-public-hierarchy-module/SKILL.md b/skills/hooks-public/references/hierarchy-module.md similarity index 94% rename from skills/hooks-public-hierarchy-module/SKILL.md rename to skills/hooks-public/references/hierarchy-module.md index 81fbc7632..d873e2119 100644 --- a/skills/hooks-public-hierarchy-module/SKILL.md +++ b/skills/hooks-public/references/hierarchy-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-hierarchy-module -description: React Query hooks for HierarchyModule data operations ---- - -# hooks-public-hierarchy-module +# hierarchyModule diff --git a/skills/hooks-public-index/SKILL.md b/skills/hooks-public/references/index.md similarity index 94% rename from skills/hooks-public-index/SKILL.md rename to skills/hooks-public/references/index.md index f8bbecc44..59168a9b3 100644 --- a/skills/hooks-public-index/SKILL.md +++ b/skills/hooks-public/references/index.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-index -description: React Query hooks for Index data operations ---- - -# hooks-public-index +# index diff --git a/skills/hooks-objects-init-empty-repo/SKILL.md b/skills/hooks-public/references/init-empty-repo.md similarity index 72% rename from skills/hooks-objects-init-empty-repo/SKILL.md rename to skills/hooks-public/references/init-empty-repo.md index 36ef3f15c..08928b0f4 100644 --- a/skills/hooks-objects-init-empty-repo/SKILL.md +++ b/skills/hooks-public/references/init-empty-repo.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-init-empty-repo -description: React Query mutation hook for initEmptyRepo ---- - -# hooks-objects-init-empty-repo +# initEmptyRepo diff --git a/skills/hooks-objects-insert-node-at-path/SKILL.md b/skills/hooks-public/references/insert-node-at-path.md similarity index 72% rename from skills/hooks-objects-insert-node-at-path/SKILL.md rename to skills/hooks-public/references/insert-node-at-path.md index a6d8a6a24..4b19bea31 100644 --- a/skills/hooks-objects-insert-node-at-path/SKILL.md +++ b/skills/hooks-public/references/insert-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-insert-node-at-path -description: React Query mutation hook for insertNodeAtPath ---- - -# hooks-objects-insert-node-at-path +# insertNodeAtPath diff --git a/skills/hooks-public-invite/SKILL.md b/skills/hooks-public/references/invite.md similarity index 89% rename from skills/hooks-public-invite/SKILL.md rename to skills/hooks-public/references/invite.md index 1c6784acb..3d968b414 100644 --- a/skills/hooks-public-invite/SKILL.md +++ b/skills/hooks-public/references/invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# hooks-public-invite +# invite diff --git a/skills/hooks-public-invites-module/SKILL.md b/skills/hooks-public/references/invites-module.md similarity index 93% rename from skills/hooks-public-invites-module/SKILL.md rename to skills/hooks-public/references/invites-module.md index 7d5ca1737..aba033d2c 100644 --- a/skills/hooks-public-invites-module/SKILL.md +++ b/skills/hooks-public/references/invites-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-invites-module -description: React Query hooks for InvitesModule data operations ---- - -# hooks-public-invites-module +# invitesModule diff --git a/skills/hooks-public-levels-module/SKILL.md b/skills/hooks-public/references/levels-module.md similarity index 96% rename from skills/hooks-public-levels-module/SKILL.md rename to skills/hooks-public/references/levels-module.md index 24327785f..33d5426f7 100644 --- a/skills/hooks-public-levels-module/SKILL.md +++ b/skills/hooks-public/references/levels-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-levels-module -description: React Query hooks for LevelsModule data operations ---- - -# hooks-public-levels-module +# levelsModule diff --git a/skills/hooks-public-limits-module/SKILL.md b/skills/hooks-public/references/limits-module.md similarity index 94% rename from skills/hooks-public-limits-module/SKILL.md rename to skills/hooks-public/references/limits-module.md index 03104eaab..ab9ba9668 100644 --- a/skills/hooks-public-limits-module/SKILL.md +++ b/skills/hooks-public/references/limits-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-limits-module -description: React Query hooks for LimitsModule data operations ---- - -# hooks-public-limits-module +# limitsModule diff --git a/skills/hooks-public-membership-type/SKILL.md b/skills/hooks-public/references/membership-type.md similarity index 84% rename from skills/hooks-public-membership-type/SKILL.md rename to skills/hooks-public/references/membership-type.md index 63936ca63..d603f30be 100644 --- a/skills/hooks-public-membership-type/SKILL.md +++ b/skills/hooks-public/references/membership-type.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-membership-type -description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ---- - -# hooks-public-membership-type +# membershipType diff --git a/skills/hooks-public-membership-types-module/SKILL.md b/skills/hooks-public/references/membership-types-module.md similarity index 87% rename from skills/hooks-public-membership-types-module/SKILL.md rename to skills/hooks-public/references/membership-types-module.md index 0d51239a3..816af9c33 100644 --- a/skills/hooks-public-membership-types-module/SKILL.md +++ b/skills/hooks-public/references/membership-types-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-membership-types-module -description: React Query hooks for MembershipTypesModule data operations ---- - -# hooks-public-membership-types-module +# membershipTypesModule diff --git a/skills/hooks-public-memberships-module/SKILL.md b/skills/hooks-public/references/memberships-module.md similarity index 96% rename from skills/hooks-public-memberships-module/SKILL.md rename to skills/hooks-public/references/memberships-module.md index 66ef2e7aa..2462f3e9b 100644 --- a/skills/hooks-public-memberships-module/SKILL.md +++ b/skills/hooks-public/references/memberships-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-memberships-module -description: React Query hooks for MembershipsModule data operations ---- - -# hooks-public-memberships-module +# membershipsModule diff --git a/skills/hooks-public-node-type-registry/SKILL.md b/skills/hooks-public/references/node-type-registry.md similarity index 85% rename from skills/hooks-public-node-type-registry/SKILL.md rename to skills/hooks-public/references/node-type-registry.md index b2ba4ef19..463fc0827 100644 --- a/skills/hooks-public-node-type-registry/SKILL.md +++ b/skills/hooks-public/references/node-type-registry.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-node-type-registry -description: Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). ---- - -# hooks-public-node-type-registry +# nodeTypeRegistry diff --git a/skills/hooks-objects-object/SKILL.md b/skills/hooks-public/references/object.md similarity index 90% rename from skills/hooks-objects-object/SKILL.md rename to skills/hooks-public/references/object.md index ea7e36494..14e14593f 100644 --- a/skills/hooks-objects-object/SKILL.md +++ b/skills/hooks-public/references/object.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-object -description: React Query hooks for Object data operations ---- - -# hooks-objects-object +# object diff --git a/skills/hooks-public-one-time-token/SKILL.md b/skills/hooks-public/references/one-time-token.md similarity index 73% rename from skills/hooks-public-one-time-token/SKILL.md rename to skills/hooks-public/references/one-time-token.md index abbdf8072..1b5ddf37f 100644 --- a/skills/hooks-public-one-time-token/SKILL.md +++ b/skills/hooks-public/references/one-time-token.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-one-time-token -description: React Query mutation hook for oneTimeToken ---- - -# hooks-public-one-time-token +# oneTimeToken diff --git a/skills/hooks-public-org-admin-grant/SKILL.md b/skills/hooks-public/references/org-admin-grant.md similarity index 88% rename from skills/hooks-public-org-admin-grant/SKILL.md rename to skills/hooks-public/references/org-admin-grant.md index 85a468dd6..0c33888b4 100644 --- a/skills/hooks-public-org-admin-grant/SKILL.md +++ b/skills/hooks-public/references/org-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-admin-grant -description: Records of admin role grants and revocations between members ---- - -# hooks-public-org-admin-grant +# orgAdminGrant diff --git a/skills/hooks-public-org-chart-edge-grant/SKILL.md b/skills/hooks-public/references/org-chart-edge-grant.md similarity index 87% rename from skills/hooks-public-org-chart-edge-grant/SKILL.md rename to skills/hooks-public/references/org-chart-edge-grant.md index df3000c9c..89e9aa996 100644 --- a/skills/hooks-public-org-chart-edge-grant/SKILL.md +++ b/skills/hooks-public/references/org-chart-edge-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-chart-edge-grant -description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table ---- - -# hooks-public-org-chart-edge-grant +# orgChartEdgeGrant diff --git a/skills/hooks-public-org-chart-edge/SKILL.md b/skills/hooks-public/references/org-chart-edge.md similarity index 87% rename from skills/hooks-public-org-chart-edge/SKILL.md rename to skills/hooks-public/references/org-chart-edge.md index 2915a4eda..c2c1e4e01 100644 --- a/skills/hooks-public-org-chart-edge/SKILL.md +++ b/skills/hooks-public/references/org-chart-edge.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-chart-edge -description: Organizational chart edges defining parent-child reporting relationships between members within an entity ---- - -# hooks-public-org-chart-edge +# orgChartEdge diff --git a/skills/hooks-public-org-claimed-invite/SKILL.md b/skills/hooks-public/references/org-claimed-invite.md similarity index 87% rename from skills/hooks-public-org-claimed-invite/SKILL.md rename to skills/hooks-public/references/org-claimed-invite.md index af0241c78..a03250a6b 100644 --- a/skills/hooks-public-org-claimed-invite/SKILL.md +++ b/skills/hooks-public/references/org-claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# hooks-public-org-claimed-invite +# orgClaimedInvite diff --git a/skills/hooks-public-org-get-managers-record/SKILL.md b/skills/hooks-public/references/org-get-managers-record.md similarity index 80% rename from skills/hooks-public-org-get-managers-record/SKILL.md rename to skills/hooks-public/references/org-get-managers-record.md index 1e0d4e0f0..26045a477 100644 --- a/skills/hooks-public-org-get-managers-record/SKILL.md +++ b/skills/hooks-public/references/org-get-managers-record.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-get-managers-record -description: React Query hooks for OrgGetManagersRecord data operations ---- - -# hooks-public-org-get-managers-record +# orgGetManagersRecord diff --git a/skills/hooks-public-org-get-subordinates-record/SKILL.md b/skills/hooks-public/references/org-get-subordinates-record.md similarity index 80% rename from skills/hooks-public-org-get-subordinates-record/SKILL.md rename to skills/hooks-public/references/org-get-subordinates-record.md index fa94dfed0..bd2be4581 100644 --- a/skills/hooks-public-org-get-subordinates-record/SKILL.md +++ b/skills/hooks-public/references/org-get-subordinates-record.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-get-subordinates-record -description: React Query hooks for OrgGetSubordinatesRecord data operations ---- - -# hooks-public-org-get-subordinates-record +# orgGetSubordinatesRecord diff --git a/skills/hooks-public-org-grant/SKILL.md b/skills/hooks-public/references/org-grant.md similarity index 88% rename from skills/hooks-public-org-grant/SKILL.md rename to skills/hooks-public/references/org-grant.md index 336c85f56..97c64dfd3 100644 --- a/skills/hooks-public-org-grant/SKILL.md +++ b/skills/hooks-public/references/org-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# hooks-public-org-grant +# orgGrant diff --git a/skills/hooks-public-org-invite/SKILL.md b/skills/hooks-public/references/org-invite.md similarity index 90% rename from skills/hooks-public-org-invite/SKILL.md rename to skills/hooks-public/references/org-invite.md index c9c2a969f..7f42032c5 100644 --- a/skills/hooks-public-org-invite/SKILL.md +++ b/skills/hooks-public/references/org-invite.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# hooks-public-org-invite +# orgInvite diff --git a/skills/hooks-public-org-is-manager-of/SKILL.md b/skills/hooks-public/references/org-is-manager-of.md similarity index 77% rename from skills/hooks-public-org-is-manager-of/SKILL.md rename to skills/hooks-public/references/org-is-manager-of.md index 1fb57bd1b..3832c5a99 100644 --- a/skills/hooks-public-org-is-manager-of/SKILL.md +++ b/skills/hooks-public/references/org-is-manager-of.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-is-manager-of -description: React Query query hook for orgIsManagerOf ---- - -# hooks-public-org-is-manager-of +# orgIsManagerOf diff --git a/skills/hooks-public-org-limit-default/SKILL.md b/skills/hooks-public/references/org-limit-default.md similarity index 83% rename from skills/hooks-public-org-limit-default/SKILL.md rename to skills/hooks-public/references/org-limit-default.md index 7ef477b34..0a41c4449 100644 --- a/skills/hooks-public-org-limit-default/SKILL.md +++ b/skills/hooks-public/references/org-limit-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# hooks-public-org-limit-default +# orgLimitDefault diff --git a/skills/hooks-public-org-limit/SKILL.md b/skills/hooks-public/references/org-limit.md similarity index 87% rename from skills/hooks-public-org-limit/SKILL.md rename to skills/hooks-public/references/org-limit.md index ccaa33b7f..0bcd78e02 100644 --- a/skills/hooks-public-org-limit/SKILL.md +++ b/skills/hooks-public/references/org-limit.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# hooks-public-org-limit +# orgLimit diff --git a/skills/hooks-public-org-member/SKILL.md b/skills/hooks-public/references/org-member.md similarity index 84% rename from skills/hooks-public-org-member/SKILL.md rename to skills/hooks-public/references/org-member.md index 16e7b2b54..76db77752 100644 --- a/skills/hooks-public-org-member/SKILL.md +++ b/skills/hooks-public/references/org-member.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-member -description: Simplified view of active members in an entity, used for listing who belongs to an org or group ---- - -# hooks-public-org-member +# orgMember diff --git a/skills/hooks-public-org-membership-default/SKILL.md b/skills/hooks-public/references/org-membership-default.md similarity index 88% rename from skills/hooks-public-org-membership-default/SKILL.md rename to skills/hooks-public/references/org-membership-default.md index d618596ea..a6749380d 100644 --- a/skills/hooks-public-org-membership-default/SKILL.md +++ b/skills/hooks-public/references/org-membership-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# hooks-public-org-membership-default +# orgMembershipDefault diff --git a/skills/hooks-public-org-membership/SKILL.md b/skills/hooks-public/references/org-membership.md similarity index 90% rename from skills/hooks-public-org-membership/SKILL.md rename to skills/hooks-public/references/org-membership.md index d7a0f8343..b31702606 100644 --- a/skills/hooks-public-org-membership/SKILL.md +++ b/skills/hooks-public/references/org-membership.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# hooks-public-org-membership +# orgMembership diff --git a/skills/hooks-public-org-owner-grant/SKILL.md b/skills/hooks-public/references/org-owner-grant.md similarity index 88% rename from skills/hooks-public-org-owner-grant/SKILL.md rename to skills/hooks-public/references/org-owner-grant.md index 762cc67b1..95febd1ff 100644 --- a/skills/hooks-public-org-owner-grant/SKILL.md +++ b/skills/hooks-public/references/org-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-owner-grant -description: Records of ownership transfers and grants between members ---- - -# hooks-public-org-owner-grant +# orgOwnerGrant diff --git a/skills/hooks-public-org-permission-default/SKILL.md b/skills/hooks-public/references/org-permission-default.md similarity index 85% rename from skills/hooks-public-org-permission-default/SKILL.md rename to skills/hooks-public/references/org-permission-default.md index 09e75c474..0db4e9538 100644 --- a/skills/hooks-public-org-permission-default/SKILL.md +++ b/skills/hooks-public/references/org-permission-default.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# hooks-public-org-permission-default +# orgPermissionDefault diff --git a/skills/hooks-public-org-permission/SKILL.md b/skills/hooks-public/references/org-permission.md similarity index 84% rename from skills/hooks-public-org-permission/SKILL.md rename to skills/hooks-public/references/org-permission.md index 9a474b0db..fed780e55 100644 --- a/skills/hooks-public-org-permission/SKILL.md +++ b/skills/hooks-public/references/org-permission.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# hooks-public-org-permission +# orgPermission diff --git a/skills/hooks-public-org-permissions-get-by-mask/SKILL.md b/skills/hooks-public/references/org-permissions-get-by-mask.md similarity index 72% rename from skills/hooks-public-org-permissions-get-by-mask/SKILL.md rename to skills/hooks-public/references/org-permissions-get-by-mask.md index 4db3399c8..91a602577 100644 --- a/skills/hooks-public-org-permissions-get-by-mask/SKILL.md +++ b/skills/hooks-public/references/org-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-permissions-get-by-mask -description: Reads and enables pagination through a set of `OrgPermission`. ---- - -# hooks-public-org-permissions-get-by-mask +# orgPermissionsGetByMask diff --git a/skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md b/skills/hooks-public/references/org-permissions-get-mask-by-names.md similarity index 67% rename from skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md rename to skills/hooks-public/references/org-permissions-get-mask-by-names.md index fd96ade72..d2652adfd 100644 --- a/skills/hooks-public-org-permissions-get-mask-by-names/SKILL.md +++ b/skills/hooks-public/references/org-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-permissions-get-mask-by-names -description: React Query query hook for orgPermissionsGetMaskByNames ---- - -# hooks-public-org-permissions-get-mask-by-names +# orgPermissionsGetMaskByNames diff --git a/skills/hooks-public-org-permissions-get-mask/SKILL.md b/skills/hooks-public/references/org-permissions-get-mask.md similarity index 68% rename from skills/hooks-public-org-permissions-get-mask/SKILL.md rename to skills/hooks-public/references/org-permissions-get-mask.md index a444f3ed9..75dc58097 100644 --- a/skills/hooks-public-org-permissions-get-mask/SKILL.md +++ b/skills/hooks-public/references/org-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-permissions-get-mask -description: React Query query hook for orgPermissionsGetMask ---- - -# hooks-public-org-permissions-get-mask +# orgPermissionsGetMask diff --git a/skills/hooks-public-org-permissions-get-padded-mask/SKILL.md b/skills/hooks-public/references/org-permissions-get-padded-mask.md similarity index 67% rename from skills/hooks-public-org-permissions-get-padded-mask/SKILL.md rename to skills/hooks-public/references/org-permissions-get-padded-mask.md index bd1acee96..a23bbbf76 100644 --- a/skills/hooks-public-org-permissions-get-padded-mask/SKILL.md +++ b/skills/hooks-public/references/org-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-org-permissions-get-padded-mask -description: React Query query hook for orgPermissionsGetPaddedMask ---- - -# hooks-public-org-permissions-get-padded-mask +# orgPermissionsGetPaddedMask diff --git a/skills/hooks-public-permissions-module/SKILL.md b/skills/hooks-public/references/permissions-module.md similarity index 93% rename from skills/hooks-public-permissions-module/SKILL.md rename to skills/hooks-public/references/permissions-module.md index 982821079..026dfa5bb 100644 --- a/skills/hooks-public-permissions-module/SKILL.md +++ b/skills/hooks-public/references/permissions-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-permissions-module -description: React Query hooks for PermissionsModule data operations ---- - -# hooks-public-permissions-module +# permissionsModule diff --git a/skills/hooks-public-phone-number/SKILL.md b/skills/hooks-public/references/phone-number.md similarity index 88% rename from skills/hooks-public-phone-number/SKILL.md rename to skills/hooks-public/references/phone-number.md index c102b01c7..0ce6e26c1 100644 --- a/skills/hooks-public-phone-number/SKILL.md +++ b/skills/hooks-public/references/phone-number.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-phone-number -description: User phone numbers with country code, verification, and primary-number management ---- - -# hooks-public-phone-number +# phoneNumber diff --git a/skills/hooks-public-phone-numbers-module/SKILL.md b/skills/hooks-public/references/phone-numbers-module.md similarity index 89% rename from skills/hooks-public-phone-numbers-module/SKILL.md rename to skills/hooks-public/references/phone-numbers-module.md index 3ce6292a4..ca8402f01 100644 --- a/skills/hooks-public-phone-numbers-module/SKILL.md +++ b/skills/hooks-public/references/phone-numbers-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-phone-numbers-module -description: React Query hooks for PhoneNumbersModule data operations ---- - -# hooks-public-phone-numbers-module +# phoneNumbersModule diff --git a/skills/hooks-public-policy/SKILL.md b/skills/hooks-public/references/policy.md similarity index 93% rename from skills/hooks-public-policy/SKILL.md rename to skills/hooks-public/references/policy.md index 4a182708e..93390d47b 100644 --- a/skills/hooks-public-policy/SKILL.md +++ b/skills/hooks-public/references/policy.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-policy -description: React Query hooks for Policy data operations ---- - -# hooks-public-policy +# policy diff --git a/skills/hooks-public-primary-key-constraint/SKILL.md b/skills/hooks-public/references/primary-key-constraint.md similarity index 90% rename from skills/hooks-public-primary-key-constraint/SKILL.md rename to skills/hooks-public/references/primary-key-constraint.md index e0e5bf6d1..89d9bf465 100644 --- a/skills/hooks-public-primary-key-constraint/SKILL.md +++ b/skills/hooks-public/references/primary-key-constraint.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-primary-key-constraint -description: React Query hooks for PrimaryKeyConstraint data operations ---- - -# hooks-public-primary-key-constraint +# primaryKeyConstraint diff --git a/skills/hooks-public-profiles-module/SKILL.md b/skills/hooks-public/references/profiles-module.md similarity index 94% rename from skills/hooks-public-profiles-module/SKILL.md rename to skills/hooks-public/references/profiles-module.md index a1e1de0a0..6f1a6eaac 100644 --- a/skills/hooks-public-profiles-module/SKILL.md +++ b/skills/hooks-public/references/profiles-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-profiles-module -description: React Query hooks for ProfilesModule data operations ---- - -# hooks-public-profiles-module +# profilesModule diff --git a/skills/hooks-public-provision-database-with-user/SKILL.md b/skills/hooks-public/references/provision-database-with-user.md similarity index 70% rename from skills/hooks-public-provision-database-with-user/SKILL.md rename to skills/hooks-public/references/provision-database-with-user.md index 19267b7ac..3fdf98ab2 100644 --- a/skills/hooks-public-provision-database-with-user/SKILL.md +++ b/skills/hooks-public/references/provision-database-with-user.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-provision-database-with-user -description: React Query mutation hook for provisionDatabaseWithUser ---- - -# hooks-public-provision-database-with-user +# provisionDatabaseWithUser diff --git a/skills/hooks-objects-ref/SKILL.md b/skills/hooks-public/references/ref.md similarity index 88% rename from skills/hooks-objects-ref/SKILL.md rename to skills/hooks-public/references/ref.md index 358fde457..d8b3b24c7 100644 --- a/skills/hooks-objects-ref/SKILL.md +++ b/skills/hooks-public/references/ref.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-ref -description: A ref is a data structure for pointing to a commit. ---- - -# hooks-objects-ref +# ref diff --git a/skills/hooks-public-relation-provision/SKILL.md b/skills/hooks-public/references/relation-provision.md similarity index 76% rename from skills/hooks-public-relation-provision/SKILL.md rename to skills/hooks-public/references/relation-provision.md index 4093ee0ad..4c6d4bc38 100644 --- a/skills/hooks-public-relation-provision/SKILL.md +++ b/skills/hooks-public/references/relation-provision.md @@ -1,16 +1,4 @@ ---- -name: hooks-public-relation-provision -description: 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. ---- - -# hooks-public-relation-provision +# relationProvision diff --git a/skills/hooks-objects-remove-node-at-path/SKILL.md b/skills/hooks-public/references/remove-node-at-path.md similarity index 72% rename from skills/hooks-objects-remove-node-at-path/SKILL.md rename to skills/hooks-public/references/remove-node-at-path.md index 1b1db3d7c..32d199b7e 100644 --- a/skills/hooks-objects-remove-node-at-path/SKILL.md +++ b/skills/hooks-public/references/remove-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-remove-node-at-path -description: React Query mutation hook for removeNodeAtPath ---- - -# hooks-objects-remove-node-at-path +# removeNodeAtPath diff --git a/skills/hooks-public-reset-password/SKILL.md b/skills/hooks-public/references/reset-password.md similarity index 73% rename from skills/hooks-public-reset-password/SKILL.md rename to skills/hooks-public/references/reset-password.md index 98f8628d8..490bccf5d 100644 --- a/skills/hooks-public-reset-password/SKILL.md +++ b/skills/hooks-public/references/reset-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-reset-password -description: React Query mutation hook for resetPassword ---- - -# hooks-public-reset-password +# resetPassword diff --git a/skills/hooks-objects-rev-parse/SKILL.md b/skills/hooks-public/references/rev-parse.md similarity index 76% rename from skills/hooks-objects-rev-parse/SKILL.md rename to skills/hooks-public/references/rev-parse.md index 3b08f65b0..653d003af 100644 --- a/skills/hooks-objects-rev-parse/SKILL.md +++ b/skills/hooks-public/references/rev-parse.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-rev-parse -description: React Query query hook for revParse ---- - -# hooks-objects-rev-parse +# revParse diff --git a/skills/hooks-public-rls-module/SKILL.md b/skills/hooks-public/references/rls-module.md similarity index 93% rename from skills/hooks-public-rls-module/SKILL.md rename to skills/hooks-public/references/rls-module.md index 0331c3c06..b5a36de0b 100644 --- a/skills/hooks-public-rls-module/SKILL.md +++ b/skills/hooks-public/references/rls-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-rls-module -description: React Query hooks for RlsModule data operations ---- - -# hooks-public-rls-module +# rlsModule diff --git a/skills/hooks-public-role-type/SKILL.md b/skills/hooks-public/references/role-type.md similarity index 86% rename from skills/hooks-public-role-type/SKILL.md rename to skills/hooks-public/references/role-type.md index 4ad8305d0..8ba5dde40 100644 --- a/skills/hooks-public-role-type/SKILL.md +++ b/skills/hooks-public/references/role-type.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-role-type -description: React Query hooks for RoleType data operations ---- - -# hooks-public-role-type +# roleType diff --git a/skills/hooks-public-schema-grant/SKILL.md b/skills/hooks-public/references/schema-grant.md similarity index 89% rename from skills/hooks-public-schema-grant/SKILL.md rename to skills/hooks-public/references/schema-grant.md index 5e70cea08..253b69a09 100644 --- a/skills/hooks-public-schema-grant/SKILL.md +++ b/skills/hooks-public/references/schema-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-schema-grant -description: React Query hooks for SchemaGrant data operations ---- - -# hooks-public-schema-grant +# schemaGrant diff --git a/skills/hooks-public-schema/SKILL.md b/skills/hooks-public/references/schema.md similarity index 93% rename from skills/hooks-public-schema/SKILL.md rename to skills/hooks-public/references/schema.md index f8a4fc234..ad8f9bc26 100644 --- a/skills/hooks-public-schema/SKILL.md +++ b/skills/hooks-public/references/schema.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-schema -description: React Query hooks for Schema data operations ---- - -# hooks-public-schema +# schema diff --git a/skills/hooks-public-secrets-module/SKILL.md b/skills/hooks-public/references/secrets-module.md similarity index 88% rename from skills/hooks-public-secrets-module/SKILL.md rename to skills/hooks-public/references/secrets-module.md index 3898699ad..8146024dc 100644 --- a/skills/hooks-public-secrets-module/SKILL.md +++ b/skills/hooks-public/references/secrets-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-secrets-module -description: React Query hooks for SecretsModule data operations ---- - -# hooks-public-secrets-module +# secretsModule diff --git a/skills/hooks-public-secure-table-provision/SKILL.md b/skills/hooks-public/references/secure-table-provision.md similarity index 84% rename from skills/hooks-public-secure-table-provision/SKILL.md rename to skills/hooks-public/references/secure-table-provision.md index 1f35ad63f..ba4f77f79 100644 --- a/skills/hooks-public-secure-table-provision/SKILL.md +++ b/skills/hooks-public/references/secure-table-provision.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-secure-table-provision -description: Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. ---- - -# hooks-public-secure-table-provision +# secureTableProvision diff --git a/skills/hooks-public-send-account-deletion-email/SKILL.md b/skills/hooks-public/references/send-account-deletion-email.md similarity index 70% rename from skills/hooks-public-send-account-deletion-email/SKILL.md rename to skills/hooks-public/references/send-account-deletion-email.md index a6772aa5d..6d43414a2 100644 --- a/skills/hooks-public-send-account-deletion-email/SKILL.md +++ b/skills/hooks-public/references/send-account-deletion-email.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-send-account-deletion-email -description: React Query mutation hook for sendAccountDeletionEmail ---- - -# hooks-public-send-account-deletion-email +# sendAccountDeletionEmail diff --git a/skills/hooks-public-send-verification-email/SKILL.md b/skills/hooks-public/references/send-verification-email.md similarity index 71% rename from skills/hooks-public-send-verification-email/SKILL.md rename to skills/hooks-public/references/send-verification-email.md index 9b159015f..36e6216fd 100644 --- a/skills/hooks-public-send-verification-email/SKILL.md +++ b/skills/hooks-public/references/send-verification-email.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-send-verification-email -description: React Query mutation hook for sendVerificationEmail ---- - -# hooks-public-send-verification-email +# sendVerificationEmail diff --git a/skills/hooks-public-sessions-module/SKILL.md b/skills/hooks-public/references/sessions-module.md similarity index 92% rename from skills/hooks-public-sessions-module/SKILL.md rename to skills/hooks-public/references/sessions-module.md index bd301b680..51c5d9ffd 100644 --- a/skills/hooks-public-sessions-module/SKILL.md +++ b/skills/hooks-public/references/sessions-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-sessions-module -description: React Query hooks for SessionsModule data operations ---- - -# hooks-public-sessions-module +# sessionsModule diff --git a/skills/hooks-objects-set-and-commit/SKILL.md b/skills/hooks-public/references/set-and-commit.md similarity index 73% rename from skills/hooks-objects-set-and-commit/SKILL.md rename to skills/hooks-public/references/set-and-commit.md index cb5bba34d..7e69d5b13 100644 --- a/skills/hooks-objects-set-and-commit/SKILL.md +++ b/skills/hooks-public/references/set-and-commit.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-set-and-commit -description: React Query mutation hook for setAndCommit ---- - -# hooks-objects-set-and-commit +# setAndCommit diff --git a/skills/hooks-objects-set-data-at-path/SKILL.md b/skills/hooks-public/references/set-data-at-path.md similarity index 72% rename from skills/hooks-objects-set-data-at-path/SKILL.md rename to skills/hooks-public/references/set-data-at-path.md index 7afe7e38b..ff6629dec 100644 --- a/skills/hooks-objects-set-data-at-path/SKILL.md +++ b/skills/hooks-public/references/set-data-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-set-data-at-path -description: React Query mutation hook for setDataAtPath ---- - -# hooks-objects-set-data-at-path +# setDataAtPath diff --git a/skills/hooks-public-set-field-order/SKILL.md b/skills/hooks-public/references/set-field-order.md similarity index 73% rename from skills/hooks-public-set-field-order/SKILL.md rename to skills/hooks-public/references/set-field-order.md index 224e6b87b..4ff6c672c 100644 --- a/skills/hooks-public-set-field-order/SKILL.md +++ b/skills/hooks-public/references/set-field-order.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-set-field-order -description: React Query mutation hook for setFieldOrder ---- - -# hooks-public-set-field-order +# setFieldOrder diff --git a/skills/hooks-public-set-password/SKILL.md b/skills/hooks-public/references/set-password.md similarity index 74% rename from skills/hooks-public-set-password/SKILL.md rename to skills/hooks-public/references/set-password.md index e196b99fa..7c43ee11f 100644 --- a/skills/hooks-public-set-password/SKILL.md +++ b/skills/hooks-public/references/set-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-set-password -description: React Query mutation hook for setPassword ---- - -# hooks-public-set-password +# setPassword diff --git a/skills/hooks-objects-set-props-and-commit/SKILL.md b/skills/hooks-public/references/set-props-and-commit.md similarity index 71% rename from skills/hooks-objects-set-props-and-commit/SKILL.md rename to skills/hooks-public/references/set-props-and-commit.md index 74f7098f4..ff62e4969 100644 --- a/skills/hooks-objects-set-props-and-commit/SKILL.md +++ b/skills/hooks-public/references/set-props-and-commit.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-set-props-and-commit -description: React Query mutation hook for setPropsAndCommit ---- - -# hooks-objects-set-props-and-commit +# setPropsAndCommit diff --git a/skills/hooks-public-sign-in-one-time-token/SKILL.md b/skills/hooks-public/references/sign-in-one-time-token.md similarity index 71% rename from skills/hooks-public-sign-in-one-time-token/SKILL.md rename to skills/hooks-public/references/sign-in-one-time-token.md index d4ce14548..8f7d4515c 100644 --- a/skills/hooks-public-sign-in-one-time-token/SKILL.md +++ b/skills/hooks-public/references/sign-in-one-time-token.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-sign-in-one-time-token -description: React Query mutation hook for signInOneTimeToken ---- - -# hooks-public-sign-in-one-time-token +# signInOneTimeToken diff --git a/skills/hooks-public-sign-in/SKILL.md b/skills/hooks-public/references/sign-in.md similarity index 75% rename from skills/hooks-public-sign-in/SKILL.md rename to skills/hooks-public/references/sign-in.md index a187f523f..bdc2cec2c 100644 --- a/skills/hooks-public-sign-in/SKILL.md +++ b/skills/hooks-public/references/sign-in.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-sign-in -description: React Query mutation hook for signIn ---- - -# hooks-public-sign-in +# signIn diff --git a/skills/hooks-public-sign-out/SKILL.md b/skills/hooks-public/references/sign-out.md similarity index 75% rename from skills/hooks-public-sign-out/SKILL.md rename to skills/hooks-public/references/sign-out.md index 0bf79a8df..e36cac158 100644 --- a/skills/hooks-public-sign-out/SKILL.md +++ b/skills/hooks-public/references/sign-out.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-sign-out -description: React Query mutation hook for signOut ---- - -# hooks-public-sign-out +# signOut diff --git a/skills/hooks-public-sign-up/SKILL.md b/skills/hooks-public/references/sign-up.md similarity index 75% rename from skills/hooks-public-sign-up/SKILL.md rename to skills/hooks-public/references/sign-up.md index b24ad349f..ba93ac7ed 100644 --- a/skills/hooks-public-sign-up/SKILL.md +++ b/skills/hooks-public/references/sign-up.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-sign-up -description: React Query mutation hook for signUp ---- - -# hooks-public-sign-up +# signUp diff --git a/skills/hooks-public-site-metadatum/SKILL.md b/skills/hooks-public/references/site-metadatum.md similarity index 86% rename from skills/hooks-public-site-metadatum/SKILL.md rename to skills/hooks-public/references/site-metadatum.md index fe2f8c9da..c9ae077bc 100644 --- a/skills/hooks-public-site-metadatum/SKILL.md +++ b/skills/hooks-public/references/site-metadatum.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-site-metadatum -description: SEO and social sharing metadata for a site: page title, description, and Open Graph image ---- - -# hooks-public-site-metadatum +# siteMetadatum diff --git a/skills/hooks-public-site-module/SKILL.md b/skills/hooks-public/references/site-module.md similarity index 84% rename from skills/hooks-public-site-module/SKILL.md rename to skills/hooks-public/references/site-module.md index b1b65dba1..144ac3db3 100644 --- a/skills/hooks-public-site-module/SKILL.md +++ b/skills/hooks-public/references/site-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-site-module -description: Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site ---- - -# hooks-public-site-module +# siteModule diff --git a/skills/hooks-public-site-theme/SKILL.md b/skills/hooks-public/references/site-theme.md similarity index 85% rename from skills/hooks-public-site-theme/SKILL.md rename to skills/hooks-public/references/site-theme.md index fc3288966..651279757 100644 --- a/skills/hooks-public-site-theme/SKILL.md +++ b/skills/hooks-public/references/site-theme.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-site-theme -description: Theme configuration for a site; stores design tokens, colors, and typography as JSONB ---- - -# hooks-public-site-theme +# siteTheme diff --git a/skills/hooks-public-site/SKILL.md b/skills/hooks-public/references/site.md similarity index 88% rename from skills/hooks-public-site/SKILL.md rename to skills/hooks-public/references/site.md index 06d485206..d622de95b 100644 --- a/skills/hooks-public-site/SKILL.md +++ b/skills/hooks-public/references/site.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-site -description: Top-level site configuration: branding assets, title, and description for a deployed application ---- - -# hooks-public-site +# site diff --git a/skills/hooks-public-sql-migration/SKILL.md b/skills/hooks-public/references/sql-migration.md similarity index 91% rename from skills/hooks-public-sql-migration/SKILL.md rename to skills/hooks-public/references/sql-migration.md index e6b3b6eb3..62b6eea24 100644 --- a/skills/hooks-public-sql-migration/SKILL.md +++ b/skills/hooks-public/references/sql-migration.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-sql-migration -description: React Query hooks for SqlMigration data operations ---- - -# hooks-public-sql-migration +# sqlMigration diff --git a/skills/hooks-public-steps-achieved/SKILL.md b/skills/hooks-public/references/steps-achieved.md similarity index 73% rename from skills/hooks-public-steps-achieved/SKILL.md rename to skills/hooks-public/references/steps-achieved.md index 7cfbe6929..cf0a84d43 100644 --- a/skills/hooks-public-steps-achieved/SKILL.md +++ b/skills/hooks-public/references/steps-achieved.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-steps-achieved -description: React Query query hook for stepsAchieved ---- - -# hooks-public-steps-achieved +# stepsAchieved diff --git a/skills/hooks-public-steps-required/SKILL.md b/skills/hooks-public/references/steps-required.md similarity index 75% rename from skills/hooks-public-steps-required/SKILL.md rename to skills/hooks-public/references/steps-required.md index acf69742f..e50844b6b 100644 --- a/skills/hooks-public-steps-required/SKILL.md +++ b/skills/hooks-public/references/steps-required.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-steps-required -description: Reads and enables pagination through a set of `AppLevelRequirement`. ---- - -# hooks-public-steps-required +# stepsRequired diff --git a/skills/hooks-objects-store/SKILL.md b/skills/hooks-public/references/store.md similarity index 87% rename from skills/hooks-objects-store/SKILL.md rename to skills/hooks-public/references/store.md index 351af0d2f..07e008520 100644 --- a/skills/hooks-objects-store/SKILL.md +++ b/skills/hooks-public/references/store.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-store -description: A store represents an isolated object repository within a database. ---- - -# hooks-objects-store +# store diff --git a/skills/hooks-public-submit-invite-code/SKILL.md b/skills/hooks-public/references/submit-invite-code.md similarity index 72% rename from skills/hooks-public-submit-invite-code/SKILL.md rename to skills/hooks-public/references/submit-invite-code.md index c1eb54383..e774b7aba 100644 --- a/skills/hooks-public-submit-invite-code/SKILL.md +++ b/skills/hooks-public/references/submit-invite-code.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-submit-invite-code -description: React Query mutation hook for submitInviteCode ---- - -# hooks-public-submit-invite-code +# submitInviteCode diff --git a/skills/hooks-public-submit-org-invite-code/SKILL.md b/skills/hooks-public/references/submit-org-invite-code.md similarity index 71% rename from skills/hooks-public-submit-org-invite-code/SKILL.md rename to skills/hooks-public/references/submit-org-invite-code.md index f32350575..4a70f698f 100644 --- a/skills/hooks-public-submit-org-invite-code/SKILL.md +++ b/skills/hooks-public/references/submit-org-invite-code.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-submit-org-invite-code -description: React Query mutation hook for submitOrgInviteCode ---- - -# hooks-public-submit-org-invite-code +# submitOrgInviteCode diff --git a/skills/hooks-public-table-grant/SKILL.md b/skills/hooks-public/references/table-grant.md similarity index 90% rename from skills/hooks-public-table-grant/SKILL.md rename to skills/hooks-public/references/table-grant.md index e91fcf003..e05d6635d 100644 --- a/skills/hooks-public-table-grant/SKILL.md +++ b/skills/hooks-public/references/table-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-table-grant -description: React Query hooks for TableGrant data operations ---- - -# hooks-public-table-grant +# tableGrant diff --git a/skills/hooks-public-table-module/SKILL.md b/skills/hooks-public/references/table-module.md similarity index 90% rename from skills/hooks-public-table-module/SKILL.md rename to skills/hooks-public/references/table-module.md index 8dd082283..b78bae6b7 100644 --- a/skills/hooks-public-table-module/SKILL.md +++ b/skills/hooks-public/references/table-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-table-module -description: React Query hooks for TableModule data operations ---- - -# hooks-public-table-module +# tableModule diff --git a/skills/hooks-public-table-template-module/SKILL.md b/skills/hooks-public/references/table-template-module.md similarity index 89% rename from skills/hooks-public-table-template-module/SKILL.md rename to skills/hooks-public/references/table-template-module.md index 6e009fbd3..cda37ff35 100644 --- a/skills/hooks-public-table-template-module/SKILL.md +++ b/skills/hooks-public/references/table-template-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-table-template-module -description: React Query hooks for TableTemplateModule data operations ---- - -# hooks-public-table-template-module +# tableTemplateModule diff --git a/skills/hooks-public-table/SKILL.md b/skills/hooks-public/references/table.md similarity index 94% rename from skills/hooks-public-table/SKILL.md rename to skills/hooks-public/references/table.md index 7a2739e56..963c4c5e0 100644 --- a/skills/hooks-public-table/SKILL.md +++ b/skills/hooks-public/references/table.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-table -description: React Query hooks for Table data operations ---- - -# hooks-public-table +# table diff --git a/skills/hooks-public-trigger-function/SKILL.md b/skills/hooks-public/references/trigger-function.md similarity index 88% rename from skills/hooks-public-trigger-function/SKILL.md rename to skills/hooks-public/references/trigger-function.md index 0a968a460..9f9063368 100644 --- a/skills/hooks-public-trigger-function/SKILL.md +++ b/skills/hooks-public/references/trigger-function.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-trigger-function -description: React Query hooks for TriggerFunction data operations ---- - -# hooks-public-trigger-function +# triggerFunction diff --git a/skills/hooks-public-trigger/SKILL.md b/skills/hooks-public/references/trigger.md similarity index 92% rename from skills/hooks-public-trigger/SKILL.md rename to skills/hooks-public/references/trigger.md index 089ad8bd0..faed2e09c 100644 --- a/skills/hooks-public-trigger/SKILL.md +++ b/skills/hooks-public/references/trigger.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-trigger -description: React Query hooks for Trigger data operations ---- - -# hooks-public-trigger +# trigger diff --git a/skills/hooks-public-unique-constraint/SKILL.md b/skills/hooks-public/references/unique-constraint.md similarity index 91% rename from skills/hooks-public-unique-constraint/SKILL.md rename to skills/hooks-public/references/unique-constraint.md index 32e1d3483..0757bb6f2 100644 --- a/skills/hooks-public-unique-constraint/SKILL.md +++ b/skills/hooks-public/references/unique-constraint.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-unique-constraint -description: React Query hooks for UniqueConstraint data operations ---- - -# hooks-public-unique-constraint +# uniqueConstraint diff --git a/skills/hooks-objects-update-node-at-path/SKILL.md b/skills/hooks-public/references/update-node-at-path.md similarity index 72% rename from skills/hooks-objects-update-node-at-path/SKILL.md rename to skills/hooks-public/references/update-node-at-path.md index 0a005d4ff..97a9f8bc1 100644 --- a/skills/hooks-objects-update-node-at-path/SKILL.md +++ b/skills/hooks-public/references/update-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: hooks-objects-update-node-at-path -description: React Query mutation hook for updateNodeAtPath ---- - -# hooks-objects-update-node-at-path +# updateNodeAtPath diff --git a/skills/hooks-public-user-auth-module/SKILL.md b/skills/hooks-public/references/user-auth-module.md similarity index 96% rename from skills/hooks-public-user-auth-module/SKILL.md rename to skills/hooks-public/references/user-auth-module.md index 512516e37..5a24f49f1 100644 --- a/skills/hooks-public-user-auth-module/SKILL.md +++ b/skills/hooks-public/references/user-auth-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-user-auth-module -description: React Query hooks for UserAuthModule data operations ---- - -# hooks-public-user-auth-module +# userAuthModule diff --git a/skills/hooks-public-user/SKILL.md b/skills/hooks-public/references/user.md similarity index 91% rename from skills/hooks-public-user/SKILL.md rename to skills/hooks-public/references/user.md index d6486e876..9d3a8cf6b 100644 --- a/skills/hooks-public-user/SKILL.md +++ b/skills/hooks-public/references/user.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-user -description: React Query hooks for User data operations ---- - -# hooks-public-user +# user diff --git a/skills/hooks-public-users-module/SKILL.md b/skills/hooks-public/references/users-module.md similarity index 90% rename from skills/hooks-public-users-module/SKILL.md rename to skills/hooks-public/references/users-module.md index 3a6f8de7e..29b816289 100644 --- a/skills/hooks-public-users-module/SKILL.md +++ b/skills/hooks-public/references/users-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-users-module -description: React Query hooks for UsersModule data operations ---- - -# hooks-public-users-module +# usersModule diff --git a/skills/hooks-public-uuid-module/SKILL.md b/skills/hooks-public/references/uuid-module.md similarity index 88% rename from skills/hooks-public-uuid-module/SKILL.md rename to skills/hooks-public/references/uuid-module.md index e3e991330..d389dd213 100644 --- a/skills/hooks-public-uuid-module/SKILL.md +++ b/skills/hooks-public/references/uuid-module.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-uuid-module -description: React Query hooks for UuidModule data operations ---- - -# hooks-public-uuid-module +# uuidModule diff --git a/skills/hooks-public-verify-email/SKILL.md b/skills/hooks-public/references/verify-email.md similarity index 74% rename from skills/hooks-public-verify-email/SKILL.md rename to skills/hooks-public/references/verify-email.md index 05056fadc..14a317763 100644 --- a/skills/hooks-public-verify-email/SKILL.md +++ b/skills/hooks-public/references/verify-email.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-verify-email -description: React Query mutation hook for verifyEmail ---- - -# hooks-public-verify-email +# verifyEmail diff --git a/skills/hooks-public-verify-password/SKILL.md b/skills/hooks-public/references/verify-password.md similarity index 73% rename from skills/hooks-public-verify-password/SKILL.md rename to skills/hooks-public/references/verify-password.md index 6cbe59bca..09e407a2b 100644 --- a/skills/hooks-public-verify-password/SKILL.md +++ b/skills/hooks-public/references/verify-password.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-verify-password -description: React Query mutation hook for verifyPassword ---- - -# hooks-public-verify-password +# verifyPassword diff --git a/skills/hooks-public-verify-totp/SKILL.md b/skills/hooks-public/references/verify-totp.md similarity index 74% rename from skills/hooks-public-verify-totp/SKILL.md rename to skills/hooks-public/references/verify-totp.md index 449d5581a..b5654b525 100644 --- a/skills/hooks-public-verify-totp/SKILL.md +++ b/skills/hooks-public/references/verify-totp.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-verify-totp -description: React Query mutation hook for verifyTotp ---- - -# hooks-public-verify-totp +# verifyTotp diff --git a/skills/hooks-public-view-grant/SKILL.md b/skills/hooks-public/references/view-grant.md similarity index 90% rename from skills/hooks-public-view-grant/SKILL.md rename to skills/hooks-public/references/view-grant.md index 1829f9898..4410d7356 100644 --- a/skills/hooks-public-view-grant/SKILL.md +++ b/skills/hooks-public/references/view-grant.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-view-grant -description: React Query hooks for ViewGrant data operations ---- - -# hooks-public-view-grant +# viewGrant diff --git a/skills/hooks-public-view-rule/SKILL.md b/skills/hooks-public/references/view-rule.md similarity index 88% rename from skills/hooks-public-view-rule/SKILL.md rename to skills/hooks-public/references/view-rule.md index 9056711f5..fb1807bd5 100644 --- a/skills/hooks-public-view-rule/SKILL.md +++ b/skills/hooks-public/references/view-rule.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-view-rule -description: DO INSTEAD rules for views (e.g., read-only enforcement) ---- - -# hooks-public-view-rule +# viewRule diff --git a/skills/hooks-public-view-table/SKILL.md b/skills/hooks-public/references/view-table.md similarity index 86% rename from skills/hooks-public-view-table/SKILL.md rename to skills/hooks-public/references/view-table.md index 378f938f8..4c5840383 100644 --- a/skills/hooks-public-view-table/SKILL.md +++ b/skills/hooks-public/references/view-table.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-view-table -description: Junction table linking views to their joined tables for referential integrity ---- - -# hooks-public-view-table +# viewTable diff --git a/skills/hooks-public-view/SKILL.md b/skills/hooks-public/references/view.md similarity index 94% rename from skills/hooks-public-view/SKILL.md rename to skills/hooks-public/references/view.md index 0c5a730d2..ef25cd354 100644 --- a/skills/hooks-public-view/SKILL.md +++ b/skills/hooks-public/references/view.md @@ -1,9 +1,4 @@ ---- -name: hooks-public-view -description: React Query hooks for View data operations ---- - -# hooks-public-view +# view diff --git a/skills/orm-admin/SKILL.md b/skills/orm-admin/SKILL.md new file mode 100644 index 000000000..68d975e5a --- /dev/null +++ b/skills/orm-admin/SKILL.md @@ -0,0 +1,84 @@ +--- +name: orm-admin +description: ORM client for the admin API — provides typed CRUD operations for 32 tables and 13 custom operations +--- + +# orm-admin + + + +ORM client for the admin API — provides typed CRUD operations for 32 tables and 13 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, orgPermission, appLevelRequirement, orgMember, appPermissionDefault, orgPermissionDefault, ... +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +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) +- [org-permission](references/org-permission.md) +- [app-level-requirement](references/app-level-requirement.md) +- [org-member](references/org-member.md) +- [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.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) +- [org-owner-grant](references/org-owner-grant.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [membership-type](references/membership-type.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [app-achievement](references/app-achievement.md) +- [app-step](references/app-step.md) +- [claimed-invite](references/claimed-invite.md) +- [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-limit](references/org-limit.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-membership-default](references/org-membership-default.md) +- [invite](references/invite.md) +- [app-level](references/app-level.md) +- [app-membership](references/app-membership.md) +- [org-membership](references/org-membership.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) +- [org-is-manager-of](references/org-is-manager-of.md) +- [steps-achieved](references/steps-achieved.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [steps-required](references/steps-required.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/skills/orm-admin-app-achievement/SKILL.md b/skills/orm-admin/references/app-achievement.md similarity index 82% rename from skills/orm-admin-app-achievement/SKILL.md rename to skills/orm-admin/references/app-achievement.md index c85935335..9a70ab997 100644 --- a/skills/orm-admin-app-achievement/SKILL.md +++ b/skills/orm-admin/references/app-achievement.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-achievement -description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ---- - -# orm-admin-app-achievement +# appAchievement diff --git a/skills/orm-admin-app-admin-grant/SKILL.md b/skills/orm-admin/references/app-admin-grant.md similarity index 87% rename from skills/orm-admin-app-admin-grant/SKILL.md rename to skills/orm-admin/references/app-admin-grant.md index 1d925d911..ad7a25953 100644 --- a/skills/orm-admin-app-admin-grant/SKILL.md +++ b/skills/orm-admin/references/app-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-admin-grant -description: Records of admin role grants and revocations between members ---- - -# orm-admin-app-admin-grant +# appAdminGrant diff --git a/skills/orm-admin-app-grant/SKILL.md b/skills/orm-admin/references/app-grant.md similarity index 86% rename from skills/orm-admin-app-grant/SKILL.md rename to skills/orm-admin/references/app-grant.md index 4ccb99074..297f0df6c 100644 --- a/skills/orm-admin-app-grant/SKILL.md +++ b/skills/orm-admin/references/app-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# orm-admin-app-grant +# appGrant diff --git a/skills/orm-admin-app-level-requirement/SKILL.md b/skills/orm-admin/references/app-level-requirement.md similarity index 87% rename from skills/orm-admin-app-level-requirement/SKILL.md rename to skills/orm-admin/references/app-level-requirement.md index e95d9ef97..0974f67da 100644 --- a/skills/orm-admin-app-level-requirement/SKILL.md +++ b/skills/orm-admin/references/app-level-requirement.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-level-requirement -description: Defines the specific requirements that must be met to achieve a level ---- - -# orm-admin-app-level-requirement +# appLevelRequirement diff --git a/skills/orm-admin-app-level/SKILL.md b/skills/orm-admin/references/app-level.md similarity index 86% rename from skills/orm-admin-app-level/SKILL.md rename to skills/orm-admin/references/app-level.md index f3d71f819..d5d0b05c3 100644 --- a/skills/orm-admin-app-level/SKILL.md +++ b/skills/orm-admin/references/app-level.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-level -description: Defines available levels that users can achieve by completing requirements ---- - -# orm-admin-app-level +# appLevel diff --git a/skills/orm-admin-app-limit-default/SKILL.md b/skills/orm-admin/references/app-limit-default.md similarity index 84% rename from skills/orm-admin-app-limit-default/SKILL.md rename to skills/orm-admin/references/app-limit-default.md index 3fc6e9593..10261cebe 100644 --- a/skills/orm-admin-app-limit-default/SKILL.md +++ b/skills/orm-admin/references/app-limit-default.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# orm-admin-app-limit-default +# appLimitDefault diff --git a/skills/orm-admin-app-limit/SKILL.md b/skills/orm-admin/references/app-limit.md similarity index 87% rename from skills/orm-admin-app-limit/SKILL.md rename to skills/orm-admin/references/app-limit.md index 22d634c6e..df69f2ac3 100644 --- a/skills/orm-admin-app-limit/SKILL.md +++ b/skills/orm-admin/references/app-limit.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# orm-admin-app-limit +# appLimit diff --git a/skills/orm-admin-app-membership-default/SKILL.md b/skills/orm-admin/references/app-membership-default.md similarity index 84% rename from skills/orm-admin-app-membership-default/SKILL.md rename to skills/orm-admin/references/app-membership-default.md index e78c1c85c..451f17940 100644 --- a/skills/orm-admin-app-membership-default/SKILL.md +++ b/skills/orm-admin/references/app-membership-default.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# orm-admin-app-membership-default +# appMembershipDefault diff --git a/skills/orm-admin-app-membership/SKILL.md b/skills/orm-admin/references/app-membership.md similarity index 88% rename from skills/orm-admin-app-membership/SKILL.md rename to skills/orm-admin/references/app-membership.md index 784e49cda..85515d3ce 100644 --- a/skills/orm-admin-app-membership/SKILL.md +++ b/skills/orm-admin/references/app-membership.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# orm-admin-app-membership +# appMembership diff --git a/skills/orm-admin-app-owner-grant/SKILL.md b/skills/orm-admin/references/app-owner-grant.md similarity index 87% rename from skills/orm-admin-app-owner-grant/SKILL.md rename to skills/orm-admin/references/app-owner-grant.md index 1b966b5fe..bef70f35c 100644 --- a/skills/orm-admin-app-owner-grant/SKILL.md +++ b/skills/orm-admin/references/app-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-owner-grant -description: Records of ownership transfers and grants between members ---- - -# orm-admin-app-owner-grant +# appOwnerGrant diff --git a/skills/orm-admin-app-permission-default/SKILL.md b/skills/orm-admin/references/app-permission-default.md similarity index 85% rename from skills/orm-admin-app-permission-default/SKILL.md rename to skills/orm-admin/references/app-permission-default.md index 4cbeb392c..78616d665 100644 --- a/skills/orm-admin-app-permission-default/SKILL.md +++ b/skills/orm-admin/references/app-permission-default.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# orm-admin-app-permission-default +# appPermissionDefault diff --git a/skills/orm-admin-app-permission/SKILL.md b/skills/orm-admin/references/app-permission.md similarity index 84% rename from skills/orm-admin-app-permission/SKILL.md rename to skills/orm-admin/references/app-permission.md index a432daf2f..14eac6378 100644 --- a/skills/orm-admin-app-permission/SKILL.md +++ b/skills/orm-admin/references/app-permission.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# orm-admin-app-permission +# appPermission diff --git a/skills/orm-admin-app-permissions-get-by-mask/SKILL.md b/skills/orm-admin/references/app-permissions-get-by-mask.md similarity index 73% rename from skills/orm-admin-app-permissions-get-by-mask/SKILL.md rename to skills/orm-admin/references/app-permissions-get-by-mask.md index 9b44e8877..b5fc838fb 100644 --- a/skills/orm-admin-app-permissions-get-by-mask/SKILL.md +++ b/skills/orm-admin/references/app-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-permissions-get-by-mask -description: Reads and enables pagination through a set of `AppPermission`. ---- - -# orm-admin-app-permissions-get-by-mask +# appPermissionsGetByMask diff --git a/skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md b/skills/orm-admin/references/app-permissions-get-mask-by-names.md similarity index 68% rename from skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md rename to skills/orm-admin/references/app-permissions-get-mask-by-names.md index db45d58d6..aac070083 100644 --- a/skills/orm-admin-app-permissions-get-mask-by-names/SKILL.md +++ b/skills/orm-admin/references/app-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-permissions-get-mask-by-names -description: Execute the appPermissionsGetMaskByNames query ---- - -# orm-admin-app-permissions-get-mask-by-names +# appPermissionsGetMaskByNames diff --git a/skills/orm-admin-app-permissions-get-mask/SKILL.md b/skills/orm-admin/references/app-permissions-get-mask.md similarity index 70% rename from skills/orm-admin-app-permissions-get-mask/SKILL.md rename to skills/orm-admin/references/app-permissions-get-mask.md index bbb736967..7b74f41d1 100644 --- a/skills/orm-admin-app-permissions-get-mask/SKILL.md +++ b/skills/orm-admin/references/app-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-permissions-get-mask -description: Execute the appPermissionsGetMask query ---- - -# orm-admin-app-permissions-get-mask +# appPermissionsGetMask diff --git a/skills/orm-admin-app-permissions-get-padded-mask/SKILL.md b/skills/orm-admin/references/app-permissions-get-padded-mask.md similarity index 69% rename from skills/orm-admin-app-permissions-get-padded-mask/SKILL.md rename to skills/orm-admin/references/app-permissions-get-padded-mask.md index b92460a7a..a13bde22a 100644 --- a/skills/orm-admin-app-permissions-get-padded-mask/SKILL.md +++ b/skills/orm-admin/references/app-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-permissions-get-padded-mask -description: Execute the appPermissionsGetPaddedMask query ---- - -# orm-admin-app-permissions-get-padded-mask +# appPermissionsGetPaddedMask diff --git a/skills/orm-admin-app-step/SKILL.md b/skills/orm-admin/references/app-step.md similarity index 84% rename from skills/orm-admin-app-step/SKILL.md rename to skills/orm-admin/references/app-step.md index 2a06fb08d..52eecd7f3 100644 --- a/skills/orm-admin-app-step/SKILL.md +++ b/skills/orm-admin/references/app-step.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-app-step -description: Log of individual user actions toward level requirements; every single step ever taken is recorded here ---- - -# orm-admin-app-step +# appStep diff --git a/skills/orm-admin-claimed-invite/SKILL.md b/skills/orm-admin/references/claimed-invite.md similarity index 86% rename from skills/orm-admin-claimed-invite/SKILL.md rename to skills/orm-admin/references/claimed-invite.md index 8a216347d..35a2f1fc7 100644 --- a/skills/orm-admin-claimed-invite/SKILL.md +++ b/skills/orm-admin/references/claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# orm-admin-claimed-invite +# claimedInvite diff --git a/skills/orm-admin-invite/SKILL.md b/skills/orm-admin/references/invite.md similarity index 87% rename from skills/orm-admin-invite/SKILL.md rename to skills/orm-admin/references/invite.md index b6f18ede2..58d4f5fd7 100644 --- a/skills/orm-admin-invite/SKILL.md +++ b/skills/orm-admin/references/invite.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# orm-admin-invite +# invite diff --git a/skills/orm-admin-membership-type/SKILL.md b/skills/orm-admin/references/membership-type.md similarity index 84% rename from skills/orm-admin-membership-type/SKILL.md rename to skills/orm-admin/references/membership-type.md index d68f1fdc3..f53c9f806 100644 --- a/skills/orm-admin-membership-type/SKILL.md +++ b/skills/orm-admin/references/membership-type.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-membership-type -description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ---- - -# orm-admin-membership-type +# membershipType diff --git a/skills/orm-admin-org-admin-grant/SKILL.md b/skills/orm-admin/references/org-admin-grant.md similarity index 87% rename from skills/orm-admin-org-admin-grant/SKILL.md rename to skills/orm-admin/references/org-admin-grant.md index 2f5001369..0d5f67026 100644 --- a/skills/orm-admin-org-admin-grant/SKILL.md +++ b/skills/orm-admin/references/org-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-admin-grant -description: Records of admin role grants and revocations between members ---- - -# orm-admin-org-admin-grant +# orgAdminGrant diff --git a/skills/orm-admin-org-chart-edge-grant/SKILL.md b/skills/orm-admin/references/org-chart-edge-grant.md similarity index 86% rename from skills/orm-admin-org-chart-edge-grant/SKILL.md rename to skills/orm-admin/references/org-chart-edge-grant.md index c96232884..55c97a1cb 100644 --- a/skills/orm-admin-org-chart-edge-grant/SKILL.md +++ b/skills/orm-admin/references/org-chart-edge-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-chart-edge-grant -description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table ---- - -# orm-admin-org-chart-edge-grant +# orgChartEdgeGrant diff --git a/skills/orm-admin-org-chart-edge/SKILL.md b/skills/orm-admin/references/org-chart-edge.md similarity index 85% rename from skills/orm-admin-org-chart-edge/SKILL.md rename to skills/orm-admin/references/org-chart-edge.md index 639521455..7fd06a563 100644 --- a/skills/orm-admin-org-chart-edge/SKILL.md +++ b/skills/orm-admin/references/org-chart-edge.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-chart-edge -description: Organizational chart edges defining parent-child reporting relationships between members within an entity ---- - -# orm-admin-org-chart-edge +# orgChartEdge diff --git a/skills/orm-admin-org-claimed-invite/SKILL.md b/skills/orm-admin/references/org-claimed-invite.md similarity index 86% rename from skills/orm-admin-org-claimed-invite/SKILL.md rename to skills/orm-admin/references/org-claimed-invite.md index 7696dfe8c..663a6733a 100644 --- a/skills/orm-admin-org-claimed-invite/SKILL.md +++ b/skills/orm-admin/references/org-claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# orm-admin-org-claimed-invite +# orgClaimedInvite diff --git a/skills/orm-admin-org-get-managers-record/SKILL.md b/skills/orm-admin/references/org-get-managers-record.md similarity index 86% rename from skills/orm-admin-org-get-managers-record/SKILL.md rename to skills/orm-admin/references/org-get-managers-record.md index d97de1c82..5ea846004 100644 --- a/skills/orm-admin-org-get-managers-record/SKILL.md +++ b/skills/orm-admin/references/org-get-managers-record.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-get-managers-record -description: ORM operations for OrgGetManagersRecord records ---- - -# orm-admin-org-get-managers-record +# orgGetManagersRecord diff --git a/skills/orm-admin-org-get-subordinates-record/SKILL.md b/skills/orm-admin/references/org-get-subordinates-record.md similarity index 86% rename from skills/orm-admin-org-get-subordinates-record/SKILL.md rename to skills/orm-admin/references/org-get-subordinates-record.md index 62dc1dedb..9ad550faa 100644 --- a/skills/orm-admin-org-get-subordinates-record/SKILL.md +++ b/skills/orm-admin/references/org-get-subordinates-record.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-get-subordinates-record -description: ORM operations for OrgGetSubordinatesRecord records ---- - -# orm-admin-org-get-subordinates-record +# orgGetSubordinatesRecord diff --git a/skills/orm-admin-org-grant/SKILL.md b/skills/orm-admin/references/org-grant.md similarity index 87% rename from skills/orm-admin-org-grant/SKILL.md rename to skills/orm-admin/references/org-grant.md index 053cb816f..cac51ea17 100644 --- a/skills/orm-admin-org-grant/SKILL.md +++ b/skills/orm-admin/references/org-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# orm-admin-org-grant +# orgGrant diff --git a/skills/orm-admin-org-invite/SKILL.md b/skills/orm-admin/references/org-invite.md similarity index 88% rename from skills/orm-admin-org-invite/SKILL.md rename to skills/orm-admin/references/org-invite.md index 46ce62068..27ea8b4ac 100644 --- a/skills/orm-admin-org-invite/SKILL.md +++ b/skills/orm-admin/references/org-invite.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# orm-admin-org-invite +# orgInvite diff --git a/skills/orm-admin-org-is-manager-of/SKILL.md b/skills/orm-admin/references/org-is-manager-of.md similarity index 79% rename from skills/orm-admin-org-is-manager-of/SKILL.md rename to skills/orm-admin/references/org-is-manager-of.md index d63b7b5bf..297cd9d25 100644 --- a/skills/orm-admin-org-is-manager-of/SKILL.md +++ b/skills/orm-admin/references/org-is-manager-of.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-is-manager-of -description: Execute the orgIsManagerOf query ---- - -# orm-admin-org-is-manager-of +# orgIsManagerOf diff --git a/skills/orm-admin-org-limit-default/SKILL.md b/skills/orm-admin/references/org-limit-default.md similarity index 84% rename from skills/orm-admin-org-limit-default/SKILL.md rename to skills/orm-admin/references/org-limit-default.md index 817f018c1..50f1c01dc 100644 --- a/skills/orm-admin-org-limit-default/SKILL.md +++ b/skills/orm-admin/references/org-limit-default.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# orm-admin-org-limit-default +# orgLimitDefault diff --git a/skills/orm-admin-org-limit/SKILL.md b/skills/orm-admin/references/org-limit.md similarity index 87% rename from skills/orm-admin-org-limit/SKILL.md rename to skills/orm-admin/references/org-limit.md index 29bbe537f..0326e1e56 100644 --- a/skills/orm-admin-org-limit/SKILL.md +++ b/skills/orm-admin/references/org-limit.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# orm-admin-org-limit +# orgLimit diff --git a/skills/orm-admin-org-member/SKILL.md b/skills/orm-admin/references/org-member.md similarity index 85% rename from skills/orm-admin-org-member/SKILL.md rename to skills/orm-admin/references/org-member.md index a0f60d635..8843ae79c 100644 --- a/skills/orm-admin-org-member/SKILL.md +++ b/skills/orm-admin/references/org-member.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-member -description: Simplified view of active members in an entity, used for listing who belongs to an org or group ---- - -# orm-admin-org-member +# orgMember diff --git a/skills/orm-admin-org-membership-default/SKILL.md b/skills/orm-admin/references/org-membership-default.md similarity index 86% rename from skills/orm-admin-org-membership-default/SKILL.md rename to skills/orm-admin/references/org-membership-default.md index 9f98ea42b..016a513cf 100644 --- a/skills/orm-admin-org-membership-default/SKILL.md +++ b/skills/orm-admin/references/org-membership-default.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# orm-admin-org-membership-default +# orgMembershipDefault diff --git a/skills/orm-admin-org-membership/SKILL.md b/skills/orm-admin/references/org-membership.md similarity index 88% rename from skills/orm-admin-org-membership/SKILL.md rename to skills/orm-admin/references/org-membership.md index 3444310aa..fd7feb28f 100644 --- a/skills/orm-admin-org-membership/SKILL.md +++ b/skills/orm-admin/references/org-membership.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# orm-admin-org-membership +# orgMembership diff --git a/skills/orm-admin-org-owner-grant/SKILL.md b/skills/orm-admin/references/org-owner-grant.md similarity index 87% rename from skills/orm-admin-org-owner-grant/SKILL.md rename to skills/orm-admin/references/org-owner-grant.md index c99c33e29..ddac1e36c 100644 --- a/skills/orm-admin-org-owner-grant/SKILL.md +++ b/skills/orm-admin/references/org-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-owner-grant -description: Records of ownership transfers and grants between members ---- - -# orm-admin-org-owner-grant +# orgOwnerGrant diff --git a/skills/orm-admin-org-permission-default/SKILL.md b/skills/orm-admin/references/org-permission-default.md similarity index 85% rename from skills/orm-admin-org-permission-default/SKILL.md rename to skills/orm-admin/references/org-permission-default.md index a5c3f9f5d..76fd65f89 100644 --- a/skills/orm-admin-org-permission-default/SKILL.md +++ b/skills/orm-admin/references/org-permission-default.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# orm-admin-org-permission-default +# orgPermissionDefault diff --git a/skills/orm-admin-org-permission/SKILL.md b/skills/orm-admin/references/org-permission.md similarity index 84% rename from skills/orm-admin-org-permission/SKILL.md rename to skills/orm-admin/references/org-permission.md index 6464ae1d0..5be6a77e0 100644 --- a/skills/orm-admin-org-permission/SKILL.md +++ b/skills/orm-admin/references/org-permission.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# orm-admin-org-permission +# orgPermission diff --git a/skills/orm-admin-org-permissions-get-by-mask/SKILL.md b/skills/orm-admin/references/org-permissions-get-by-mask.md similarity index 73% rename from skills/orm-admin-org-permissions-get-by-mask/SKILL.md rename to skills/orm-admin/references/org-permissions-get-by-mask.md index 95a3f6047..f2d575f78 100644 --- a/skills/orm-admin-org-permissions-get-by-mask/SKILL.md +++ b/skills/orm-admin/references/org-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-permissions-get-by-mask -description: Reads and enables pagination through a set of `OrgPermission`. ---- - -# orm-admin-org-permissions-get-by-mask +# orgPermissionsGetByMask diff --git a/skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md b/skills/orm-admin/references/org-permissions-get-mask-by-names.md similarity index 68% rename from skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md rename to skills/orm-admin/references/org-permissions-get-mask-by-names.md index 3f3d5d3f5..b1733bc1e 100644 --- a/skills/orm-admin-org-permissions-get-mask-by-names/SKILL.md +++ b/skills/orm-admin/references/org-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-permissions-get-mask-by-names -description: Execute the orgPermissionsGetMaskByNames query ---- - -# orm-admin-org-permissions-get-mask-by-names +# orgPermissionsGetMaskByNames diff --git a/skills/orm-admin-org-permissions-get-mask/SKILL.md b/skills/orm-admin/references/org-permissions-get-mask.md similarity index 70% rename from skills/orm-admin-org-permissions-get-mask/SKILL.md rename to skills/orm-admin/references/org-permissions-get-mask.md index d53f6c25c..1469dcd3d 100644 --- a/skills/orm-admin-org-permissions-get-mask/SKILL.md +++ b/skills/orm-admin/references/org-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-permissions-get-mask -description: Execute the orgPermissionsGetMask query ---- - -# orm-admin-org-permissions-get-mask +# orgPermissionsGetMask diff --git a/skills/orm-admin-org-permissions-get-padded-mask/SKILL.md b/skills/orm-admin/references/org-permissions-get-padded-mask.md similarity index 69% rename from skills/orm-admin-org-permissions-get-padded-mask/SKILL.md rename to skills/orm-admin/references/org-permissions-get-padded-mask.md index 8872890f5..9469bf338 100644 --- a/skills/orm-admin-org-permissions-get-padded-mask/SKILL.md +++ b/skills/orm-admin/references/org-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-org-permissions-get-padded-mask -description: Execute the orgPermissionsGetPaddedMask query ---- - -# orm-admin-org-permissions-get-padded-mask +# orgPermissionsGetPaddedMask diff --git a/skills/orm-admin-steps-achieved/SKILL.md b/skills/orm-admin/references/steps-achieved.md similarity index 75% rename from skills/orm-admin-steps-achieved/SKILL.md rename to skills/orm-admin/references/steps-achieved.md index c0d82e341..4f03f7cd7 100644 --- a/skills/orm-admin-steps-achieved/SKILL.md +++ b/skills/orm-admin/references/steps-achieved.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-steps-achieved -description: Execute the stepsAchieved query ---- - -# orm-admin-steps-achieved +# stepsAchieved diff --git a/skills/orm-admin-steps-required/SKILL.md b/skills/orm-admin/references/steps-required.md similarity index 76% rename from skills/orm-admin-steps-required/SKILL.md rename to skills/orm-admin/references/steps-required.md index 5cd80e3b4..d571950a6 100644 --- a/skills/orm-admin-steps-required/SKILL.md +++ b/skills/orm-admin/references/steps-required.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-steps-required -description: Reads and enables pagination through a set of `AppLevelRequirement`. ---- - -# orm-admin-steps-required +# stepsRequired diff --git a/skills/orm-admin-submit-invite-code/SKILL.md b/skills/orm-admin/references/submit-invite-code.md similarity index 72% rename from skills/orm-admin-submit-invite-code/SKILL.md rename to skills/orm-admin/references/submit-invite-code.md index 57a331131..5fa303aa4 100644 --- a/skills/orm-admin-submit-invite-code/SKILL.md +++ b/skills/orm-admin/references/submit-invite-code.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-submit-invite-code -description: Execute the submitInviteCode mutation ---- - -# orm-admin-submit-invite-code +# submitInviteCode diff --git a/skills/orm-admin-submit-org-invite-code/SKILL.md b/skills/orm-admin/references/submit-org-invite-code.md similarity index 71% rename from skills/orm-admin-submit-org-invite-code/SKILL.md rename to skills/orm-admin/references/submit-org-invite-code.md index 785bcccdc..21098824d 100644 --- a/skills/orm-admin-submit-org-invite-code/SKILL.md +++ b/skills/orm-admin/references/submit-org-invite-code.md @@ -1,9 +1,4 @@ ---- -name: orm-admin-submit-org-invite-code -description: Execute the submitOrgInviteCode mutation ---- - -# orm-admin-submit-org-invite-code +# submitOrgInviteCode diff --git a/skills/orm-auth/SKILL.md b/skills/orm-auth/SKILL.md new file mode 100644 index 000000000..7e0e0fc02 --- /dev/null +++ b/skills/orm-auth/SKILL.md @@ -0,0 +1,66 @@ +--- +name: orm-auth +description: ORM client for the auth API — provides typed CRUD operations for 7 tables and 20 custom operations +--- + +# orm-auth + + + +ORM client for the auth API — provides typed CRUD operations for 7 tables and 20 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: roleType, cryptoAddress, phoneNumber, connectedAccount, auditLog, email, user +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.roleType.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [role-type](references/role-type.md) +- [crypto-address](references/crypto-address.md) +- [phone-number](references/phone-number.md) +- [connected-account](references/connected-account.md) +- [audit-log](references/audit-log.md) +- [email](references/email.md) +- [user](references/user.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.md) +- [current-user-id](references/current-user-id.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [one-time-token](references/one-time-token.md) +- [extend-token-expires](references/extend-token-expires.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/orm-auth-audit-log/SKILL.md b/skills/orm-auth/references/audit-log.md similarity index 86% rename from skills/orm-auth-audit-log/SKILL.md rename to skills/orm-auth/references/audit-log.md index d389b34e7..e7dd7e4ca 100644 --- a/skills/orm-auth-audit-log/SKILL.md +++ b/skills/orm-auth/references/audit-log.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-audit-log -description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ---- - -# orm-auth-audit-log +# auditLog diff --git a/skills/orm-auth-check-password/SKILL.md b/skills/orm-auth/references/check-password.md similarity index 73% rename from skills/orm-auth-check-password/SKILL.md rename to skills/orm-auth/references/check-password.md index 862ecc584..bfee107d5 100644 --- a/skills/orm-auth-check-password/SKILL.md +++ b/skills/orm-auth/references/check-password.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-check-password -description: Execute the checkPassword mutation ---- - -# orm-auth-check-password +# checkPassword diff --git a/skills/orm-auth-confirm-delete-account/SKILL.md b/skills/orm-auth/references/confirm-delete-account.md similarity index 71% rename from skills/orm-auth-confirm-delete-account/SKILL.md rename to skills/orm-auth/references/confirm-delete-account.md index e4a05dd06..1bd81edc3 100644 --- a/skills/orm-auth-confirm-delete-account/SKILL.md +++ b/skills/orm-auth/references/confirm-delete-account.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-confirm-delete-account -description: Execute the confirmDeleteAccount mutation ---- - -# orm-auth-confirm-delete-account +# confirmDeleteAccount diff --git a/skills/orm-auth-connected-account/SKILL.md b/skills/orm-auth/references/connected-account.md similarity index 87% rename from skills/orm-auth-connected-account/SKILL.md rename to skills/orm-auth/references/connected-account.md index 21e69a3ca..aa560d236 100644 --- a/skills/orm-auth-connected-account/SKILL.md +++ b/skills/orm-auth/references/connected-account.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-connected-account -description: OAuth and social login connections linking external service accounts to users ---- - -# orm-auth-connected-account +# connectedAccount diff --git a/skills/orm-auth-crypto-address/SKILL.md b/skills/orm-auth/references/crypto-address.md similarity index 85% rename from skills/orm-auth-crypto-address/SKILL.md rename to skills/orm-auth/references/crypto-address.md index 207cfbb7f..10b9cc8ed 100644 --- a/skills/orm-auth-crypto-address/SKILL.md +++ b/skills/orm-auth/references/crypto-address.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-crypto-address -description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ---- - -# orm-auth-crypto-address +# cryptoAddress diff --git a/skills/orm-auth-current-ip-address/SKILL.md b/skills/orm-auth/references/current-ip-address.md similarity index 69% rename from skills/orm-auth-current-ip-address/SKILL.md rename to skills/orm-auth/references/current-ip-address.md index 0df1a8018..1710e6e55 100644 --- a/skills/orm-auth-current-ip-address/SKILL.md +++ b/skills/orm-auth/references/current-ip-address.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-current-ip-address -description: Execute the currentIpAddress query ---- - -# orm-auth-current-ip-address +# currentIpAddress diff --git a/skills/orm-auth-current-user-agent/SKILL.md b/skills/orm-auth/references/current-user-agent.md similarity index 69% rename from skills/orm-auth-current-user-agent/SKILL.md rename to skills/orm-auth/references/current-user-agent.md index 7f2fafed0..07c3111b8 100644 --- a/skills/orm-auth-current-user-agent/SKILL.md +++ b/skills/orm-auth/references/current-user-agent.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-current-user-agent -description: Execute the currentUserAgent query ---- - -# orm-auth-current-user-agent +# currentUserAgent diff --git a/skills/orm-auth-current-user-id/SKILL.md b/skills/orm-auth/references/current-user-id.md similarity index 70% rename from skills/orm-auth-current-user-id/SKILL.md rename to skills/orm-auth/references/current-user-id.md index 4a992cbf2..82b4141e2 100644 --- a/skills/orm-auth-current-user-id/SKILL.md +++ b/skills/orm-auth/references/current-user-id.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-current-user-id -description: Execute the currentUserId query ---- - -# orm-auth-current-user-id +# currentUserId diff --git a/skills/orm-auth-current-user/SKILL.md b/skills/orm-auth/references/current-user.md similarity index 71% rename from skills/orm-auth-current-user/SKILL.md rename to skills/orm-auth/references/current-user.md index f267056f6..9c49471b0 100644 --- a/skills/orm-auth-current-user/SKILL.md +++ b/skills/orm-auth/references/current-user.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-current-user -description: Execute the currentUser query ---- - -# orm-auth-current-user +# currentUser diff --git a/skills/orm-auth-email/SKILL.md b/skills/orm-auth/references/email.md similarity index 87% rename from skills/orm-auth-email/SKILL.md rename to skills/orm-auth/references/email.md index b79df05cf..f89a71874 100644 --- a/skills/orm-auth-email/SKILL.md +++ b/skills/orm-auth/references/email.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-email -description: User email addresses with verification and primary-email management ---- - -# orm-auth-email +# email diff --git a/skills/orm-auth-extend-token-expires/SKILL.md b/skills/orm-auth/references/extend-token-expires.md similarity index 72% rename from skills/orm-auth-extend-token-expires/SKILL.md rename to skills/orm-auth/references/extend-token-expires.md index b6b50fa61..6d5325213 100644 --- a/skills/orm-auth-extend-token-expires/SKILL.md +++ b/skills/orm-auth/references/extend-token-expires.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-extend-token-expires -description: Execute the extendTokenExpires mutation ---- - -# orm-auth-extend-token-expires +# extendTokenExpires diff --git a/skills/orm-auth-forgot-password/SKILL.md b/skills/orm-auth/references/forgot-password.md similarity index 73% rename from skills/orm-auth-forgot-password/SKILL.md rename to skills/orm-auth/references/forgot-password.md index 1d27fd567..5615850c5 100644 --- a/skills/orm-auth-forgot-password/SKILL.md +++ b/skills/orm-auth/references/forgot-password.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-forgot-password -description: Execute the forgotPassword mutation ---- - -# orm-auth-forgot-password +# forgotPassword diff --git a/skills/orm-auth-one-time-token/SKILL.md b/skills/orm-auth/references/one-time-token.md similarity index 73% rename from skills/orm-auth-one-time-token/SKILL.md rename to skills/orm-auth/references/one-time-token.md index 981deb19c..9a2880c8f 100644 --- a/skills/orm-auth-one-time-token/SKILL.md +++ b/skills/orm-auth/references/one-time-token.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-one-time-token -description: Execute the oneTimeToken mutation ---- - -# orm-auth-one-time-token +# oneTimeToken diff --git a/skills/orm-auth-phone-number/SKILL.md b/skills/orm-auth/references/phone-number.md similarity index 86% rename from skills/orm-auth-phone-number/SKILL.md rename to skills/orm-auth/references/phone-number.md index 135bb49ba..1ecf93b35 100644 --- a/skills/orm-auth-phone-number/SKILL.md +++ b/skills/orm-auth/references/phone-number.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-phone-number -description: User phone numbers with country code, verification, and primary-number management ---- - -# orm-auth-phone-number +# phoneNumber diff --git a/skills/orm-auth-reset-password/SKILL.md b/skills/orm-auth/references/reset-password.md similarity index 73% rename from skills/orm-auth-reset-password/SKILL.md rename to skills/orm-auth/references/reset-password.md index 784796a16..1a456d7db 100644 --- a/skills/orm-auth-reset-password/SKILL.md +++ b/skills/orm-auth/references/reset-password.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-reset-password -description: Execute the resetPassword mutation ---- - -# orm-auth-reset-password +# resetPassword diff --git a/skills/orm-auth-role-type/SKILL.md b/skills/orm-auth/references/role-type.md similarity index 88% rename from skills/orm-auth-role-type/SKILL.md rename to skills/orm-auth/references/role-type.md index 0e4412ece..b792f600c 100644 --- a/skills/orm-auth-role-type/SKILL.md +++ b/skills/orm-auth/references/role-type.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-role-type -description: ORM operations for RoleType records ---- - -# orm-auth-role-type +# roleType diff --git a/skills/orm-auth-send-account-deletion-email/SKILL.md b/skills/orm-auth/references/send-account-deletion-email.md similarity index 70% rename from skills/orm-auth-send-account-deletion-email/SKILL.md rename to skills/orm-auth/references/send-account-deletion-email.md index fe86aea32..300831013 100644 --- a/skills/orm-auth-send-account-deletion-email/SKILL.md +++ b/skills/orm-auth/references/send-account-deletion-email.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-send-account-deletion-email -description: Execute the sendAccountDeletionEmail mutation ---- - -# orm-auth-send-account-deletion-email +# sendAccountDeletionEmail diff --git a/skills/orm-auth-send-verification-email/SKILL.md b/skills/orm-auth/references/send-verification-email.md similarity index 71% rename from skills/orm-auth-send-verification-email/SKILL.md rename to skills/orm-auth/references/send-verification-email.md index a7fc07ddf..1e8703b3b 100644 --- a/skills/orm-auth-send-verification-email/SKILL.md +++ b/skills/orm-auth/references/send-verification-email.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-send-verification-email -description: Execute the sendVerificationEmail mutation ---- - -# orm-auth-send-verification-email +# sendVerificationEmail diff --git a/skills/orm-auth-set-password/SKILL.md b/skills/orm-auth/references/set-password.md similarity index 74% rename from skills/orm-auth-set-password/SKILL.md rename to skills/orm-auth/references/set-password.md index a2e907c49..b73aa55f2 100644 --- a/skills/orm-auth-set-password/SKILL.md +++ b/skills/orm-auth/references/set-password.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-set-password -description: Execute the setPassword mutation ---- - -# orm-auth-set-password +# setPassword diff --git a/skills/orm-auth-sign-in-one-time-token/SKILL.md b/skills/orm-auth/references/sign-in-one-time-token.md similarity index 71% rename from skills/orm-auth-sign-in-one-time-token/SKILL.md rename to skills/orm-auth/references/sign-in-one-time-token.md index ca3e8d95b..c65989daa 100644 --- a/skills/orm-auth-sign-in-one-time-token/SKILL.md +++ b/skills/orm-auth/references/sign-in-one-time-token.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-sign-in-one-time-token -description: Execute the signInOneTimeToken mutation ---- - -# orm-auth-sign-in-one-time-token +# signInOneTimeToken diff --git a/skills/orm-auth-sign-in/SKILL.md b/skills/orm-auth/references/sign-in.md similarity index 75% rename from skills/orm-auth-sign-in/SKILL.md rename to skills/orm-auth/references/sign-in.md index 54b033c4e..45b03c63a 100644 --- a/skills/orm-auth-sign-in/SKILL.md +++ b/skills/orm-auth/references/sign-in.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-sign-in -description: Execute the signIn mutation ---- - -# orm-auth-sign-in +# signIn diff --git a/skills/orm-auth-sign-out/SKILL.md b/skills/orm-auth/references/sign-out.md similarity index 75% rename from skills/orm-auth-sign-out/SKILL.md rename to skills/orm-auth/references/sign-out.md index 530cdeec2..bdbd4228f 100644 --- a/skills/orm-auth-sign-out/SKILL.md +++ b/skills/orm-auth/references/sign-out.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-sign-out -description: Execute the signOut mutation ---- - -# orm-auth-sign-out +# signOut diff --git a/skills/orm-auth-sign-up/SKILL.md b/skills/orm-auth/references/sign-up.md similarity index 75% rename from skills/orm-auth-sign-up/SKILL.md rename to skills/orm-auth/references/sign-up.md index 1a2bc3342..8f63164d3 100644 --- a/skills/orm-auth-sign-up/SKILL.md +++ b/skills/orm-auth/references/sign-up.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-sign-up -description: Execute the signUp mutation ---- - -# orm-auth-sign-up +# signUp diff --git a/skills/orm-auth-user/SKILL.md b/skills/orm-auth/references/user.md similarity index 91% rename from skills/orm-auth-user/SKILL.md rename to skills/orm-auth/references/user.md index 7c6e61f41..6daa65e5d 100644 --- a/skills/orm-auth-user/SKILL.md +++ b/skills/orm-auth/references/user.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-user -description: ORM operations for User records ---- - -# orm-auth-user +# user diff --git a/skills/orm-auth-verify-email/SKILL.md b/skills/orm-auth/references/verify-email.md similarity index 74% rename from skills/orm-auth-verify-email/SKILL.md rename to skills/orm-auth/references/verify-email.md index 0877cfdf5..ffe9adc92 100644 --- a/skills/orm-auth-verify-email/SKILL.md +++ b/skills/orm-auth/references/verify-email.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-verify-email -description: Execute the verifyEmail mutation ---- - -# orm-auth-verify-email +# verifyEmail diff --git a/skills/orm-auth-verify-password/SKILL.md b/skills/orm-auth/references/verify-password.md similarity index 73% rename from skills/orm-auth-verify-password/SKILL.md rename to skills/orm-auth/references/verify-password.md index 3a81fa5bd..f89d17a23 100644 --- a/skills/orm-auth-verify-password/SKILL.md +++ b/skills/orm-auth/references/verify-password.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-verify-password -description: Execute the verifyPassword mutation ---- - -# orm-auth-verify-password +# verifyPassword diff --git a/skills/orm-auth-verify-totp/SKILL.md b/skills/orm-auth/references/verify-totp.md similarity index 74% rename from skills/orm-auth-verify-totp/SKILL.md rename to skills/orm-auth/references/verify-totp.md index c013dbf7f..02b135ced 100644 --- a/skills/orm-auth-verify-totp/SKILL.md +++ b/skills/orm-auth/references/verify-totp.md @@ -1,9 +1,4 @@ ---- -name: orm-auth-verify-totp -description: Execute the verifyTotp mutation ---- - -# orm-auth-verify-totp +# verifyTotp diff --git a/skills/orm-objects/SKILL.md b/skills/orm-objects/SKILL.md new file mode 100644 index 000000000..19a4e2126 --- /dev/null +++ b/skills/orm-objects/SKILL.md @@ -0,0 +1,56 @@ +--- +name: orm-objects +description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 12 custom operations +--- + +# orm-objects + + + +ORM client for the objects API — provides typed CRUD operations for 5 tables and 12 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: getAllRecord, object, ref, store, commit +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.getAllRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [get-all-record](references/get-all-record.md) +- [object](references/object.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [commit](references/commit.md) +- [rev-parse](references/rev-parse.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) diff --git a/skills/orm-public-commit/SKILL.md b/skills/orm-objects/references/commit.md similarity index 90% rename from skills/orm-public-commit/SKILL.md rename to skills/orm-objects/references/commit.md index 3bd3bf01f..6f3ead99d 100644 --- a/skills/orm-public-commit/SKILL.md +++ b/skills/orm-objects/references/commit.md @@ -1,9 +1,4 @@ ---- -name: orm-public-commit -description: A commit records changes to the repository. ---- - -# orm-public-commit +# commit diff --git a/skills/orm-public-freeze-objects/SKILL.md b/skills/orm-objects/references/freeze-objects.md similarity index 72% rename from skills/orm-public-freeze-objects/SKILL.md rename to skills/orm-objects/references/freeze-objects.md index e17a7dd26..e8b29e205 100644 --- a/skills/orm-public-freeze-objects/SKILL.md +++ b/skills/orm-objects/references/freeze-objects.md @@ -1,9 +1,4 @@ ---- -name: orm-public-freeze-objects -description: Execute the freezeObjects mutation ---- - -# orm-public-freeze-objects +# freezeObjects diff --git a/skills/orm-public-get-all-objects-from-root/SKILL.md b/skills/orm-objects/references/get-all-objects-from-root.md similarity index 75% rename from skills/orm-public-get-all-objects-from-root/SKILL.md rename to skills/orm-objects/references/get-all-objects-from-root.md index 53958eb1a..a7c250d28 100644 --- a/skills/orm-public-get-all-objects-from-root/SKILL.md +++ b/skills/orm-objects/references/get-all-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: orm-public-get-all-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# orm-public-get-all-objects-from-root +# getAllObjectsFromRoot diff --git a/skills/orm-public-get-all-record/SKILL.md b/skills/orm-objects/references/get-all-record.md similarity index 87% rename from skills/orm-public-get-all-record/SKILL.md rename to skills/orm-objects/references/get-all-record.md index 98c481b55..b40517647 100644 --- a/skills/orm-public-get-all-record/SKILL.md +++ b/skills/orm-objects/references/get-all-record.md @@ -1,9 +1,4 @@ ---- -name: orm-public-get-all-record -description: ORM operations for GetAllRecord records ---- - -# orm-public-get-all-record +# getAllRecord diff --git a/skills/orm-public-get-object-at-path/SKILL.md b/skills/orm-objects/references/get-object-at-path.md similarity index 77% rename from skills/orm-public-get-object-at-path/SKILL.md rename to skills/orm-objects/references/get-object-at-path.md index 56a4b5507..c49736477 100644 --- a/skills/orm-public-get-object-at-path/SKILL.md +++ b/skills/orm-objects/references/get-object-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-public-get-object-at-path -description: Execute the getObjectAtPath query ---- - -# orm-public-get-object-at-path +# getObjectAtPath diff --git a/skills/orm-public-get-path-objects-from-root/SKILL.md b/skills/orm-objects/references/get-path-objects-from-root.md similarity index 76% rename from skills/orm-public-get-path-objects-from-root/SKILL.md rename to skills/orm-objects/references/get-path-objects-from-root.md index 495ce6cd4..59e8badd7 100644 --- a/skills/orm-public-get-path-objects-from-root/SKILL.md +++ b/skills/orm-objects/references/get-path-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: orm-public-get-path-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# orm-public-get-path-objects-from-root +# getPathObjectsFromRoot diff --git a/skills/orm-public-init-empty-repo/SKILL.md b/skills/orm-objects/references/init-empty-repo.md similarity index 72% rename from skills/orm-public-init-empty-repo/SKILL.md rename to skills/orm-objects/references/init-empty-repo.md index 9b9ab78f1..8fc4c9b99 100644 --- a/skills/orm-public-init-empty-repo/SKILL.md +++ b/skills/orm-objects/references/init-empty-repo.md @@ -1,9 +1,4 @@ ---- -name: orm-public-init-empty-repo -description: Execute the initEmptyRepo mutation ---- - -# orm-public-init-empty-repo +# initEmptyRepo diff --git a/skills/orm-public-insert-node-at-path/SKILL.md b/skills/orm-objects/references/insert-node-at-path.md similarity index 71% rename from skills/orm-public-insert-node-at-path/SKILL.md rename to skills/orm-objects/references/insert-node-at-path.md index 09452f3dc..76509b290 100644 --- a/skills/orm-public-insert-node-at-path/SKILL.md +++ b/skills/orm-objects/references/insert-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-public-insert-node-at-path -description: Execute the insertNodeAtPath mutation ---- - -# orm-public-insert-node-at-path +# insertNodeAtPath diff --git a/skills/orm-public-object/SKILL.md b/skills/orm-objects/references/object.md similarity index 90% rename from skills/orm-public-object/SKILL.md rename to skills/orm-objects/references/object.md index 93f60ef7f..793c8bcd7 100644 --- a/skills/orm-public-object/SKILL.md +++ b/skills/orm-objects/references/object.md @@ -1,9 +1,4 @@ ---- -name: orm-public-object -description: ORM operations for Object records ---- - -# orm-public-object +# object diff --git a/skills/orm-public-ref/SKILL.md b/skills/orm-objects/references/ref.md similarity index 88% rename from skills/orm-public-ref/SKILL.md rename to skills/orm-objects/references/ref.md index d391de128..f677081b4 100644 --- a/skills/orm-public-ref/SKILL.md +++ b/skills/orm-objects/references/ref.md @@ -1,9 +1,4 @@ ---- -name: orm-public-ref -description: A ref is a data structure for pointing to a commit. ---- - -# orm-public-ref +# ref diff --git a/skills/orm-public-remove-node-at-path/SKILL.md b/skills/orm-objects/references/remove-node-at-path.md similarity index 71% rename from skills/orm-public-remove-node-at-path/SKILL.md rename to skills/orm-objects/references/remove-node-at-path.md index 6b3d3b6fc..2f40be220 100644 --- a/skills/orm-public-remove-node-at-path/SKILL.md +++ b/skills/orm-objects/references/remove-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-public-remove-node-at-path -description: Execute the removeNodeAtPath mutation ---- - -# orm-public-remove-node-at-path +# removeNodeAtPath diff --git a/skills/orm-public-rev-parse/SKILL.md b/skills/orm-objects/references/rev-parse.md similarity index 78% rename from skills/orm-public-rev-parse/SKILL.md rename to skills/orm-objects/references/rev-parse.md index 48267c322..a453a521e 100644 --- a/skills/orm-public-rev-parse/SKILL.md +++ b/skills/orm-objects/references/rev-parse.md @@ -1,9 +1,4 @@ ---- -name: orm-public-rev-parse -description: Execute the revParse query ---- - -# orm-public-rev-parse +# revParse diff --git a/skills/orm-public-set-and-commit/SKILL.md b/skills/orm-objects/references/set-and-commit.md similarity index 72% rename from skills/orm-public-set-and-commit/SKILL.md rename to skills/orm-objects/references/set-and-commit.md index 9629874f3..0338f98b8 100644 --- a/skills/orm-public-set-and-commit/SKILL.md +++ b/skills/orm-objects/references/set-and-commit.md @@ -1,9 +1,4 @@ ---- -name: orm-public-set-and-commit -description: Execute the setAndCommit mutation ---- - -# orm-public-set-and-commit +# setAndCommit diff --git a/skills/orm-public-set-data-at-path/SKILL.md b/skills/orm-objects/references/set-data-at-path.md similarity index 72% rename from skills/orm-public-set-data-at-path/SKILL.md rename to skills/orm-objects/references/set-data-at-path.md index fa681513a..8aa78306f 100644 --- a/skills/orm-public-set-data-at-path/SKILL.md +++ b/skills/orm-objects/references/set-data-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-public-set-data-at-path -description: Execute the setDataAtPath mutation ---- - -# orm-public-set-data-at-path +# setDataAtPath diff --git a/skills/orm-public-set-props-and-commit/SKILL.md b/skills/orm-objects/references/set-props-and-commit.md similarity index 71% rename from skills/orm-public-set-props-and-commit/SKILL.md rename to skills/orm-objects/references/set-props-and-commit.md index 241326a64..55680feb5 100644 --- a/skills/orm-public-set-props-and-commit/SKILL.md +++ b/skills/orm-objects/references/set-props-and-commit.md @@ -1,9 +1,4 @@ ---- -name: orm-public-set-props-and-commit -description: Execute the setPropsAndCommit mutation ---- - -# orm-public-set-props-and-commit +# setPropsAndCommit diff --git a/skills/orm-public-store/SKILL.md b/skills/orm-objects/references/store.md similarity index 86% rename from skills/orm-public-store/SKILL.md rename to skills/orm-objects/references/store.md index 956d8288d..0716daaff 100644 --- a/skills/orm-public-store/SKILL.md +++ b/skills/orm-objects/references/store.md @@ -1,9 +1,4 @@ ---- -name: orm-public-store -description: A store represents an isolated object repository within a database. ---- - -# orm-public-store +# store diff --git a/skills/orm-public-update-node-at-path/SKILL.md b/skills/orm-objects/references/update-node-at-path.md similarity index 71% rename from skills/orm-public-update-node-at-path/SKILL.md rename to skills/orm-objects/references/update-node-at-path.md index 8c14570aa..950af4042 100644 --- a/skills/orm-public-update-node-at-path/SKILL.md +++ b/skills/orm-objects/references/update-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-public-update-node-at-path -description: Execute the updateNodeAtPath mutation ---- - -# orm-public-update-node-at-path +# updateNodeAtPath diff --git a/skills/orm-public/SKILL.md b/skills/orm-public/SKILL.md new file mode 100644 index 000000000..f48b920bc --- /dev/null +++ b/skills/orm-public/SKILL.md @@ -0,0 +1,193 @@ +--- +name: orm-public +description: ORM client for the public API — provides typed CRUD operations for 104 tables and 50 custom operations +--- + +# orm-public + + + +ORM client for the public API — provides typed CRUD operations for 104 tables and 50 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, appPermission, orgPermission, object, appLevelRequirement, database, ... +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [org-get-managers-record](references/org-get-managers-record.md) +- [org-get-subordinates-record](references/org-get-subordinates-record.md) +- [get-all-record](references/get-all-record.md) +- [app-permission](references/app-permission.md) +- [org-permission](references/org-permission.md) +- [object](references/object.md) +- [app-level-requirement](references/app-level-requirement.md) +- [database](references/database.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [table-module](references/table-module.md) +- [table-template-module](references/table-template-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [relation-provision](references/relation-provision.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [trigger-function](references/trigger-function.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [connected-accounts-module](references/connected-accounts-module.md) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [default-ids-module](references/default-ids-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [emails-module](references/emails-module.md) +- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [field-module](references/field-module.md) +- [invites-module](references/invites-module.md) +- [levels-module](references/levels-module.md) +- [limits-module](references/limits-module.md) +- [membership-types-module](references/membership-types-module.md) +- [memberships-module](references/memberships-module.md) +- [permissions-module](references/permissions-module.md) +- [phone-numbers-module](references/phone-numbers-module.md) +- [profiles-module](references/profiles-module.md) +- [rls-module](references/rls-module.md) +- [secrets-module](references/secrets-module.md) +- [sessions-module](references/sessions-module.md) +- [user-auth-module](references/user-auth-module.md) +- [users-module](references/users-module.md) +- [uuid-module](references/uuid-module.md) +- [database-provision-module](references/database-provision-module.md) +- [app-admin-grant](references/app-admin-grant.md) +- [app-owner-grant](references/app-owner-grant.md) +- [app-grant](references/app-grant.md) +- [org-membership](references/org-membership.md) +- [org-member](references/org-member.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [org-limit](references/org-limit.md) +- [app-step](references/app-step.md) +- [app-achievement](references/app-achievement.md) +- [invite](references/invite.md) +- [claimed-invite](references/claimed-invite.md) +- [org-invite](references/org-invite.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [app-permission-default](references/app-permission-default.md) +- [role-type](references/role-type.md) +- [org-permission-default](references/org-permission-default.md) +- [crypto-address](references/crypto-address.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [connected-account](references/connected-account.md) +- [phone-number](references/phone-number.md) +- [membership-type](references/membership-type.md) +- [node-type-registry](references/node-type-registry.md) +- [app-membership-default](references/app-membership-default.md) +- [commit](references/commit.md) +- [org-membership-default](references/org-membership-default.md) +- [audit-log](references/audit-log.md) +- [app-level](references/app-level.md) +- [email](references/email.md) +- [sql-migration](references/sql-migration.md) +- [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [app-membership](references/app-membership.md) +- [hierarchy-module](references/hierarchy-module.md) +- [current-user-id](references/current-user-id.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.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) +- [steps-achieved](references/steps-achieved.md) +- [rev-parse](references/rev-parse.md) +- [org-is-manager-of](references/org-is-manager-of.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [steps-required](references/steps-required.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [bootstrap-user](references/bootstrap-user.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [provision-database-with-user](references/provision-database-with-user.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [create-user-database](references/create-user-database.md) +- [extend-token-expires](references/extend-token-expires.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [set-field-order](references/set-field-order.md) +- [one-time-token](references/one-time-token.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) +- [apply-rls](references/apply-rls.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/orm-public-api-module/SKILL.md b/skills/orm-public/references/api-module.md similarity index 83% rename from skills/orm-public-api-module/SKILL.md rename to skills/orm-public/references/api-module.md index 5a7231795..a31dd405d 100644 --- a/skills/orm-public-api-module/SKILL.md +++ b/skills/orm-public/references/api-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-api-module -description: Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server ---- - -# orm-public-api-module +# apiModule diff --git a/skills/orm-public-api-schema/SKILL.md b/skills/orm-public/references/api-schema.md similarity index 83% rename from skills/orm-public-api-schema/SKILL.md rename to skills/orm-public/references/api-schema.md index 92c7dc7a1..acab88c5a 100644 --- a/skills/orm-public-api-schema/SKILL.md +++ b/skills/orm-public/references/api-schema.md @@ -1,9 +1,4 @@ ---- -name: orm-public-api-schema -description: Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API ---- - -# orm-public-api-schema +# apiSchema diff --git a/skills/orm-public-api/SKILL.md b/skills/orm-public/references/api.md similarity index 84% rename from skills/orm-public-api/SKILL.md rename to skills/orm-public/references/api.md index 82445af37..9c45c72e7 100644 --- a/skills/orm-public-api/SKILL.md +++ b/skills/orm-public/references/api.md @@ -1,9 +1,4 @@ ---- -name: orm-public-api -description: API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings ---- - -# orm-public-api +# api diff --git a/skills/orm-public-app-achievement/SKILL.md b/skills/orm-public/references/app-achievement.md similarity index 82% rename from skills/orm-public-app-achievement/SKILL.md rename to skills/orm-public/references/app-achievement.md index 6bf40958b..9a70ab997 100644 --- a/skills/orm-public-app-achievement/SKILL.md +++ b/skills/orm-public/references/app-achievement.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-achievement -description: Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually ---- - -# orm-public-app-achievement +# appAchievement diff --git a/skills/orm-public-app-admin-grant/SKILL.md b/skills/orm-public/references/app-admin-grant.md similarity index 86% rename from skills/orm-public-app-admin-grant/SKILL.md rename to skills/orm-public/references/app-admin-grant.md index 6197b301a..ad7a25953 100644 --- a/skills/orm-public-app-admin-grant/SKILL.md +++ b/skills/orm-public/references/app-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-admin-grant -description: Records of admin role grants and revocations between members ---- - -# orm-public-app-admin-grant +# appAdminGrant diff --git a/skills/orm-public-app-grant/SKILL.md b/skills/orm-public/references/app-grant.md similarity index 86% rename from skills/orm-public-app-grant/SKILL.md rename to skills/orm-public/references/app-grant.md index 50a4e9b58..297f0df6c 100644 --- a/skills/orm-public-app-grant/SKILL.md +++ b/skills/orm-public/references/app-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# orm-public-app-grant +# appGrant diff --git a/skills/orm-public-app-level-requirement/SKILL.md b/skills/orm-public/references/app-level-requirement.md similarity index 86% rename from skills/orm-public-app-level-requirement/SKILL.md rename to skills/orm-public/references/app-level-requirement.md index 12d78796f..0974f67da 100644 --- a/skills/orm-public-app-level-requirement/SKILL.md +++ b/skills/orm-public/references/app-level-requirement.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-level-requirement -description: Defines the specific requirements that must be met to achieve a level ---- - -# orm-public-app-level-requirement +# appLevelRequirement diff --git a/skills/orm-public-app-level/SKILL.md b/skills/orm-public/references/app-level.md similarity index 86% rename from skills/orm-public-app-level/SKILL.md rename to skills/orm-public/references/app-level.md index 942a6d412..d5d0b05c3 100644 --- a/skills/orm-public-app-level/SKILL.md +++ b/skills/orm-public/references/app-level.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-level -description: Defines available levels that users can achieve by completing requirements ---- - -# orm-public-app-level +# appLevel diff --git a/skills/orm-public-app-limit-default/SKILL.md b/skills/orm-public/references/app-limit-default.md similarity index 84% rename from skills/orm-public-app-limit-default/SKILL.md rename to skills/orm-public/references/app-limit-default.md index 8fab9858c..10261cebe 100644 --- a/skills/orm-public-app-limit-default/SKILL.md +++ b/skills/orm-public/references/app-limit-default.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# orm-public-app-limit-default +# appLimitDefault diff --git a/skills/orm-public-app-limit/SKILL.md b/skills/orm-public/references/app-limit.md similarity index 87% rename from skills/orm-public-app-limit/SKILL.md rename to skills/orm-public/references/app-limit.md index 12257b035..df69f2ac3 100644 --- a/skills/orm-public-app-limit/SKILL.md +++ b/skills/orm-public/references/app-limit.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# orm-public-app-limit +# appLimit diff --git a/skills/orm-public-app-membership-default/SKILL.md b/skills/orm-public/references/app-membership-default.md similarity index 84% rename from skills/orm-public-app-membership-default/SKILL.md rename to skills/orm-public/references/app-membership-default.md index 94e8428db..451f17940 100644 --- a/skills/orm-public-app-membership-default/SKILL.md +++ b/skills/orm-public/references/app-membership-default.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# orm-public-app-membership-default +# appMembershipDefault diff --git a/skills/orm-public-app-membership/SKILL.md b/skills/orm-public/references/app-membership.md similarity index 88% rename from skills/orm-public-app-membership/SKILL.md rename to skills/orm-public/references/app-membership.md index b04cd0e23..85515d3ce 100644 --- a/skills/orm-public-app-membership/SKILL.md +++ b/skills/orm-public/references/app-membership.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# orm-public-app-membership +# appMembership diff --git a/skills/orm-public-app-owner-grant/SKILL.md b/skills/orm-public/references/app-owner-grant.md similarity index 87% rename from skills/orm-public-app-owner-grant/SKILL.md rename to skills/orm-public/references/app-owner-grant.md index 455f02af4..bef70f35c 100644 --- a/skills/orm-public-app-owner-grant/SKILL.md +++ b/skills/orm-public/references/app-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-owner-grant -description: Records of ownership transfers and grants between members ---- - -# orm-public-app-owner-grant +# appOwnerGrant diff --git a/skills/orm-public-app-permission-default/SKILL.md b/skills/orm-public/references/app-permission-default.md similarity index 84% rename from skills/orm-public-app-permission-default/SKILL.md rename to skills/orm-public/references/app-permission-default.md index 6852a9812..78616d665 100644 --- a/skills/orm-public-app-permission-default/SKILL.md +++ b/skills/orm-public/references/app-permission-default.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# orm-public-app-permission-default +# appPermissionDefault diff --git a/skills/orm-public-app-permission/SKILL.md b/skills/orm-public/references/app-permission.md similarity index 84% rename from skills/orm-public-app-permission/SKILL.md rename to skills/orm-public/references/app-permission.md index abd6ad90b..14eac6378 100644 --- a/skills/orm-public-app-permission/SKILL.md +++ b/skills/orm-public/references/app-permission.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# orm-public-app-permission +# appPermission diff --git a/skills/orm-public-app-permissions-get-by-mask/SKILL.md b/skills/orm-public/references/app-permissions-get-by-mask.md similarity index 73% rename from skills/orm-public-app-permissions-get-by-mask/SKILL.md rename to skills/orm-public/references/app-permissions-get-by-mask.md index 8f32626c8..b5fc838fb 100644 --- a/skills/orm-public-app-permissions-get-by-mask/SKILL.md +++ b/skills/orm-public/references/app-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-permissions-get-by-mask -description: Reads and enables pagination through a set of `AppPermission`. ---- - -# orm-public-app-permissions-get-by-mask +# appPermissionsGetByMask diff --git a/skills/orm-public-app-permissions-get-mask-by-names/SKILL.md b/skills/orm-public/references/app-permissions-get-mask-by-names.md similarity index 68% rename from skills/orm-public-app-permissions-get-mask-by-names/SKILL.md rename to skills/orm-public/references/app-permissions-get-mask-by-names.md index ec42c8b26..aac070083 100644 --- a/skills/orm-public-app-permissions-get-mask-by-names/SKILL.md +++ b/skills/orm-public/references/app-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-permissions-get-mask-by-names -description: Execute the appPermissionsGetMaskByNames query ---- - -# orm-public-app-permissions-get-mask-by-names +# appPermissionsGetMaskByNames diff --git a/skills/orm-public-app-permissions-get-mask/SKILL.md b/skills/orm-public/references/app-permissions-get-mask.md similarity index 70% rename from skills/orm-public-app-permissions-get-mask/SKILL.md rename to skills/orm-public/references/app-permissions-get-mask.md index 6bf7ab3fd..7b74f41d1 100644 --- a/skills/orm-public-app-permissions-get-mask/SKILL.md +++ b/skills/orm-public/references/app-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-permissions-get-mask -description: Execute the appPermissionsGetMask query ---- - -# orm-public-app-permissions-get-mask +# appPermissionsGetMask diff --git a/skills/orm-public-app-permissions-get-padded-mask/SKILL.md b/skills/orm-public/references/app-permissions-get-padded-mask.md similarity index 68% rename from skills/orm-public-app-permissions-get-padded-mask/SKILL.md rename to skills/orm-public/references/app-permissions-get-padded-mask.md index 2707537c9..a13bde22a 100644 --- a/skills/orm-public-app-permissions-get-padded-mask/SKILL.md +++ b/skills/orm-public/references/app-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-permissions-get-padded-mask -description: Execute the appPermissionsGetPaddedMask query ---- - -# orm-public-app-permissions-get-padded-mask +# appPermissionsGetPaddedMask diff --git a/skills/orm-public-app-step/SKILL.md b/skills/orm-public/references/app-step.md similarity index 84% rename from skills/orm-public-app-step/SKILL.md rename to skills/orm-public/references/app-step.md index 56af952d8..52eecd7f3 100644 --- a/skills/orm-public-app-step/SKILL.md +++ b/skills/orm-public/references/app-step.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app-step -description: Log of individual user actions toward level requirements; every single step ever taken is recorded here ---- - -# orm-public-app-step +# appStep diff --git a/skills/orm-public-app/SKILL.md b/skills/orm-public/references/app.md similarity index 88% rename from skills/orm-public-app/SKILL.md rename to skills/orm-public/references/app.md index b74f04919..0dd221b3c 100644 --- a/skills/orm-public-app/SKILL.md +++ b/skills/orm-public/references/app.md @@ -1,9 +1,4 @@ ---- -name: orm-public-app -description: Mobile and native app configuration linked to a site, including store links and identifiers ---- - -# orm-public-app +# app diff --git a/skills/orm-public-apply-rls/SKILL.md b/skills/orm-public/references/apply-rls.md similarity index 74% rename from skills/orm-public-apply-rls/SKILL.md rename to skills/orm-public/references/apply-rls.md index 2d555bb35..8391dd13c 100644 --- a/skills/orm-public-apply-rls/SKILL.md +++ b/skills/orm-public/references/apply-rls.md @@ -1,9 +1,4 @@ ---- -name: orm-public-apply-rls -description: Execute the applyRls mutation ---- - -# orm-public-apply-rls +# applyRls diff --git a/skills/orm-public-ast-migration/SKILL.md b/skills/orm-public/references/ast-migration.md similarity index 91% rename from skills/orm-public-ast-migration/SKILL.md rename to skills/orm-public/references/ast-migration.md index f254ae5a0..a2bda9429 100644 --- a/skills/orm-public-ast-migration/SKILL.md +++ b/skills/orm-public/references/ast-migration.md @@ -1,9 +1,4 @@ ---- -name: orm-public-ast-migration -description: ORM operations for AstMigration records ---- - -# orm-public-ast-migration +# astMigration diff --git a/skills/orm-public-audit-log/SKILL.md b/skills/orm-public/references/audit-log.md similarity index 86% rename from skills/orm-public-audit-log/SKILL.md rename to skills/orm-public/references/audit-log.md index f20daa5f9..e7dd7e4ca 100644 --- a/skills/orm-public-audit-log/SKILL.md +++ b/skills/orm-public/references/audit-log.md @@ -1,9 +1,4 @@ ---- -name: orm-public-audit-log -description: Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) ---- - -# orm-public-audit-log +# auditLog diff --git a/skills/orm-public-bootstrap-user/SKILL.md b/skills/orm-public/references/bootstrap-user.md similarity index 72% rename from skills/orm-public-bootstrap-user/SKILL.md rename to skills/orm-public/references/bootstrap-user.md index 1183a61f7..0b6d8af05 100644 --- a/skills/orm-public-bootstrap-user/SKILL.md +++ b/skills/orm-public/references/bootstrap-user.md @@ -1,9 +1,4 @@ ---- -name: orm-public-bootstrap-user -description: Execute the bootstrapUser mutation ---- - -# orm-public-bootstrap-user +# bootstrapUser diff --git a/skills/orm-public-check-constraint/SKILL.md b/skills/orm-public/references/check-constraint.md similarity index 90% rename from skills/orm-public-check-constraint/SKILL.md rename to skills/orm-public/references/check-constraint.md index f23fe374a..ff7e00803 100644 --- a/skills/orm-public-check-constraint/SKILL.md +++ b/skills/orm-public/references/check-constraint.md @@ -1,9 +1,4 @@ ---- -name: orm-public-check-constraint -description: ORM operations for CheckConstraint records ---- - -# orm-public-check-constraint +# checkConstraint diff --git a/skills/orm-public-check-password/SKILL.md b/skills/orm-public/references/check-password.md similarity index 72% rename from skills/orm-public-check-password/SKILL.md rename to skills/orm-public/references/check-password.md index 2ec7b7943..bfee107d5 100644 --- a/skills/orm-public-check-password/SKILL.md +++ b/skills/orm-public/references/check-password.md @@ -1,9 +1,4 @@ ---- -name: orm-public-check-password -description: Execute the checkPassword mutation ---- - -# orm-public-check-password +# checkPassword diff --git a/skills/orm-public-claimed-invite/SKILL.md b/skills/orm-public/references/claimed-invite.md similarity index 86% rename from skills/orm-public-claimed-invite/SKILL.md rename to skills/orm-public/references/claimed-invite.md index fa67ddd35..35a2f1fc7 100644 --- a/skills/orm-public-claimed-invite/SKILL.md +++ b/skills/orm-public/references/claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: orm-public-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# orm-public-claimed-invite +# claimedInvite diff --git a/skills/orm-objects-commit/SKILL.md b/skills/orm-public/references/commit.md similarity index 90% rename from skills/orm-objects-commit/SKILL.md rename to skills/orm-public/references/commit.md index 342d643c2..6f3ead99d 100644 --- a/skills/orm-objects-commit/SKILL.md +++ b/skills/orm-public/references/commit.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-commit -description: A commit records changes to the repository. ---- - -# orm-objects-commit +# commit diff --git a/skills/orm-public-confirm-delete-account/SKILL.md b/skills/orm-public/references/confirm-delete-account.md similarity index 71% rename from skills/orm-public-confirm-delete-account/SKILL.md rename to skills/orm-public/references/confirm-delete-account.md index 4ec35aa11..1bd81edc3 100644 --- a/skills/orm-public-confirm-delete-account/SKILL.md +++ b/skills/orm-public/references/confirm-delete-account.md @@ -1,9 +1,4 @@ ---- -name: orm-public-confirm-delete-account -description: Execute the confirmDeleteAccount mutation ---- - -# orm-public-confirm-delete-account +# confirmDeleteAccount diff --git a/skills/orm-public-connected-account/SKILL.md b/skills/orm-public/references/connected-account.md similarity index 86% rename from skills/orm-public-connected-account/SKILL.md rename to skills/orm-public/references/connected-account.md index 40537be5b..aa560d236 100644 --- a/skills/orm-public-connected-account/SKILL.md +++ b/skills/orm-public/references/connected-account.md @@ -1,9 +1,4 @@ ---- -name: orm-public-connected-account -description: OAuth and social login connections linking external service accounts to users ---- - -# orm-public-connected-account +# connectedAccount diff --git a/skills/orm-public-connected-accounts-module/SKILL.md b/skills/orm-public/references/connected-accounts-module.md similarity index 88% rename from skills/orm-public-connected-accounts-module/SKILL.md rename to skills/orm-public/references/connected-accounts-module.md index 1839acb17..848609464 100644 --- a/skills/orm-public-connected-accounts-module/SKILL.md +++ b/skills/orm-public/references/connected-accounts-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-connected-accounts-module -description: ORM operations for ConnectedAccountsModule records ---- - -# orm-public-connected-accounts-module +# connectedAccountsModule diff --git a/skills/orm-public-create-user-database/SKILL.md b/skills/orm-public/references/create-user-database.md similarity index 54% rename from skills/orm-public-create-user-database/SKILL.md rename to skills/orm-public/references/create-user-database.md index f95f625d0..8f39155cc 100644 --- a/skills/orm-public-create-user-database/SKILL.md +++ b/skills/orm-public/references/create-user-database.md @@ -1,25 +1,4 @@ ---- -name: orm-public-create-user-database -description: Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include levels/achievements (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - ---- - -# orm-public-create-user-database +# createUserDatabase diff --git a/skills/orm-public-crypto-address/SKILL.md b/skills/orm-public/references/crypto-address.md similarity index 85% rename from skills/orm-public-crypto-address/SKILL.md rename to skills/orm-public/references/crypto-address.md index 27d1ff81e..10b9cc8ed 100644 --- a/skills/orm-public-crypto-address/SKILL.md +++ b/skills/orm-public/references/crypto-address.md @@ -1,9 +1,4 @@ ---- -name: orm-public-crypto-address -description: Cryptocurrency wallet addresses owned by users, with network-specific validation and verification ---- - -# orm-public-crypto-address +# cryptoAddress diff --git a/skills/orm-public-crypto-addresses-module/SKILL.md b/skills/orm-public/references/crypto-addresses-module.md similarity index 89% rename from skills/orm-public-crypto-addresses-module/SKILL.md rename to skills/orm-public/references/crypto-addresses-module.md index 53618e924..e90eade85 100644 --- a/skills/orm-public-crypto-addresses-module/SKILL.md +++ b/skills/orm-public/references/crypto-addresses-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-crypto-addresses-module -description: ORM operations for CryptoAddressesModule records ---- - -# orm-public-crypto-addresses-module +# cryptoAddressesModule diff --git a/skills/orm-public-crypto-auth-module/SKILL.md b/skills/orm-public/references/crypto-auth-module.md similarity index 92% rename from skills/orm-public-crypto-auth-module/SKILL.md rename to skills/orm-public/references/crypto-auth-module.md index 5f1c8eb0a..01c8d12b0 100644 --- a/skills/orm-public-crypto-auth-module/SKILL.md +++ b/skills/orm-public/references/crypto-auth-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-crypto-auth-module -description: ORM operations for CryptoAuthModule records ---- - -# orm-public-crypto-auth-module +# cryptoAuthModule diff --git a/skills/orm-public-current-ip-address/SKILL.md b/skills/orm-public/references/current-ip-address.md similarity index 68% rename from skills/orm-public-current-ip-address/SKILL.md rename to skills/orm-public/references/current-ip-address.md index 94cdccb17..1710e6e55 100644 --- a/skills/orm-public-current-ip-address/SKILL.md +++ b/skills/orm-public/references/current-ip-address.md @@ -1,9 +1,4 @@ ---- -name: orm-public-current-ip-address -description: Execute the currentIpAddress query ---- - -# orm-public-current-ip-address +# currentIpAddress diff --git a/skills/orm-public-current-user-agent/SKILL.md b/skills/orm-public/references/current-user-agent.md similarity index 68% rename from skills/orm-public-current-user-agent/SKILL.md rename to skills/orm-public/references/current-user-agent.md index f5f8ec40c..07c3111b8 100644 --- a/skills/orm-public-current-user-agent/SKILL.md +++ b/skills/orm-public/references/current-user-agent.md @@ -1,9 +1,4 @@ ---- -name: orm-public-current-user-agent -description: Execute the currentUserAgent query ---- - -# orm-public-current-user-agent +# currentUserAgent diff --git a/skills/orm-public-current-user-id/SKILL.md b/skills/orm-public/references/current-user-id.md similarity index 69% rename from skills/orm-public-current-user-id/SKILL.md rename to skills/orm-public/references/current-user-id.md index f28f2aac0..82b4141e2 100644 --- a/skills/orm-public-current-user-id/SKILL.md +++ b/skills/orm-public/references/current-user-id.md @@ -1,9 +1,4 @@ ---- -name: orm-public-current-user-id -description: Execute the currentUserId query ---- - -# orm-public-current-user-id +# currentUserId diff --git a/skills/orm-public-current-user/SKILL.md b/skills/orm-public/references/current-user.md similarity index 70% rename from skills/orm-public-current-user/SKILL.md rename to skills/orm-public/references/current-user.md index 994a5cfb3..9c49471b0 100644 --- a/skills/orm-public-current-user/SKILL.md +++ b/skills/orm-public/references/current-user.md @@ -1,9 +1,4 @@ ---- -name: orm-public-current-user -description: Execute the currentUser query ---- - -# orm-public-current-user +# currentUser diff --git a/skills/orm-public-database-provision-module/SKILL.md b/skills/orm-public/references/database-provision-module.md similarity index 85% rename from skills/orm-public-database-provision-module/SKILL.md rename to skills/orm-public/references/database-provision-module.md index 81b5d6529..323f93b4f 100644 --- a/skills/orm-public-database-provision-module/SKILL.md +++ b/skills/orm-public/references/database-provision-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-database-provision-module -description: Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. ---- - -# orm-public-database-provision-module +# databaseProvisionModule diff --git a/skills/orm-public-database/SKILL.md b/skills/orm-public/references/database.md similarity index 89% rename from skills/orm-public-database/SKILL.md rename to skills/orm-public/references/database.md index 8ec74262b..86340eb94 100644 --- a/skills/orm-public-database/SKILL.md +++ b/skills/orm-public/references/database.md @@ -1,9 +1,4 @@ ---- -name: orm-public-database -description: ORM operations for Database records ---- - -# orm-public-database +# database diff --git a/skills/orm-public-default-ids-module/SKILL.md b/skills/orm-public/references/default-ids-module.md similarity index 87% rename from skills/orm-public-default-ids-module/SKILL.md rename to skills/orm-public/references/default-ids-module.md index 2153928eb..b9a75b545 100644 --- a/skills/orm-public-default-ids-module/SKILL.md +++ b/skills/orm-public/references/default-ids-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-default-ids-module -description: ORM operations for DefaultIdsModule records ---- - -# orm-public-default-ids-module +# defaultIdsModule diff --git a/skills/orm-public-default-privilege/SKILL.md b/skills/orm-public/references/default-privilege.md similarity index 89% rename from skills/orm-public-default-privilege/SKILL.md rename to skills/orm-public/references/default-privilege.md index 95846891c..78953f33a 100644 --- a/skills/orm-public-default-privilege/SKILL.md +++ b/skills/orm-public/references/default-privilege.md @@ -1,9 +1,4 @@ ---- -name: orm-public-default-privilege -description: ORM operations for DefaultPrivilege records ---- - -# orm-public-default-privilege +# defaultPrivilege diff --git a/skills/orm-public-denormalized-table-field/SKILL.md b/skills/orm-public/references/denormalized-table-field.md similarity index 90% rename from skills/orm-public-denormalized-table-field/SKILL.md rename to skills/orm-public/references/denormalized-table-field.md index 44f83730c..e8e21b99b 100644 --- a/skills/orm-public-denormalized-table-field/SKILL.md +++ b/skills/orm-public/references/denormalized-table-field.md @@ -1,9 +1,4 @@ ---- -name: orm-public-denormalized-table-field -description: ORM operations for DenormalizedTableField records ---- - -# orm-public-denormalized-table-field +# denormalizedTableField diff --git a/skills/orm-public-domain/SKILL.md b/skills/orm-public/references/domain.md similarity index 86% rename from skills/orm-public-domain/SKILL.md rename to skills/orm-public/references/domain.md index da2c1576e..8ba735f20 100644 --- a/skills/orm-public-domain/SKILL.md +++ b/skills/orm-public/references/domain.md @@ -1,9 +1,4 @@ ---- -name: orm-public-domain -description: DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site ---- - -# orm-public-domain +# domain diff --git a/skills/orm-public-email/SKILL.md b/skills/orm-public/references/email.md similarity index 87% rename from skills/orm-public-email/SKILL.md rename to skills/orm-public/references/email.md index 38601dfa6..f89a71874 100644 --- a/skills/orm-public-email/SKILL.md +++ b/skills/orm-public/references/email.md @@ -1,9 +1,4 @@ ---- -name: orm-public-email -description: User email addresses with verification and primary-email management ---- - -# orm-public-email +# email diff --git a/skills/orm-public-emails-module/SKILL.md b/skills/orm-public/references/emails-module.md similarity index 90% rename from skills/orm-public-emails-module/SKILL.md rename to skills/orm-public/references/emails-module.md index e4cd2287f..7aa8b7c01 100644 --- a/skills/orm-public-emails-module/SKILL.md +++ b/skills/orm-public/references/emails-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-emails-module -description: ORM operations for EmailsModule records ---- - -# orm-public-emails-module +# emailsModule diff --git a/skills/orm-public-encrypted-secrets-module/SKILL.md b/skills/orm-public/references/encrypted-secrets-module.md similarity index 87% rename from skills/orm-public-encrypted-secrets-module/SKILL.md rename to skills/orm-public/references/encrypted-secrets-module.md index 6cec0fb0a..899ff8b77 100644 --- a/skills/orm-public-encrypted-secrets-module/SKILL.md +++ b/skills/orm-public/references/encrypted-secrets-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-encrypted-secrets-module -description: ORM operations for EncryptedSecretsModule records ---- - -# orm-public-encrypted-secrets-module +# encryptedSecretsModule diff --git a/skills/orm-public-extend-token-expires/SKILL.md b/skills/orm-public/references/extend-token-expires.md similarity index 71% rename from skills/orm-public-extend-token-expires/SKILL.md rename to skills/orm-public/references/extend-token-expires.md index f08dd92bb..6d5325213 100644 --- a/skills/orm-public-extend-token-expires/SKILL.md +++ b/skills/orm-public/references/extend-token-expires.md @@ -1,9 +1,4 @@ ---- -name: orm-public-extend-token-expires -description: Execute the extendTokenExpires mutation ---- - -# orm-public-extend-token-expires +# extendTokenExpires diff --git a/skills/orm-public-field-module/SKILL.md b/skills/orm-public/references/field-module.md similarity index 90% rename from skills/orm-public-field-module/SKILL.md rename to skills/orm-public/references/field-module.md index 48a166a35..572a2f624 100644 --- a/skills/orm-public-field-module/SKILL.md +++ b/skills/orm-public/references/field-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-field-module -description: ORM operations for FieldModule records ---- - -# orm-public-field-module +# fieldModule diff --git a/skills/orm-public-field/SKILL.md b/skills/orm-public/references/field.md similarity index 94% rename from skills/orm-public-field/SKILL.md rename to skills/orm-public/references/field.md index b7575c732..bc6a094ca 100644 --- a/skills/orm-public-field/SKILL.md +++ b/skills/orm-public/references/field.md @@ -1,9 +1,4 @@ ---- -name: orm-public-field -description: ORM operations for Field records ---- - -# orm-public-field +# field diff --git a/skills/orm-public-foreign-key-constraint/SKILL.md b/skills/orm-public/references/foreign-key-constraint.md similarity index 91% rename from skills/orm-public-foreign-key-constraint/SKILL.md rename to skills/orm-public/references/foreign-key-constraint.md index 3cf75cbdb..208ed418b 100644 --- a/skills/orm-public-foreign-key-constraint/SKILL.md +++ b/skills/orm-public/references/foreign-key-constraint.md @@ -1,9 +1,4 @@ ---- -name: orm-public-foreign-key-constraint -description: ORM operations for ForeignKeyConstraint records ---- - -# orm-public-foreign-key-constraint +# foreignKeyConstraint diff --git a/skills/orm-public-forgot-password/SKILL.md b/skills/orm-public/references/forgot-password.md similarity index 72% rename from skills/orm-public-forgot-password/SKILL.md rename to skills/orm-public/references/forgot-password.md index 1609c68c6..5615850c5 100644 --- a/skills/orm-public-forgot-password/SKILL.md +++ b/skills/orm-public/references/forgot-password.md @@ -1,9 +1,4 @@ ---- -name: orm-public-forgot-password -description: Execute the forgotPassword mutation ---- - -# orm-public-forgot-password +# forgotPassword diff --git a/skills/orm-objects-freeze-objects/SKILL.md b/skills/orm-public/references/freeze-objects.md similarity index 72% rename from skills/orm-objects-freeze-objects/SKILL.md rename to skills/orm-public/references/freeze-objects.md index d7f4198a8..e8b29e205 100644 --- a/skills/orm-objects-freeze-objects/SKILL.md +++ b/skills/orm-public/references/freeze-objects.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-freeze-objects -description: Execute the freezeObjects mutation ---- - -# orm-objects-freeze-objects +# freezeObjects diff --git a/skills/orm-public-full-text-search/SKILL.md b/skills/orm-public/references/full-text-search.md similarity index 89% rename from skills/orm-public-full-text-search/SKILL.md rename to skills/orm-public/references/full-text-search.md index 8069ddc72..b433af08b 100644 --- a/skills/orm-public-full-text-search/SKILL.md +++ b/skills/orm-public/references/full-text-search.md @@ -1,9 +1,4 @@ ---- -name: orm-public-full-text-search -description: ORM operations for FullTextSearch records ---- - -# orm-public-full-text-search +# fullTextSearch diff --git a/skills/orm-objects-get-all-objects-from-root/SKILL.md b/skills/orm-public/references/get-all-objects-from-root.md similarity index 75% rename from skills/orm-objects-get-all-objects-from-root/SKILL.md rename to skills/orm-public/references/get-all-objects-from-root.md index 94d372ab2..a7c250d28 100644 --- a/skills/orm-objects-get-all-objects-from-root/SKILL.md +++ b/skills/orm-public/references/get-all-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-get-all-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# orm-objects-get-all-objects-from-root +# getAllObjectsFromRoot diff --git a/skills/orm-objects-get-all-record/SKILL.md b/skills/orm-public/references/get-all-record.md similarity index 87% rename from skills/orm-objects-get-all-record/SKILL.md rename to skills/orm-public/references/get-all-record.md index 7ef426d3d..b40517647 100644 --- a/skills/orm-objects-get-all-record/SKILL.md +++ b/skills/orm-public/references/get-all-record.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-get-all-record -description: ORM operations for GetAllRecord records ---- - -# orm-objects-get-all-record +# getAllRecord diff --git a/skills/orm-objects-get-object-at-path/SKILL.md b/skills/orm-public/references/get-object-at-path.md similarity index 77% rename from skills/orm-objects-get-object-at-path/SKILL.md rename to skills/orm-public/references/get-object-at-path.md index d7eb19fca..c49736477 100644 --- a/skills/orm-objects-get-object-at-path/SKILL.md +++ b/skills/orm-public/references/get-object-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-get-object-at-path -description: Execute the getObjectAtPath query ---- - -# orm-objects-get-object-at-path +# getObjectAtPath diff --git a/skills/orm-objects-get-path-objects-from-root/SKILL.md b/skills/orm-public/references/get-path-objects-from-root.md similarity index 76% rename from skills/orm-objects-get-path-objects-from-root/SKILL.md rename to skills/orm-public/references/get-path-objects-from-root.md index 5d39c5068..59e8badd7 100644 --- a/skills/orm-objects-get-path-objects-from-root/SKILL.md +++ b/skills/orm-public/references/get-path-objects-from-root.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-get-path-objects-from-root -description: Reads and enables pagination through a set of `Object`. ---- - -# orm-objects-get-path-objects-from-root +# getPathObjectsFromRoot diff --git a/skills/orm-public-hierarchy-module/SKILL.md b/skills/orm-public/references/hierarchy-module.md similarity index 93% rename from skills/orm-public-hierarchy-module/SKILL.md rename to skills/orm-public/references/hierarchy-module.md index 324699c32..4487340e5 100644 --- a/skills/orm-public-hierarchy-module/SKILL.md +++ b/skills/orm-public/references/hierarchy-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-hierarchy-module -description: ORM operations for HierarchyModule records ---- - -# orm-public-hierarchy-module +# hierarchyModule diff --git a/skills/orm-public-index/SKILL.md b/skills/orm-public/references/index.md similarity index 93% rename from skills/orm-public-index/SKILL.md rename to skills/orm-public/references/index.md index bd3e07dcd..aa07f8444 100644 --- a/skills/orm-public-index/SKILL.md +++ b/skills/orm-public/references/index.md @@ -1,9 +1,4 @@ ---- -name: orm-public-index -description: ORM operations for Index records ---- - -# orm-public-index +# index diff --git a/skills/orm-objects-init-empty-repo/SKILL.md b/skills/orm-public/references/init-empty-repo.md similarity index 72% rename from skills/orm-objects-init-empty-repo/SKILL.md rename to skills/orm-public/references/init-empty-repo.md index 59f07d151..8fc4c9b99 100644 --- a/skills/orm-objects-init-empty-repo/SKILL.md +++ b/skills/orm-public/references/init-empty-repo.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-init-empty-repo -description: Execute the initEmptyRepo mutation ---- - -# orm-objects-init-empty-repo +# initEmptyRepo diff --git a/skills/orm-objects-insert-node-at-path/SKILL.md b/skills/orm-public/references/insert-node-at-path.md similarity index 71% rename from skills/orm-objects-insert-node-at-path/SKILL.md rename to skills/orm-public/references/insert-node-at-path.md index b9867716c..76509b290 100644 --- a/skills/orm-objects-insert-node-at-path/SKILL.md +++ b/skills/orm-public/references/insert-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-insert-node-at-path -description: Execute the insertNodeAtPath mutation ---- - -# orm-objects-insert-node-at-path +# insertNodeAtPath diff --git a/skills/orm-public-invite/SKILL.md b/skills/orm-public/references/invite.md similarity index 87% rename from skills/orm-public-invite/SKILL.md rename to skills/orm-public/references/invite.md index 84aea42bf..58d4f5fd7 100644 --- a/skills/orm-public-invite/SKILL.md +++ b/skills/orm-public/references/invite.md @@ -1,9 +1,4 @@ ---- -name: orm-public-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# orm-public-invite +# invite diff --git a/skills/orm-public-invites-module/SKILL.md b/skills/orm-public/references/invites-module.md similarity index 92% rename from skills/orm-public-invites-module/SKILL.md rename to skills/orm-public/references/invites-module.md index 9c72538e9..969726254 100644 --- a/skills/orm-public-invites-module/SKILL.md +++ b/skills/orm-public/references/invites-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-invites-module -description: ORM operations for InvitesModule records ---- - -# orm-public-invites-module +# invitesModule diff --git a/skills/orm-public-levels-module/SKILL.md b/skills/orm-public/references/levels-module.md similarity index 94% rename from skills/orm-public-levels-module/SKILL.md rename to skills/orm-public/references/levels-module.md index 898f59a09..788933a3c 100644 --- a/skills/orm-public-levels-module/SKILL.md +++ b/skills/orm-public/references/levels-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-levels-module -description: ORM operations for LevelsModule records ---- - -# orm-public-levels-module +# levelsModule diff --git a/skills/orm-public-limits-module/SKILL.md b/skills/orm-public/references/limits-module.md similarity index 93% rename from skills/orm-public-limits-module/SKILL.md rename to skills/orm-public/references/limits-module.md index 5e7a0a450..fcf15b0e9 100644 --- a/skills/orm-public-limits-module/SKILL.md +++ b/skills/orm-public/references/limits-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-limits-module -description: ORM operations for LimitsModule records ---- - -# orm-public-limits-module +# limitsModule diff --git a/skills/orm-public-membership-type/SKILL.md b/skills/orm-public/references/membership-type.md similarity index 84% rename from skills/orm-public-membership-type/SKILL.md rename to skills/orm-public/references/membership-type.md index 3259f0c5e..f53c9f806 100644 --- a/skills/orm-public-membership-type/SKILL.md +++ b/skills/orm-public/references/membership-type.md @@ -1,9 +1,4 @@ ---- -name: orm-public-membership-type -description: Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) ---- - -# orm-public-membership-type +# membershipType diff --git a/skills/orm-public-membership-types-module/SKILL.md b/skills/orm-public/references/membership-types-module.md similarity index 87% rename from skills/orm-public-membership-types-module/SKILL.md rename to skills/orm-public/references/membership-types-module.md index abb41603d..7c684800a 100644 --- a/skills/orm-public-membership-types-module/SKILL.md +++ b/skills/orm-public/references/membership-types-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-membership-types-module -description: ORM operations for MembershipTypesModule records ---- - -# orm-public-membership-types-module +# membershipTypesModule diff --git a/skills/orm-public-memberships-module/SKILL.md b/skills/orm-public/references/memberships-module.md similarity index 94% rename from skills/orm-public-memberships-module/SKILL.md rename to skills/orm-public/references/memberships-module.md index 7a04a59d1..776bc63a0 100644 --- a/skills/orm-public-memberships-module/SKILL.md +++ b/skills/orm-public/references/memberships-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-memberships-module -description: ORM operations for MembershipsModule records ---- - -# orm-public-memberships-module +# membershipsModule diff --git a/skills/orm-public-node-type-registry/SKILL.md b/skills/orm-public/references/node-type-registry.md similarity index 83% rename from skills/orm-public-node-type-registry/SKILL.md rename to skills/orm-public/references/node-type-registry.md index a42db6300..08d1c2054 100644 --- a/skills/orm-public-node-type-registry/SKILL.md +++ b/skills/orm-public/references/node-type-registry.md @@ -1,9 +1,4 @@ ---- -name: orm-public-node-type-registry -description: Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). ---- - -# orm-public-node-type-registry +# nodeTypeRegistry diff --git a/skills/orm-objects-object/SKILL.md b/skills/orm-public/references/object.md similarity index 90% rename from skills/orm-objects-object/SKILL.md rename to skills/orm-public/references/object.md index ef185c5e0..793c8bcd7 100644 --- a/skills/orm-objects-object/SKILL.md +++ b/skills/orm-public/references/object.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-object -description: ORM operations for Object records ---- - -# orm-objects-object +# object diff --git a/skills/orm-public-one-time-token/SKILL.md b/skills/orm-public/references/one-time-token.md similarity index 72% rename from skills/orm-public-one-time-token/SKILL.md rename to skills/orm-public/references/one-time-token.md index 1dd366bcb..9a2880c8f 100644 --- a/skills/orm-public-one-time-token/SKILL.md +++ b/skills/orm-public/references/one-time-token.md @@ -1,9 +1,4 @@ ---- -name: orm-public-one-time-token -description: Execute the oneTimeToken mutation ---- - -# orm-public-one-time-token +# oneTimeToken diff --git a/skills/orm-public-org-admin-grant/SKILL.md b/skills/orm-public/references/org-admin-grant.md similarity index 87% rename from skills/orm-public-org-admin-grant/SKILL.md rename to skills/orm-public/references/org-admin-grant.md index 29439f33b..0d5f67026 100644 --- a/skills/orm-public-org-admin-grant/SKILL.md +++ b/skills/orm-public/references/org-admin-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-admin-grant -description: Records of admin role grants and revocations between members ---- - -# orm-public-org-admin-grant +# orgAdminGrant diff --git a/skills/orm-public-org-chart-edge-grant/SKILL.md b/skills/orm-public/references/org-chart-edge-grant.md similarity index 86% rename from skills/orm-public-org-chart-edge-grant/SKILL.md rename to skills/orm-public/references/org-chart-edge-grant.md index b98d146f8..55c97a1cb 100644 --- a/skills/orm-public-org-chart-edge-grant/SKILL.md +++ b/skills/orm-public/references/org-chart-edge-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-chart-edge-grant -description: Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table ---- - -# orm-public-org-chart-edge-grant +# orgChartEdgeGrant diff --git a/skills/orm-public-org-chart-edge/SKILL.md b/skills/orm-public/references/org-chart-edge.md similarity index 85% rename from skills/orm-public-org-chart-edge/SKILL.md rename to skills/orm-public/references/org-chart-edge.md index 177ce5dfa..7fd06a563 100644 --- a/skills/orm-public-org-chart-edge/SKILL.md +++ b/skills/orm-public/references/org-chart-edge.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-chart-edge -description: Organizational chart edges defining parent-child reporting relationships between members within an entity ---- - -# orm-public-org-chart-edge +# orgChartEdge diff --git a/skills/orm-public-org-claimed-invite/SKILL.md b/skills/orm-public/references/org-claimed-invite.md similarity index 86% rename from skills/orm-public-org-claimed-invite/SKILL.md rename to skills/orm-public/references/org-claimed-invite.md index 81286ae1d..663a6733a 100644 --- a/skills/orm-public-org-claimed-invite/SKILL.md +++ b/skills/orm-public/references/org-claimed-invite.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-claimed-invite -description: Records of successfully claimed invitations, linking senders to receivers ---- - -# orm-public-org-claimed-invite +# orgClaimedInvite diff --git a/skills/orm-public-org-get-managers-record/SKILL.md b/skills/orm-public/references/org-get-managers-record.md similarity index 86% rename from skills/orm-public-org-get-managers-record/SKILL.md rename to skills/orm-public/references/org-get-managers-record.md index 0ce6e07f6..5ea846004 100644 --- a/skills/orm-public-org-get-managers-record/SKILL.md +++ b/skills/orm-public/references/org-get-managers-record.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-get-managers-record -description: ORM operations for OrgGetManagersRecord records ---- - -# orm-public-org-get-managers-record +# orgGetManagersRecord diff --git a/skills/orm-public-org-get-subordinates-record/SKILL.md b/skills/orm-public/references/org-get-subordinates-record.md similarity index 86% rename from skills/orm-public-org-get-subordinates-record/SKILL.md rename to skills/orm-public/references/org-get-subordinates-record.md index e231a668d..9ad550faa 100644 --- a/skills/orm-public-org-get-subordinates-record/SKILL.md +++ b/skills/orm-public/references/org-get-subordinates-record.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-get-subordinates-record -description: ORM operations for OrgGetSubordinatesRecord records ---- - -# orm-public-org-get-subordinates-record +# orgGetSubordinatesRecord diff --git a/skills/orm-public-org-grant/SKILL.md b/skills/orm-public/references/org-grant.md similarity index 87% rename from skills/orm-public-org-grant/SKILL.md rename to skills/orm-public/references/org-grant.md index db84df231..cac51ea17 100644 --- a/skills/orm-public-org-grant/SKILL.md +++ b/skills/orm-public/references/org-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-grant -description: Records of individual permission grants and revocations for members via bitmask ---- - -# orm-public-org-grant +# orgGrant diff --git a/skills/orm-public-org-invite/SKILL.md b/skills/orm-public/references/org-invite.md similarity index 88% rename from skills/orm-public-org-invite/SKILL.md rename to skills/orm-public/references/org-invite.md index a937504cc..27ea8b4ac 100644 --- a/skills/orm-public-org-invite/SKILL.md +++ b/skills/orm-public/references/org-invite.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-invite -description: Invitation records sent to prospective members via email, with token-based redemption and expiration ---- - -# orm-public-org-invite +# orgInvite diff --git a/skills/orm-public-org-is-manager-of/SKILL.md b/skills/orm-public/references/org-is-manager-of.md similarity index 78% rename from skills/orm-public-org-is-manager-of/SKILL.md rename to skills/orm-public/references/org-is-manager-of.md index 42ec40962..297cd9d25 100644 --- a/skills/orm-public-org-is-manager-of/SKILL.md +++ b/skills/orm-public/references/org-is-manager-of.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-is-manager-of -description: Execute the orgIsManagerOf query ---- - -# orm-public-org-is-manager-of +# orgIsManagerOf diff --git a/skills/orm-public-org-limit-default/SKILL.md b/skills/orm-public/references/org-limit-default.md similarity index 84% rename from skills/orm-public-org-limit-default/SKILL.md rename to skills/orm-public/references/org-limit-default.md index a9d76bf56..50f1c01dc 100644 --- a/skills/orm-public-org-limit-default/SKILL.md +++ b/skills/orm-public/references/org-limit-default.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-limit-default -description: Default maximum values for each named limit, applied when no per-actor override exists ---- - -# orm-public-org-limit-default +# orgLimitDefault diff --git a/skills/orm-public-org-limit/SKILL.md b/skills/orm-public/references/org-limit.md similarity index 87% rename from skills/orm-public-org-limit/SKILL.md rename to skills/orm-public/references/org-limit.md index e7453db98..0326e1e56 100644 --- a/skills/orm-public-org-limit/SKILL.md +++ b/skills/orm-public/references/org-limit.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-limit -description: Tracks per-actor usage counts against configurable maximum limits ---- - -# orm-public-org-limit +# orgLimit diff --git a/skills/orm-public-org-member/SKILL.md b/skills/orm-public/references/org-member.md similarity index 84% rename from skills/orm-public-org-member/SKILL.md rename to skills/orm-public/references/org-member.md index c0188b594..8843ae79c 100644 --- a/skills/orm-public-org-member/SKILL.md +++ b/skills/orm-public/references/org-member.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-member -description: Simplified view of active members in an entity, used for listing who belongs to an org or group ---- - -# orm-public-org-member +# orgMember diff --git a/skills/orm-public-org-membership-default/SKILL.md b/skills/orm-public/references/org-membership-default.md similarity index 86% rename from skills/orm-public-org-membership-default/SKILL.md rename to skills/orm-public/references/org-membership-default.md index 15ca6ee2f..016a513cf 100644 --- a/skills/orm-public-org-membership-default/SKILL.md +++ b/skills/orm-public/references/org-membership-default.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-membership-default -description: Default membership settings per entity, controlling initial approval and verification state for new members ---- - -# orm-public-org-membership-default +# orgMembershipDefault diff --git a/skills/orm-public-org-membership/SKILL.md b/skills/orm-public/references/org-membership.md similarity index 88% rename from skills/orm-public-org-membership/SKILL.md rename to skills/orm-public/references/org-membership.md index 7ce852b47..fd7feb28f 100644 --- a/skills/orm-public-org-membership/SKILL.md +++ b/skills/orm-public/references/org-membership.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-membership -description: Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status ---- - -# orm-public-org-membership +# orgMembership diff --git a/skills/orm-public-org-owner-grant/SKILL.md b/skills/orm-public/references/org-owner-grant.md similarity index 87% rename from skills/orm-public-org-owner-grant/SKILL.md rename to skills/orm-public/references/org-owner-grant.md index 2bc639cdc..ddac1e36c 100644 --- a/skills/orm-public-org-owner-grant/SKILL.md +++ b/skills/orm-public/references/org-owner-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-owner-grant -description: Records of ownership transfers and grants between members ---- - -# orm-public-org-owner-grant +# orgOwnerGrant diff --git a/skills/orm-public-org-permission-default/SKILL.md b/skills/orm-public/references/org-permission-default.md similarity index 85% rename from skills/orm-public-org-permission-default/SKILL.md rename to skills/orm-public/references/org-permission-default.md index fe9390ae7..76fd65f89 100644 --- a/skills/orm-public-org-permission-default/SKILL.md +++ b/skills/orm-public/references/org-permission-default.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-permission-default -description: Stores the default permission bitmask assigned to new members upon joining ---- - -# orm-public-org-permission-default +# orgPermissionDefault diff --git a/skills/orm-public-org-permission/SKILL.md b/skills/orm-public/references/org-permission.md similarity index 84% rename from skills/orm-public-org-permission/SKILL.md rename to skills/orm-public/references/org-permission.md index f3e987e1a..5be6a77e0 100644 --- a/skills/orm-public-org-permission/SKILL.md +++ b/skills/orm-public/references/org-permission.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-permission -description: Defines available permissions as named bits within a bitmask, used by the RBAC system for access control ---- - -# orm-public-org-permission +# orgPermission diff --git a/skills/orm-public-org-permissions-get-by-mask/SKILL.md b/skills/orm-public/references/org-permissions-get-by-mask.md similarity index 73% rename from skills/orm-public-org-permissions-get-by-mask/SKILL.md rename to skills/orm-public/references/org-permissions-get-by-mask.md index a00428159..f2d575f78 100644 --- a/skills/orm-public-org-permissions-get-by-mask/SKILL.md +++ b/skills/orm-public/references/org-permissions-get-by-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-permissions-get-by-mask -description: Reads and enables pagination through a set of `OrgPermission`. ---- - -# orm-public-org-permissions-get-by-mask +# orgPermissionsGetByMask diff --git a/skills/orm-public-org-permissions-get-mask-by-names/SKILL.md b/skills/orm-public/references/org-permissions-get-mask-by-names.md similarity index 68% rename from skills/orm-public-org-permissions-get-mask-by-names/SKILL.md rename to skills/orm-public/references/org-permissions-get-mask-by-names.md index 920f27099..b1733bc1e 100644 --- a/skills/orm-public-org-permissions-get-mask-by-names/SKILL.md +++ b/skills/orm-public/references/org-permissions-get-mask-by-names.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-permissions-get-mask-by-names -description: Execute the orgPermissionsGetMaskByNames query ---- - -# orm-public-org-permissions-get-mask-by-names +# orgPermissionsGetMaskByNames diff --git a/skills/orm-public-org-permissions-get-mask/SKILL.md b/skills/orm-public/references/org-permissions-get-mask.md similarity index 70% rename from skills/orm-public-org-permissions-get-mask/SKILL.md rename to skills/orm-public/references/org-permissions-get-mask.md index 0655f1f26..1469dcd3d 100644 --- a/skills/orm-public-org-permissions-get-mask/SKILL.md +++ b/skills/orm-public/references/org-permissions-get-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-permissions-get-mask -description: Execute the orgPermissionsGetMask query ---- - -# orm-public-org-permissions-get-mask +# orgPermissionsGetMask diff --git a/skills/orm-public-org-permissions-get-padded-mask/SKILL.md b/skills/orm-public/references/org-permissions-get-padded-mask.md similarity index 68% rename from skills/orm-public-org-permissions-get-padded-mask/SKILL.md rename to skills/orm-public/references/org-permissions-get-padded-mask.md index a84dc722d..9469bf338 100644 --- a/skills/orm-public-org-permissions-get-padded-mask/SKILL.md +++ b/skills/orm-public/references/org-permissions-get-padded-mask.md @@ -1,9 +1,4 @@ ---- -name: orm-public-org-permissions-get-padded-mask -description: Execute the orgPermissionsGetPaddedMask query ---- - -# orm-public-org-permissions-get-padded-mask +# orgPermissionsGetPaddedMask diff --git a/skills/orm-public-permissions-module/SKILL.md b/skills/orm-public/references/permissions-module.md similarity index 92% rename from skills/orm-public-permissions-module/SKILL.md rename to skills/orm-public/references/permissions-module.md index 2436c9a23..ea62c00fe 100644 --- a/skills/orm-public-permissions-module/SKILL.md +++ b/skills/orm-public/references/permissions-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-permissions-module -description: ORM operations for PermissionsModule records ---- - -# orm-public-permissions-module +# permissionsModule diff --git a/skills/orm-public-phone-number/SKILL.md b/skills/orm-public/references/phone-number.md similarity index 86% rename from skills/orm-public-phone-number/SKILL.md rename to skills/orm-public/references/phone-number.md index e44134203..1ecf93b35 100644 --- a/skills/orm-public-phone-number/SKILL.md +++ b/skills/orm-public/references/phone-number.md @@ -1,9 +1,4 @@ ---- -name: orm-public-phone-number -description: User phone numbers with country code, verification, and primary-number management ---- - -# orm-public-phone-number +# phoneNumber diff --git a/skills/orm-public-phone-numbers-module/SKILL.md b/skills/orm-public/references/phone-numbers-module.md similarity index 89% rename from skills/orm-public-phone-numbers-module/SKILL.md rename to skills/orm-public/references/phone-numbers-module.md index ab998cade..ce5468e2f 100644 --- a/skills/orm-public-phone-numbers-module/SKILL.md +++ b/skills/orm-public/references/phone-numbers-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-phone-numbers-module -description: ORM operations for PhoneNumbersModule records ---- - -# orm-public-phone-numbers-module +# phoneNumbersModule diff --git a/skills/orm-public-policy/SKILL.md b/skills/orm-public/references/policy.md similarity index 92% rename from skills/orm-public-policy/SKILL.md rename to skills/orm-public/references/policy.md index 4c87c1c98..d73ed7e05 100644 --- a/skills/orm-public-policy/SKILL.md +++ b/skills/orm-public/references/policy.md @@ -1,9 +1,4 @@ ---- -name: orm-public-policy -description: ORM operations for Policy records ---- - -# orm-public-policy +# policy diff --git a/skills/orm-public-primary-key-constraint/SKILL.md b/skills/orm-public/references/primary-key-constraint.md similarity index 89% rename from skills/orm-public-primary-key-constraint/SKILL.md rename to skills/orm-public/references/primary-key-constraint.md index 03a6c72cf..c3e4fb20a 100644 --- a/skills/orm-public-primary-key-constraint/SKILL.md +++ b/skills/orm-public/references/primary-key-constraint.md @@ -1,9 +1,4 @@ ---- -name: orm-public-primary-key-constraint -description: ORM operations for PrimaryKeyConstraint records ---- - -# orm-public-primary-key-constraint +# primaryKeyConstraint diff --git a/skills/orm-public-profiles-module/SKILL.md b/skills/orm-public/references/profiles-module.md similarity index 93% rename from skills/orm-public-profiles-module/SKILL.md rename to skills/orm-public/references/profiles-module.md index 60a2afebf..db21d821e 100644 --- a/skills/orm-public-profiles-module/SKILL.md +++ b/skills/orm-public/references/profiles-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-profiles-module -description: ORM operations for ProfilesModule records ---- - -# orm-public-profiles-module +# profilesModule diff --git a/skills/orm-public-provision-database-with-user/SKILL.md b/skills/orm-public/references/provision-database-with-user.md similarity index 69% rename from skills/orm-public-provision-database-with-user/SKILL.md rename to skills/orm-public/references/provision-database-with-user.md index 9f7d4d887..9935ab57c 100644 --- a/skills/orm-public-provision-database-with-user/SKILL.md +++ b/skills/orm-public/references/provision-database-with-user.md @@ -1,9 +1,4 @@ ---- -name: orm-public-provision-database-with-user -description: Execute the provisionDatabaseWithUser mutation ---- - -# orm-public-provision-database-with-user +# provisionDatabaseWithUser diff --git a/skills/orm-objects-ref/SKILL.md b/skills/orm-public/references/ref.md similarity index 88% rename from skills/orm-objects-ref/SKILL.md rename to skills/orm-public/references/ref.md index 0b5f578d0..f677081b4 100644 --- a/skills/orm-objects-ref/SKILL.md +++ b/skills/orm-public/references/ref.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-ref -description: A ref is a data structure for pointing to a commit. ---- - -# orm-objects-ref +# ref diff --git a/skills/orm-public-relation-provision/SKILL.md b/skills/orm-public/references/relation-provision.md similarity index 72% rename from skills/orm-public-relation-provision/SKILL.md rename to skills/orm-public/references/relation-provision.md index f26f20fe5..2ee6d8817 100644 --- a/skills/orm-public-relation-provision/SKILL.md +++ b/skills/orm-public/references/relation-provision.md @@ -1,16 +1,4 @@ ---- -name: orm-public-relation-provision -description: 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. ---- - -# orm-public-relation-provision +# relationProvision diff --git a/skills/orm-objects-remove-node-at-path/SKILL.md b/skills/orm-public/references/remove-node-at-path.md similarity index 71% rename from skills/orm-objects-remove-node-at-path/SKILL.md rename to skills/orm-public/references/remove-node-at-path.md index 1150ac840..2f40be220 100644 --- a/skills/orm-objects-remove-node-at-path/SKILL.md +++ b/skills/orm-public/references/remove-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-remove-node-at-path -description: Execute the removeNodeAtPath mutation ---- - -# orm-objects-remove-node-at-path +# removeNodeAtPath diff --git a/skills/orm-public-reset-password/SKILL.md b/skills/orm-public/references/reset-password.md similarity index 72% rename from skills/orm-public-reset-password/SKILL.md rename to skills/orm-public/references/reset-password.md index 16510ff32..1a456d7db 100644 --- a/skills/orm-public-reset-password/SKILL.md +++ b/skills/orm-public/references/reset-password.md @@ -1,9 +1,4 @@ ---- -name: orm-public-reset-password -description: Execute the resetPassword mutation ---- - -# orm-public-reset-password +# resetPassword diff --git a/skills/orm-objects-rev-parse/SKILL.md b/skills/orm-public/references/rev-parse.md similarity index 78% rename from skills/orm-objects-rev-parse/SKILL.md rename to skills/orm-public/references/rev-parse.md index cf1c5ba83..a453a521e 100644 --- a/skills/orm-objects-rev-parse/SKILL.md +++ b/skills/orm-public/references/rev-parse.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-rev-parse -description: Execute the revParse query ---- - -# orm-objects-rev-parse +# revParse diff --git a/skills/orm-public-rls-module/SKILL.md b/skills/orm-public/references/rls-module.md similarity index 92% rename from skills/orm-public-rls-module/SKILL.md rename to skills/orm-public/references/rls-module.md index 11e7186a2..3878d9298 100644 --- a/skills/orm-public-rls-module/SKILL.md +++ b/skills/orm-public/references/rls-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-rls-module -description: ORM operations for RlsModule records ---- - -# orm-public-rls-module +# rlsModule diff --git a/skills/orm-public-role-type/SKILL.md b/skills/orm-public/references/role-type.md similarity index 88% rename from skills/orm-public-role-type/SKILL.md rename to skills/orm-public/references/role-type.md index 9da17ff48..b792f600c 100644 --- a/skills/orm-public-role-type/SKILL.md +++ b/skills/orm-public/references/role-type.md @@ -1,9 +1,4 @@ ---- -name: orm-public-role-type -description: ORM operations for RoleType records ---- - -# orm-public-role-type +# roleType diff --git a/skills/orm-public-schema-grant/SKILL.md b/skills/orm-public/references/schema-grant.md similarity index 88% rename from skills/orm-public-schema-grant/SKILL.md rename to skills/orm-public/references/schema-grant.md index 4e08d6d36..01ac45e74 100644 --- a/skills/orm-public-schema-grant/SKILL.md +++ b/skills/orm-public/references/schema-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-schema-grant -description: ORM operations for SchemaGrant records ---- - -# orm-public-schema-grant +# schemaGrant diff --git a/skills/orm-public-schema/SKILL.md b/skills/orm-public/references/schema.md similarity index 92% rename from skills/orm-public-schema/SKILL.md rename to skills/orm-public/references/schema.md index 04e2486c2..b79a48fdc 100644 --- a/skills/orm-public-schema/SKILL.md +++ b/skills/orm-public/references/schema.md @@ -1,9 +1,4 @@ ---- -name: orm-public-schema -description: ORM operations for Schema records ---- - -# orm-public-schema +# schema diff --git a/skills/orm-public-secrets-module/SKILL.md b/skills/orm-public/references/secrets-module.md similarity index 88% rename from skills/orm-public-secrets-module/SKILL.md rename to skills/orm-public/references/secrets-module.md index 9cd83fd70..2916cd2e5 100644 --- a/skills/orm-public-secrets-module/SKILL.md +++ b/skills/orm-public/references/secrets-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-secrets-module -description: ORM operations for SecretsModule records ---- - -# orm-public-secrets-module +# secretsModule diff --git a/skills/orm-public-secure-table-provision/SKILL.md b/skills/orm-public/references/secure-table-provision.md similarity index 81% rename from skills/orm-public-secure-table-provision/SKILL.md rename to skills/orm-public/references/secure-table-provision.md index 6bc41204f..a541e3a0b 100644 --- a/skills/orm-public-secure-table-provision/SKILL.md +++ b/skills/orm-public/references/secure-table-provision.md @@ -1,9 +1,4 @@ ---- -name: orm-public-secure-table-provision -description: Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. ---- - -# orm-public-secure-table-provision +# secureTableProvision diff --git a/skills/orm-public-send-account-deletion-email/SKILL.md b/skills/orm-public/references/send-account-deletion-email.md similarity index 69% rename from skills/orm-public-send-account-deletion-email/SKILL.md rename to skills/orm-public/references/send-account-deletion-email.md index 2cd11b55d..300831013 100644 --- a/skills/orm-public-send-account-deletion-email/SKILL.md +++ b/skills/orm-public/references/send-account-deletion-email.md @@ -1,9 +1,4 @@ ---- -name: orm-public-send-account-deletion-email -description: Execute the sendAccountDeletionEmail mutation ---- - -# orm-public-send-account-deletion-email +# sendAccountDeletionEmail diff --git a/skills/orm-public-send-verification-email/SKILL.md b/skills/orm-public/references/send-verification-email.md similarity index 70% rename from skills/orm-public-send-verification-email/SKILL.md rename to skills/orm-public/references/send-verification-email.md index b9522b74d..1e8703b3b 100644 --- a/skills/orm-public-send-verification-email/SKILL.md +++ b/skills/orm-public/references/send-verification-email.md @@ -1,9 +1,4 @@ ---- -name: orm-public-send-verification-email -description: Execute the sendVerificationEmail mutation ---- - -# orm-public-send-verification-email +# sendVerificationEmail diff --git a/skills/orm-public-sessions-module/SKILL.md b/skills/orm-public/references/sessions-module.md similarity index 91% rename from skills/orm-public-sessions-module/SKILL.md rename to skills/orm-public/references/sessions-module.md index 3234daa59..73a0d21c1 100644 --- a/skills/orm-public-sessions-module/SKILL.md +++ b/skills/orm-public/references/sessions-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-sessions-module -description: ORM operations for SessionsModule records ---- - -# orm-public-sessions-module +# sessionsModule diff --git a/skills/orm-objects-set-and-commit/SKILL.md b/skills/orm-public/references/set-and-commit.md similarity index 72% rename from skills/orm-objects-set-and-commit/SKILL.md rename to skills/orm-public/references/set-and-commit.md index f7220b7e0..0338f98b8 100644 --- a/skills/orm-objects-set-and-commit/SKILL.md +++ b/skills/orm-public/references/set-and-commit.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-set-and-commit -description: Execute the setAndCommit mutation ---- - -# orm-objects-set-and-commit +# setAndCommit diff --git a/skills/orm-objects-set-data-at-path/SKILL.md b/skills/orm-public/references/set-data-at-path.md similarity index 71% rename from skills/orm-objects-set-data-at-path/SKILL.md rename to skills/orm-public/references/set-data-at-path.md index e0b9ca706..8aa78306f 100644 --- a/skills/orm-objects-set-data-at-path/SKILL.md +++ b/skills/orm-public/references/set-data-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-set-data-at-path -description: Execute the setDataAtPath mutation ---- - -# orm-objects-set-data-at-path +# setDataAtPath diff --git a/skills/orm-public-set-field-order/SKILL.md b/skills/orm-public/references/set-field-order.md similarity index 72% rename from skills/orm-public-set-field-order/SKILL.md rename to skills/orm-public/references/set-field-order.md index 035bd9f98..7680978bc 100644 --- a/skills/orm-public-set-field-order/SKILL.md +++ b/skills/orm-public/references/set-field-order.md @@ -1,9 +1,4 @@ ---- -name: orm-public-set-field-order -description: Execute the setFieldOrder mutation ---- - -# orm-public-set-field-order +# setFieldOrder diff --git a/skills/orm-public-set-password/SKILL.md b/skills/orm-public/references/set-password.md similarity index 73% rename from skills/orm-public-set-password/SKILL.md rename to skills/orm-public/references/set-password.md index 8a31b150e..b73aa55f2 100644 --- a/skills/orm-public-set-password/SKILL.md +++ b/skills/orm-public/references/set-password.md @@ -1,9 +1,4 @@ ---- -name: orm-public-set-password -description: Execute the setPassword mutation ---- - -# orm-public-set-password +# setPassword diff --git a/skills/orm-objects-set-props-and-commit/SKILL.md b/skills/orm-public/references/set-props-and-commit.md similarity index 71% rename from skills/orm-objects-set-props-and-commit/SKILL.md rename to skills/orm-public/references/set-props-and-commit.md index 6deab0d53..55680feb5 100644 --- a/skills/orm-objects-set-props-and-commit/SKILL.md +++ b/skills/orm-public/references/set-props-and-commit.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-set-props-and-commit -description: Execute the setPropsAndCommit mutation ---- - -# orm-objects-set-props-and-commit +# setPropsAndCommit diff --git a/skills/orm-public-sign-in-one-time-token/SKILL.md b/skills/orm-public/references/sign-in-one-time-token.md similarity index 70% rename from skills/orm-public-sign-in-one-time-token/SKILL.md rename to skills/orm-public/references/sign-in-one-time-token.md index a37af9f59..c65989daa 100644 --- a/skills/orm-public-sign-in-one-time-token/SKILL.md +++ b/skills/orm-public/references/sign-in-one-time-token.md @@ -1,9 +1,4 @@ ---- -name: orm-public-sign-in-one-time-token -description: Execute the signInOneTimeToken mutation ---- - -# orm-public-sign-in-one-time-token +# signInOneTimeToken diff --git a/skills/orm-public-sign-in/SKILL.md b/skills/orm-public/references/sign-in.md similarity index 74% rename from skills/orm-public-sign-in/SKILL.md rename to skills/orm-public/references/sign-in.md index ef1338695..45b03c63a 100644 --- a/skills/orm-public-sign-in/SKILL.md +++ b/skills/orm-public/references/sign-in.md @@ -1,9 +1,4 @@ ---- -name: orm-public-sign-in -description: Execute the signIn mutation ---- - -# orm-public-sign-in +# signIn diff --git a/skills/orm-public-sign-out/SKILL.md b/skills/orm-public/references/sign-out.md similarity index 74% rename from skills/orm-public-sign-out/SKILL.md rename to skills/orm-public/references/sign-out.md index c5f4e7bc1..bdbd4228f 100644 --- a/skills/orm-public-sign-out/SKILL.md +++ b/skills/orm-public/references/sign-out.md @@ -1,9 +1,4 @@ ---- -name: orm-public-sign-out -description: Execute the signOut mutation ---- - -# orm-public-sign-out +# signOut diff --git a/skills/orm-public-sign-up/SKILL.md b/skills/orm-public/references/sign-up.md similarity index 74% rename from skills/orm-public-sign-up/SKILL.md rename to skills/orm-public/references/sign-up.md index 4344c93ba..8f63164d3 100644 --- a/skills/orm-public-sign-up/SKILL.md +++ b/skills/orm-public/references/sign-up.md @@ -1,9 +1,4 @@ ---- -name: orm-public-sign-up -description: Execute the signUp mutation ---- - -# orm-public-sign-up +# signUp diff --git a/skills/orm-public-site-metadatum/SKILL.md b/skills/orm-public/references/site-metadatum.md similarity index 86% rename from skills/orm-public-site-metadatum/SKILL.md rename to skills/orm-public/references/site-metadatum.md index 4c0b0d1b4..79bbbac5e 100644 --- a/skills/orm-public-site-metadatum/SKILL.md +++ b/skills/orm-public/references/site-metadatum.md @@ -1,9 +1,4 @@ ---- -name: orm-public-site-metadatum -description: SEO and social sharing metadata for a site: page title, description, and Open Graph image ---- - -# orm-public-site-metadatum +# siteMetadatum diff --git a/skills/orm-public-site-module/SKILL.md b/skills/orm-public/references/site-module.md similarity index 84% rename from skills/orm-public-site-module/SKILL.md rename to skills/orm-public/references/site-module.md index f5d75a169..e2d643421 100644 --- a/skills/orm-public-site-module/SKILL.md +++ b/skills/orm-public/references/site-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-site-module -description: Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site ---- - -# orm-public-site-module +# siteModule diff --git a/skills/orm-public-site-theme/SKILL.md b/skills/orm-public/references/site-theme.md similarity index 85% rename from skills/orm-public-site-theme/SKILL.md rename to skills/orm-public/references/site-theme.md index 5ee3be9ca..c01eb04b7 100644 --- a/skills/orm-public-site-theme/SKILL.md +++ b/skills/orm-public/references/site-theme.md @@ -1,9 +1,4 @@ ---- -name: orm-public-site-theme -description: Theme configuration for a site; stores design tokens, colors, and typography as JSONB ---- - -# orm-public-site-theme +# siteTheme diff --git a/skills/orm-public-site/SKILL.md b/skills/orm-public/references/site.md similarity index 87% rename from skills/orm-public-site/SKILL.md rename to skills/orm-public/references/site.md index fb8ec210a..b9732862b 100644 --- a/skills/orm-public-site/SKILL.md +++ b/skills/orm-public/references/site.md @@ -1,9 +1,4 @@ ---- -name: orm-public-site -description: Top-level site configuration: branding assets, title, and description for a deployed application ---- - -# orm-public-site +# site diff --git a/skills/orm-public-sql-migration/SKILL.md b/skills/orm-public/references/sql-migration.md similarity index 90% rename from skills/orm-public-sql-migration/SKILL.md rename to skills/orm-public/references/sql-migration.md index 892e1bfb0..10bde67a6 100644 --- a/skills/orm-public-sql-migration/SKILL.md +++ b/skills/orm-public/references/sql-migration.md @@ -1,9 +1,4 @@ ---- -name: orm-public-sql-migration -description: ORM operations for SqlMigration records ---- - -# orm-public-sql-migration +# sqlMigration diff --git a/skills/orm-public-steps-achieved/SKILL.md b/skills/orm-public/references/steps-achieved.md similarity index 75% rename from skills/orm-public-steps-achieved/SKILL.md rename to skills/orm-public/references/steps-achieved.md index b57faa5e7..4f03f7cd7 100644 --- a/skills/orm-public-steps-achieved/SKILL.md +++ b/skills/orm-public/references/steps-achieved.md @@ -1,9 +1,4 @@ ---- -name: orm-public-steps-achieved -description: Execute the stepsAchieved query ---- - -# orm-public-steps-achieved +# stepsAchieved diff --git a/skills/orm-public-steps-required/SKILL.md b/skills/orm-public/references/steps-required.md similarity index 76% rename from skills/orm-public-steps-required/SKILL.md rename to skills/orm-public/references/steps-required.md index 1d8e29a7e..d571950a6 100644 --- a/skills/orm-public-steps-required/SKILL.md +++ b/skills/orm-public/references/steps-required.md @@ -1,9 +1,4 @@ ---- -name: orm-public-steps-required -description: Reads and enables pagination through a set of `AppLevelRequirement`. ---- - -# orm-public-steps-required +# stepsRequired diff --git a/skills/orm-objects-store/SKILL.md b/skills/orm-public/references/store.md similarity index 86% rename from skills/orm-objects-store/SKILL.md rename to skills/orm-public/references/store.md index d2e59e3df..0716daaff 100644 --- a/skills/orm-objects-store/SKILL.md +++ b/skills/orm-public/references/store.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-store -description: A store represents an isolated object repository within a database. ---- - -# orm-objects-store +# store diff --git a/skills/orm-public-submit-invite-code/SKILL.md b/skills/orm-public/references/submit-invite-code.md similarity index 71% rename from skills/orm-public-submit-invite-code/SKILL.md rename to skills/orm-public/references/submit-invite-code.md index 68c1dd83d..5fa303aa4 100644 --- a/skills/orm-public-submit-invite-code/SKILL.md +++ b/skills/orm-public/references/submit-invite-code.md @@ -1,9 +1,4 @@ ---- -name: orm-public-submit-invite-code -description: Execute the submitInviteCode mutation ---- - -# orm-public-submit-invite-code +# submitInviteCode diff --git a/skills/orm-public-submit-org-invite-code/SKILL.md b/skills/orm-public/references/submit-org-invite-code.md similarity index 70% rename from skills/orm-public-submit-org-invite-code/SKILL.md rename to skills/orm-public/references/submit-org-invite-code.md index cd1e6d1a9..21098824d 100644 --- a/skills/orm-public-submit-org-invite-code/SKILL.md +++ b/skills/orm-public/references/submit-org-invite-code.md @@ -1,9 +1,4 @@ ---- -name: orm-public-submit-org-invite-code -description: Execute the submitOrgInviteCode mutation ---- - -# orm-public-submit-org-invite-code +# submitOrgInviteCode diff --git a/skills/orm-public-table-grant/SKILL.md b/skills/orm-public/references/table-grant.md similarity index 90% rename from skills/orm-public-table-grant/SKILL.md rename to skills/orm-public/references/table-grant.md index 876457168..346dc0b78 100644 --- a/skills/orm-public-table-grant/SKILL.md +++ b/skills/orm-public/references/table-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-table-grant -description: ORM operations for TableGrant records ---- - -# orm-public-table-grant +# tableGrant diff --git a/skills/orm-public-table-module/SKILL.md b/skills/orm-public/references/table-module.md similarity index 90% rename from skills/orm-public-table-module/SKILL.md rename to skills/orm-public/references/table-module.md index 06d87f19e..d4566d6e2 100644 --- a/skills/orm-public-table-module/SKILL.md +++ b/skills/orm-public/references/table-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-table-module -description: ORM operations for TableModule records ---- - -# orm-public-table-module +# tableModule diff --git a/skills/orm-public-table-template-module/SKILL.md b/skills/orm-public/references/table-template-module.md similarity index 89% rename from skills/orm-public-table-template-module/SKILL.md rename to skills/orm-public/references/table-template-module.md index 501177e1a..ff200d737 100644 --- a/skills/orm-public-table-template-module/SKILL.md +++ b/skills/orm-public/references/table-template-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-table-template-module -description: ORM operations for TableTemplateModule records ---- - -# orm-public-table-template-module +# tableTemplateModule diff --git a/skills/orm-public-table/SKILL.md b/skills/orm-public/references/table.md similarity index 93% rename from skills/orm-public-table/SKILL.md rename to skills/orm-public/references/table.md index b628cb022..2264dae94 100644 --- a/skills/orm-public-table/SKILL.md +++ b/skills/orm-public/references/table.md @@ -1,9 +1,4 @@ ---- -name: orm-public-table -description: ORM operations for Table records ---- - -# orm-public-table +# table diff --git a/skills/orm-public-trigger-function/SKILL.md b/skills/orm-public/references/trigger-function.md similarity index 88% rename from skills/orm-public-trigger-function/SKILL.md rename to skills/orm-public/references/trigger-function.md index 3185e5319..5554478df 100644 --- a/skills/orm-public-trigger-function/SKILL.md +++ b/skills/orm-public/references/trigger-function.md @@ -1,9 +1,4 @@ ---- -name: orm-public-trigger-function -description: ORM operations for TriggerFunction records ---- - -# orm-public-trigger-function +# triggerFunction diff --git a/skills/orm-public-trigger/SKILL.md b/skills/orm-public/references/trigger.md similarity index 91% rename from skills/orm-public-trigger/SKILL.md rename to skills/orm-public/references/trigger.md index 4c83b1475..449040014 100644 --- a/skills/orm-public-trigger/SKILL.md +++ b/skills/orm-public/references/trigger.md @@ -1,9 +1,4 @@ ---- -name: orm-public-trigger -description: ORM operations for Trigger records ---- - -# orm-public-trigger +# trigger diff --git a/skills/orm-public-unique-constraint/SKILL.md b/skills/orm-public/references/unique-constraint.md similarity index 90% rename from skills/orm-public-unique-constraint/SKILL.md rename to skills/orm-public/references/unique-constraint.md index 07213d926..e03cb446a 100644 --- a/skills/orm-public-unique-constraint/SKILL.md +++ b/skills/orm-public/references/unique-constraint.md @@ -1,9 +1,4 @@ ---- -name: orm-public-unique-constraint -description: ORM operations for UniqueConstraint records ---- - -# orm-public-unique-constraint +# uniqueConstraint diff --git a/skills/orm-objects-update-node-at-path/SKILL.md b/skills/orm-public/references/update-node-at-path.md similarity index 71% rename from skills/orm-objects-update-node-at-path/SKILL.md rename to skills/orm-public/references/update-node-at-path.md index abeaa7da3..950af4042 100644 --- a/skills/orm-objects-update-node-at-path/SKILL.md +++ b/skills/orm-public/references/update-node-at-path.md @@ -1,9 +1,4 @@ ---- -name: orm-objects-update-node-at-path -description: Execute the updateNodeAtPath mutation ---- - -# orm-objects-update-node-at-path +# updateNodeAtPath diff --git a/skills/orm-public-user-auth-module/SKILL.md b/skills/orm-public/references/user-auth-module.md similarity index 94% rename from skills/orm-public-user-auth-module/SKILL.md rename to skills/orm-public/references/user-auth-module.md index e8b890d79..7c6565c87 100644 --- a/skills/orm-public-user-auth-module/SKILL.md +++ b/skills/orm-public/references/user-auth-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-user-auth-module -description: ORM operations for UserAuthModule records ---- - -# orm-public-user-auth-module +# userAuthModule diff --git a/skills/orm-public-user/SKILL.md b/skills/orm-public/references/user.md similarity index 91% rename from skills/orm-public-user/SKILL.md rename to skills/orm-public/references/user.md index 04a5c97a9..6daa65e5d 100644 --- a/skills/orm-public-user/SKILL.md +++ b/skills/orm-public/references/user.md @@ -1,9 +1,4 @@ ---- -name: orm-public-user -description: ORM operations for User records ---- - -# orm-public-user +# user diff --git a/skills/orm-public-users-module/SKILL.md b/skills/orm-public/references/users-module.md similarity index 90% rename from skills/orm-public-users-module/SKILL.md rename to skills/orm-public/references/users-module.md index 0b35c5052..5d2066b93 100644 --- a/skills/orm-public-users-module/SKILL.md +++ b/skills/orm-public/references/users-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-users-module -description: ORM operations for UsersModule records ---- - -# orm-public-users-module +# usersModule diff --git a/skills/orm-public-uuid-module/SKILL.md b/skills/orm-public/references/uuid-module.md similarity index 89% rename from skills/orm-public-uuid-module/SKILL.md rename to skills/orm-public/references/uuid-module.md index 33c8937b6..7e0cccf05 100644 --- a/skills/orm-public-uuid-module/SKILL.md +++ b/skills/orm-public/references/uuid-module.md @@ -1,9 +1,4 @@ ---- -name: orm-public-uuid-module -description: ORM operations for UuidModule records ---- - -# orm-public-uuid-module +# uuidModule diff --git a/skills/orm-public-verify-email/SKILL.md b/skills/orm-public/references/verify-email.md similarity index 73% rename from skills/orm-public-verify-email/SKILL.md rename to skills/orm-public/references/verify-email.md index 2e3188524..ffe9adc92 100644 --- a/skills/orm-public-verify-email/SKILL.md +++ b/skills/orm-public/references/verify-email.md @@ -1,9 +1,4 @@ ---- -name: orm-public-verify-email -description: Execute the verifyEmail mutation ---- - -# orm-public-verify-email +# verifyEmail diff --git a/skills/orm-public-verify-password/SKILL.md b/skills/orm-public/references/verify-password.md similarity index 72% rename from skills/orm-public-verify-password/SKILL.md rename to skills/orm-public/references/verify-password.md index efe824261..f89d17a23 100644 --- a/skills/orm-public-verify-password/SKILL.md +++ b/skills/orm-public/references/verify-password.md @@ -1,9 +1,4 @@ ---- -name: orm-public-verify-password -description: Execute the verifyPassword mutation ---- - -# orm-public-verify-password +# verifyPassword diff --git a/skills/orm-public-verify-totp/SKILL.md b/skills/orm-public/references/verify-totp.md similarity index 73% rename from skills/orm-public-verify-totp/SKILL.md rename to skills/orm-public/references/verify-totp.md index 88be3870a..02b135ced 100644 --- a/skills/orm-public-verify-totp/SKILL.md +++ b/skills/orm-public/references/verify-totp.md @@ -1,9 +1,4 @@ ---- -name: orm-public-verify-totp -description: Execute the verifyTotp mutation ---- - -# orm-public-verify-totp +# verifyTotp diff --git a/skills/orm-public-view-grant/SKILL.md b/skills/orm-public/references/view-grant.md similarity index 90% rename from skills/orm-public-view-grant/SKILL.md rename to skills/orm-public/references/view-grant.md index f1dc49299..1cbec7d93 100644 --- a/skills/orm-public-view-grant/SKILL.md +++ b/skills/orm-public/references/view-grant.md @@ -1,9 +1,4 @@ ---- -name: orm-public-view-grant -description: ORM operations for ViewGrant records ---- - -# orm-public-view-grant +# viewGrant diff --git a/skills/orm-public-view-rule/SKILL.md b/skills/orm-public/references/view-rule.md similarity index 88% rename from skills/orm-public-view-rule/SKILL.md rename to skills/orm-public/references/view-rule.md index 30031fedc..5a72572f2 100644 --- a/skills/orm-public-view-rule/SKILL.md +++ b/skills/orm-public/references/view-rule.md @@ -1,9 +1,4 @@ ---- -name: orm-public-view-rule -description: DO INSTEAD rules for views (e.g., read-only enforcement) ---- - -# orm-public-view-rule +# viewRule diff --git a/skills/orm-public-view-table/SKILL.md b/skills/orm-public/references/view-table.md similarity index 86% rename from skills/orm-public-view-table/SKILL.md rename to skills/orm-public/references/view-table.md index b1de12bee..7b1b88639 100644 --- a/skills/orm-public-view-table/SKILL.md +++ b/skills/orm-public/references/view-table.md @@ -1,9 +1,4 @@ ---- -name: orm-public-view-table -description: Junction table linking views to their joined tables for referential integrity ---- - -# orm-public-view-table +# viewTable diff --git a/skills/orm-public-view/SKILL.md b/skills/orm-public/references/view.md similarity index 93% rename from skills/orm-public-view/SKILL.md rename to skills/orm-public/references/view.md index ac88ff543..1df426311 100644 --- a/skills/orm-public-view/SKILL.md +++ b/skills/orm-public/references/view.md @@ -1,9 +1,4 @@ ---- -name: orm-public-view -description: ORM operations for View records ---- - -# orm-public-view +# view