# React Query Hooks

## Setup ```typescript import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { configure } from './hooks'; configure({ endpoint: 'https://api.example.com/graphql', headers: { Authorization: 'Bearer ' }, }); const queryClient = new QueryClient(); function App() { return ( ); } ``` ## Hooks | Hook | Type | Description | |------|------|-------------| | `useApisQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useApiQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useCreateApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useUpdateApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useDeleteApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useApiSchemasQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `useApiSchemaQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `useCreateApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | | `useUpdateApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | | `useDeleteApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | | `useApiSettingsQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useApiSettingQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useCreateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useUpdateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useDeleteApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useAstMigrationsQuery` | Query | List all astMigrations | | `useAstMigrationQuery` | Query | Get one astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | | `useCheckConstraintsQuery` | Query | List all checkConstraints | | `useCheckConstraintQuery` | Query | Get one checkConstraint | | `useCreateCheckConstraintMutation` | Mutation | Create a checkConstraint | | `useUpdateCheckConstraintMutation` | Mutation | Update a checkConstraint | | `useDeleteCheckConstraintMutation` | Mutation | Delete a checkConstraint | | `useCompositeTypesQuery` | Query | List all compositeTypes | | `useCompositeTypeQuery` | Query | Get one compositeType | | `useCreateCompositeTypeMutation` | Mutation | Create a compositeType | | `useUpdateCompositeTypeMutation` | Mutation | Update a compositeType | | `useDeleteCompositeTypeMutation` | Mutation | Delete a compositeType | | `useCorsSettingsQuery` | Query | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useCorsSettingQuery` | Query | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useCreateCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useUpdateCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useDeleteCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useDatabasesQuery` | Query | List all databases | | `useDatabaseQuery` | Query | Get one database | | `useCreateDatabaseMutation` | Mutation | Create a database | | `useUpdateDatabaseMutation` | Mutation | Update a database | | `useDeleteDatabaseMutation` | Mutation | Delete a database | | `useDatabaseSettingsQuery` | Query | Scope-wide feature flags and settings; controls which platform features are available to all APIs in this scope | | `useDatabaseSettingQuery` | Query | Scope-wide feature flags and settings; controls which platform features are available to all APIs in this scope | | `useCreateDatabaseSettingMutation` | Mutation | Scope-wide feature flags and settings; controls which platform features are available to all APIs in this scope | | `useUpdateDatabaseSettingMutation` | Mutation | Scope-wide feature flags and settings; controls which platform features are available to all APIs in this scope | | `useDeleteDatabaseSettingMutation` | Mutation | Scope-wide feature flags and settings; controls which platform features are available to all APIs in this scope | | `useDatabaseTransfersQuery` | Query | List all databaseTransfers | | `useDatabaseTransferQuery` | Query | Get one databaseTransfer | | `useCreateDatabaseTransferMutation` | Mutation | Create a databaseTransfer | | `useUpdateDatabaseTransferMutation` | Mutation | Update a databaseTransfer | | `useDeleteDatabaseTransferMutation` | Mutation | Delete a databaseTransfer | | `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 | | `useDerivesQuery` | Query | List all derives | | `useDeriveQuery` | Query | Get one derive | | `useCreateDeriveMutation` | Mutation | Create a derive | | `useUpdateDeriveMutation` | Mutation | Update a derive | | `useDeleteDeriveMutation` | Mutation | Delete a derive | | `useDomainsQuery` | Query | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useDomainQuery` | Query | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useCreateDomainMutation` | Mutation | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useUpdateDomainMutation` | Mutation | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useDeleteDomainMutation` | Mutation | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useDomainEventsQuery` | Query | Audit trail of domain lifecycle events | | `useDomainEventQuery` | Query | Audit trail of domain lifecycle events | | `useCreateDomainEventMutation` | Mutation | Audit trail of domain lifecycle events | | `useUpdateDomainEventMutation` | Mutation | Audit trail of domain lifecycle events | | `useDeleteDomainEventMutation` | Mutation | Audit trail of domain lifecycle events | | `useDomainTypesQuery` | Query | List all domainTypes | | `useDomainTypeQuery` | Query | Get one domainType | | `useCreateDomainTypeMutation` | Mutation | Create a domainType | | `useUpdateDomainTypeMutation` | Mutation | Update a domainType | | `useDeleteDomainTypeMutation` | Mutation | Delete a domainType | | `useDomainVerificationsQuery` | Query | Ownership verification challenges issued for a domain | | `useDomainVerificationQuery` | Query | Ownership verification challenges issued for a domain | | `useCreateDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useUpdateDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useDeleteDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useEmailIdentitiesQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useEmailIdentityQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useCreateEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useUpdateEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useDeleteEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useEmailProviderAccountsQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useEmailProviderAccountQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useCreateEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useUpdateEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useDeleteEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useEmailSiteIdentitiesQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useEmailSiteIdentityQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useCreateEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useUpdateEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useDeleteEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useEmbeddingChunksQuery` | Query | List all embeddingChunks | | `useEmbeddingChunkQuery` | Query | Get one embeddingChunk | | `useCreateEmbeddingChunkMutation` | Mutation | Create a embeddingChunk | | `useUpdateEmbeddingChunkMutation` | Mutation | Update a embeddingChunk | | `useDeleteEmbeddingChunkMutation` | Mutation | Delete a embeddingChunk | | `useEnumsQuery` | Query | List all enums | | `useEnumQuery` | Query | Get one enum | | `useCreateEnumMutation` | Mutation | Create a enum | | `useUpdateEnumMutation` | Mutation | Update a enum | | `useDeleteEnumMutation` | Mutation | Delete a enum | | `useExclusionConstraintsQuery` | Query | List all exclusionConstraints | | `useExclusionConstraintQuery` | Query | Get one exclusionConstraint | | `useCreateExclusionConstraintMutation` | Mutation | Create a exclusionConstraint | | `useUpdateExclusionConstraintMutation` | Mutation | Update a exclusionConstraint | | `useDeleteExclusionConstraintMutation` | Mutation | Delete a exclusionConstraint | | `useFieldBehaviorsQuery` | Query | List all fieldBehaviors | | `useFieldBehaviorQuery` | Query | Get one fieldBehavior | | `useCreateFieldBehaviorMutation` | Mutation | Create a fieldBehavior | | `useUpdateFieldBehaviorMutation` | Mutation | Update a fieldBehavior | | `useDeleteFieldBehaviorMutation` | Mutation | Delete a fieldBehavior | | `useFieldsQuery` | Query | List all fields | | `useFieldQuery` | Query | Get one field | | `useCreateFieldMutation` | Mutation | Create a field | | `useUpdateFieldMutation` | Mutation | Update a field | | `useDeleteFieldMutation` | Mutation | Delete a field | | `useForeignKeyConstraintBehaviorsQuery` | Query | List all foreignKeyConstraintBehaviors | | `useForeignKeyConstraintBehaviorQuery` | Query | Get one foreignKeyConstraintBehavior | | `useCreateForeignKeyConstraintBehaviorMutation` | Mutation | Create a foreignKeyConstraintBehavior | | `useUpdateForeignKeyConstraintBehaviorMutation` | Mutation | Update a foreignKeyConstraintBehavior | | `useDeleteForeignKeyConstraintBehaviorMutation` | Mutation | Delete a foreignKeyConstraintBehavior | | `useForeignKeyConstraintsQuery` | Query | List all foreignKeyConstraints | | `useForeignKeyConstraintQuery` | Query | Get one foreignKeyConstraint | | `useCreateForeignKeyConstraintMutation` | Mutation | Create a foreignKeyConstraint | | `useUpdateForeignKeyConstraintMutation` | Mutation | Update a foreignKeyConstraint | | `useDeleteForeignKeyConstraintMutation` | Mutation | Delete a foreignKeyConstraint | | `useFullTextSearchesQuery` | Query | List all fullTextSearches | | `useFullTextSearchQuery` | Query | Get one fullTextSearch | | `useCreateFullTextSearchMutation` | Mutation | Create a fullTextSearch | | `useUpdateFullTextSearchMutation` | Mutation | Update a fullTextSearch | | `useDeleteFullTextSearchMutation` | Mutation | Delete a fullTextSearch | | `useFunctionsQuery` | Query | List all functions | | `useFunctionQuery` | Query | Get one function | | `useCreateFunctionMutation` | Mutation | Create a function | | `useUpdateFunctionMutation` | Mutation | Update a function | | `useDeleteFunctionMutation` | Mutation | Delete a function | | `useGetSitePreviewsQuery` | Query | List all getSitePreviews | | `useIdentityProviderRegistriesQuery` | Query | List all identityProviderRegistries | | `useIdentityProviderRegistryQuery` | Query | Get one identityProviderRegistry | | `useCreateIdentityProviderRegistryMutation` | Mutation | Create a identityProviderRegistry | | `useUpdateIdentityProviderRegistryMutation` | Mutation | Update a identityProviderRegistry | | `useDeleteIdentityProviderRegistryMutation` | Mutation | Delete a identityProviderRegistry | | `useIndicesQuery` | Query | List all indices | | `useIndexQuery` | Query | Get one index | | `useCreateIndexMutation` | Mutation | Create a index | | `useUpdateIndexMutation` | Mutation | Update a index | | `useDeleteIndexMutation` | Mutation | Delete a index | | `useListSuspendedDatabasesQuery` | Query | List all listSuspendedDatabases | | `useListSuspendedDatabasesRecordQuery` | Query | Get one listSuspendedDatabasesRecord | | `useUpdateListSuspendedDatabasesRecordMutation` | Mutation | Update a listSuspendedDatabasesRecord | | `useDeleteListSuspendedDatabasesRecordMutation` | Mutation | Delete a listSuspendedDatabasesRecord | | `useManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useManagedDomainQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useCreateManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useUpdateManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useDeleteManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | | `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | | `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | | `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | | `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | | `usePagesQuery` | Query | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `usePageQuery` | Query | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useCreatePageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useUpdatePageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useDeletePageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `usePartitionsQuery` | Query | List all partitions | | `usePartitionQuery` | Query | Get one partition | | `useCreatePartitionMutation` | Mutation | Create a partition | | `useUpdatePartitionMutation` | Mutation | Update a partition | | `useDeletePartitionMutation` | Mutation | Delete a partition | | `usePlatformApisQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformApiQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useCreatePlatformApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useUpdatePlatformApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useDeletePlatformApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformApiSchemasQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `usePlatformApiSchemaQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `useCreatePlatformApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | | `useUpdatePlatformApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | | `useDeletePlatformApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | | `usePlatformApiSettingsQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings | | `usePlatformApiSettingQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useCreatePlatformApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useUpdatePlatformApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useDeletePlatformApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `usePlatformCorsSettingsQuery` | Query | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `usePlatformCorsSettingQuery` | Query | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useCreatePlatformCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useUpdatePlatformCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useDeletePlatformCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `usePlatformDomainsQuery` | Query | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `usePlatformDomainQuery` | Query | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useCreatePlatformDomainMutation` | Mutation | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useUpdatePlatformDomainMutation` | Mutation | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `useDeletePlatformDomainMutation` | Mutation | Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog | | `usePlatformDomainEventsQuery` | Query | Audit trail of domain lifecycle events | | `usePlatformDomainEventQuery` | Query | Audit trail of domain lifecycle events | | `useCreatePlatformDomainEventMutation` | Mutation | Audit trail of domain lifecycle events | | `useUpdatePlatformDomainEventMutation` | Mutation | Audit trail of domain lifecycle events | | `useDeletePlatformDomainEventMutation` | Mutation | Audit trail of domain lifecycle events | | `usePlatformDomainVerificationsQuery` | Query | Ownership verification challenges issued for a domain | | `usePlatformDomainVerificationQuery` | Query | Ownership verification challenges issued for a domain | | `useCreatePlatformDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useUpdatePlatformDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useDeletePlatformDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `usePlatformEmailIdentitiesQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `usePlatformEmailIdentityQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useCreatePlatformEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useUpdatePlatformEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `useDeletePlatformEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | | `usePlatformEmailProviderAccountsQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `usePlatformEmailProviderAccountQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useCreatePlatformEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useUpdatePlatformEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `useDeletePlatformEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | | `usePlatformEmailSiteIdentitiesQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `usePlatformEmailSiteIdentityQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useCreatePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useUpdatePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useDeletePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `usePlatformGetSitePreviewsQuery` | Query | List all platformGetSitePreviews | | `usePlatformManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `usePlatformManagedDomainQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useCreatePlatformManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useUpdatePlatformManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useDeletePlatformManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `usePlatformPagesQuery` | Query | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `usePlatformPageQuery` | Query | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useCreatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useUpdatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useDeletePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `usePlatformReservedSubdomainsQuery` | Query | Subdomain labels no tenant may claim under a platform apex | | `usePlatformReservedSubdomainQuery` | Query | Subdomain labels no tenant may claim under a platform apex | | `useCreatePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | | `useUpdatePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | | `useDeletePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | | `usePlatformSiteAppLinksQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `usePlatformSiteAppLinkQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useCreatePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useUpdatePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useDeletePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `usePlatformSitesQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformSiteQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useCreatePlatformSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useUpdatePlatformSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useDeletePlatformSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformSiteDeepLinksQuery` | Query | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `usePlatformSiteDeepLinkQuery` | Query | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useCreatePlatformSiteDeepLinkMutation` | Mutation | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useUpdatePlatformSiteDeepLinkMutation` | Mutation | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useDeletePlatformSiteDeepLinkMutation` | Mutation | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `usePlatformSiteErrorPagesQuery` | Query | Custom error pages for a site surface, keyed by HTTP status code | | `usePlatformSiteErrorPageQuery` | Query | Custom error pages for a site surface, keyed by HTTP status code | | `useCreatePlatformSiteErrorPageMutation` | Mutation | Custom error pages for a site surface, keyed by HTTP status code | | `useUpdatePlatformSiteErrorPageMutation` | Mutation | Custom error pages for a site surface, keyed by HTTP status code | | `useDeletePlatformSiteErrorPageMutation` | Mutation | Custom error pages for a site surface, keyed by HTTP status code | | `usePlatformSiteMetadataQuery` | Query | SEO and social sharing metadata for a site surface | | `usePlatformSiteMetadatumQuery` | Query | SEO and social sharing metadata for a site surface | | `useCreatePlatformSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site surface | | `useUpdatePlatformSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site surface | | `useDeletePlatformSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site surface | | `usePlatformSiteModulesQuery` | Query | Frontend module configuration for a site surface; stores module name and JSON settings | | `usePlatformSiteModuleQuery` | Query | Frontend module configuration for a site surface; stores module name and JSON settings | | `useCreatePlatformSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useUpdatePlatformSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useDeletePlatformSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `usePlatformSiteReleasesQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `usePlatformSiteReleaseQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useCreatePlatformSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useUpdatePlatformSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useDeletePlatformSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `usePlatformSiteThemesQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `usePlatformSiteThemeQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `useCreatePlatformSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | | `useUpdatePlatformSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | | `useDeletePlatformSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | | `usePlatformSiteWebConfigsQuery` | Query | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `usePlatformSiteWebConfigQuery` | Query | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useCreatePlatformSiteWebConfigMutation` | Mutation | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useUpdatePlatformSiteWebConfigMutation` | Mutation | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useDeletePlatformSiteWebConfigMutation` | Mutation | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `usePoliciesQuery` | Query | List all policies | | `usePolicyQuery` | Query | Get one policy | | `useCreatePolicyMutation` | Mutation | Create a policy | | `useUpdatePolicyMutation` | Mutation | Update a policy | | `useDeletePolicyMutation` | Mutation | Delete a policy | | `usePrimaryKeyConstraintsQuery` | Query | List all primaryKeyConstraints | | `usePrimaryKeyConstraintQuery` | Query | Get one primaryKeyConstraint | | `useCreatePrimaryKeyConstraintMutation` | Mutation | Create a primaryKeyConstraint | | `useUpdatePrimaryKeyConstraintMutation` | Mutation | Update a primaryKeyConstraint | | `useDeletePrimaryKeyConstraintMutation` | Mutation | Delete a primaryKeyConstraint | | `usePubkeySettingsQuery` | Query | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `usePubkeySettingQuery` | Query | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `useCreatePubkeySettingMutation` | Mutation | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `useUpdatePubkeySettingMutation` | Mutation | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `useDeletePubkeySettingMutation` | Mutation | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `useRedirectsQuery` | Query | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | | `useRedirectQuery` | Query | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | | `useCreateRedirectMutation` | Mutation | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | | `useUpdateRedirectMutation` | Mutation | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | | `useDeleteRedirectMutation` | Mutation | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | | `useRlsSettingsQuery` | Query | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useRlsSettingQuery` | Query | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useCreateRlsSettingMutation` | Mutation | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useUpdateRlsSettingMutation` | Mutation | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useDeleteRlsSettingMutation` | Mutation | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useRoutesQuery` | Query | Routes binding a domain hostname and path to a typed catalog target | | `useRouteQuery` | Query | Routes binding a domain hostname and path to a typed catalog target | | `useCreateRouteMutation` | Mutation | Routes binding a domain hostname and path to a typed catalog target | | `useUpdateRouteMutation` | Mutation | Routes binding a domain hostname and path to a typed catalog target | | `useDeleteRouteMutation` | Mutation | Routes binding a domain hostname and path to a typed catalog target | | `useSchemasQuery` | Query | List all schemas | | `useSchemaQuery` | Query | Get one schema | | `useCreateSchemaMutation` | Mutation | Create a schema | | `useUpdateSchemaMutation` | Mutation | Update a schema | | `useDeleteSchemaMutation` | Mutation | Delete a schema | | `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 | | `useSiteAppLinksQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useSiteAppLinkQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useCreateSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useUpdateSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useDeleteSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useSitesQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useSiteQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useCreateSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useUpdateSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useDeleteSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useSiteDeepLinksQuery` | Query | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useSiteDeepLinkQuery` | Query | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useCreateSiteDeepLinkMutation` | Mutation | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useUpdateSiteDeepLinkMutation` | Mutation | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useDeleteSiteDeepLinkMutation` | Mutation | Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) | | `useSiteErrorPagesQuery` | Query | Custom error pages for a site surface, keyed by HTTP status code | | `useSiteErrorPageQuery` | Query | Custom error pages for a site surface, keyed by HTTP status code | | `useCreateSiteErrorPageMutation` | Mutation | Custom error pages for a site surface, keyed by HTTP status code | | `useUpdateSiteErrorPageMutation` | Mutation | Custom error pages for a site surface, keyed by HTTP status code | | `useDeleteSiteErrorPageMutation` | Mutation | Custom error pages for a site surface, keyed by HTTP status code | | `useSiteMetadataQuery` | Query | SEO and social sharing metadata for a site surface | | `useSiteMetadatumQuery` | Query | SEO and social sharing metadata for a site surface | | `useCreateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site surface | | `useUpdateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site surface | | `useDeleteSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site surface | | `useSiteModulesQuery` | Query | Frontend module configuration for a site surface; stores module name and JSON settings | | `useSiteModuleQuery` | Query | Frontend module configuration for a site surface; stores module name and JSON settings | | `useCreateSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useUpdateSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useDeleteSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useSiteReleasesQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useSiteReleaseQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useCreateSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useUpdateSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useDeleteSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useSiteThemesQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `useSiteThemeQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `useCreateSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | | `useUpdateSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | | `useDeleteSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | | `useSiteWebConfigsQuery` | Query | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useSiteWebConfigQuery` | Query | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useCreateSiteWebConfigMutation` | Mutation | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useUpdateSiteWebConfigMutation` | Mutation | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useDeleteSiteWebConfigMutation` | Mutation | Static-site serving configuration for a site surface (index document, clean URLs, SPA fallback) | | `useSpatialRelationsQuery` | Query | List all spatialRelations | | `useSpatialRelationQuery` | Query | Get one spatialRelation | | `useCreateSpatialRelationMutation` | Mutation | Create a spatialRelation | | `useUpdateSpatialRelationMutation` | Mutation | Update a spatialRelation | | `useDeleteSpatialRelationMutation` | Mutation | Delete a spatialRelation | | `useSqlActionsQuery` | Query | List all sqlActions | | `useSqlActionQuery` | Query | Get one sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | | `useTableBehaviorsQuery` | Query | List all tableBehaviors | | `useTableBehaviorQuery` | Query | Get one tableBehavior | | `useCreateTableBehaviorMutation` | Mutation | Create a tableBehavior | | `useUpdateTableBehaviorMutation` | Mutation | Update a tableBehavior | | `useDeleteTableBehaviorMutation` | Mutation | Delete a tableBehavior | | `useTablesQuery` | Query | List all tables | | `useTableQuery` | Query | Get one table | | `useCreateTableMutation` | Mutation | Create a table | | `useUpdateTableMutation` | Mutation | Update a table | | `useDeleteTableMutation` | Mutation | Delete a table | | `useTableGrantsQuery` | Query | List all tableGrants | | `useTableGrantQuery` | Query | Get one tableGrant | | `useCreateTableGrantMutation` | Mutation | Create a tableGrant | | `useUpdateTableGrantMutation` | Mutation | Update a tableGrant | | `useDeleteTableGrantMutation` | Mutation | Delete a tableGrant | | `useTriggersQuery` | Query | List all triggers | | `useTriggerQuery` | Query | Get one trigger | | `useCreateTriggerMutation` | Mutation | Create a trigger | | `useUpdateTriggerMutation` | Mutation | Update a trigger | | `useDeleteTriggerMutation` | Mutation | Delete a trigger | | `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 | | `useUniqueConstraintBehaviorsQuery` | Query | List all uniqueConstraintBehaviors | | `useUniqueConstraintBehaviorQuery` | Query | Get one uniqueConstraintBehavior | | `useCreateUniqueConstraintBehaviorMutation` | Mutation | Create a uniqueConstraintBehavior | | `useUpdateUniqueConstraintBehaviorMutation` | Mutation | Update a uniqueConstraintBehavior | | `useDeleteUniqueConstraintBehaviorMutation` | Mutation | Delete a uniqueConstraintBehavior | | `useUniqueConstraintsQuery` | Query | List all uniqueConstraints | | `useUniqueConstraintQuery` | Query | Get one uniqueConstraint | | `useCreateUniqueConstraintMutation` | Mutation | Create a uniqueConstraint | | `useUpdateUniqueConstraintMutation` | Mutation | Update a uniqueConstraint | | `useDeleteUniqueConstraintMutation` | Mutation | Delete a uniqueConstraint | | `useViewBehaviorsQuery` | Query | List all viewBehaviors | | `useViewBehaviorQuery` | Query | Get one viewBehavior | | `useCreateViewBehaviorMutation` | Mutation | Create a viewBehavior | | `useUpdateViewBehaviorMutation` | Mutation | Update a viewBehavior | | `useDeleteViewBehaviorMutation` | Mutation | Delete a viewBehavior | | `useViewsQuery` | Query | List all views | | `useViewQuery` | Query | Get one view | | `useCreateViewMutation` | Mutation | Create a view | | `useUpdateViewMutation` | Mutation | Update a view | | `useDeleteViewMutation` | Mutation | Delete a view | | `useViewGrantsQuery` | Query | List all viewGrants | | `useViewGrantQuery` | Query | Get one viewGrant | | `useCreateViewGrantMutation` | Mutation | Create a viewGrant | | `useUpdateViewGrantMutation` | Mutation | Update a viewGrant | | `useDeleteViewGrantMutation` | Mutation | Delete a viewGrant | | `useViewRulesQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useViewRuleQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useCreateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useUpdateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useDeleteViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useViewTablesQuery` | Query | Junction table linking views to their joined tables for referential integrity | | `useViewTableQuery` | Query | Junction table linking views to their joined tables for referential integrity | | `useCreateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | | `useUpdateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | | `useDeleteViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | | `useWebauthnSettingsQuery` | Query | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useWebauthnSettingQuery` | Query | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useCreateWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useUpdateWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useDeleteWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | | `useEmailSharedAccountQuery` | Query | emailSharedAccount | | `useGetSitePreviewCommitQuery` | Query | getSitePreviewCommit | | `useGetSiteReleaseManifestQuery` | Query | getSiteReleaseManifest | | `usePagePublishedQuery` | Query | pagePublished | | `usePlatformGetSitePreviewCommitQuery` | Query | platformGetSitePreviewCommit | | `usePlatformGetSiteReleaseManifestQuery` | Query | platformGetSiteReleaseManifest | | `usePlatformPagePublishedQuery` | Query | platformPagePublished | | `usePlatformSitesDeepLinkUrlQuery` | Query | platformSitesDeepLinkUrl | | `usePlatformSitesSiteOriginQuery` | Query | platformSitesSiteOrigin | | `usePlatformVerifySitePreviewTokenQuery` | Query | platformVerifySitePreviewToken | | `useSitesDeepLinkUrlQuery` | Query | sitesDeepLinkUrl | | `useSitesSiteOriginQuery` | Query | sitesSiteOrigin | | `useVerifySitePreviewTokenQuery` | Query | verifySitePreviewToken | | `useAcceptDatabaseTransferMutation` | Mutation | acceptDatabaseTransfer | | `useApplyRlsMutation` | Mutation | applyRls | | `useCancelDatabaseTransferMutation` | Mutation | cancelDatabaseTransfer | | `useCreateFunctionFromSourceMutation` | Mutation | Creates a `Function` from its `CREATE FUNCTION` source text. | | `useDeleteSitePreviewMutation` | Mutation | deleteSitePreview | | `useDomainsAssignSubdomainMutation` | Mutation | domainsAssignSubdomain | | `useMintSitePreviewTokenMutation` | Mutation | mintSitePreviewToken | | `usePagesInstallPagesMutation` | Mutation | pagesInstallPages | | `usePlatformDeleteSitePreviewMutation` | Mutation | platformDeleteSitePreview | | `usePlatformDomainsAssignSubdomainMutation` | Mutation | platformDomainsAssignSubdomain | | `usePlatformMintSitePreviewTokenMutation` | Mutation | platformMintSitePreviewToken | | `usePlatformPagesInstallPagesMutation` | Mutation | platformPagesInstallPages | | `usePlatformProvisionSitePreviewMutation` | Mutation | platformProvisionSitePreview | | `usePlatformSetSitePreviewMutation` | Mutation | platformSetSitePreview | | `usePlatformSiteMetadataInstallRobotsMutation` | Mutation | platformSiteMetadataInstallRobots | | `usePlatformSitesInstallContentPresetMutation` | Mutation | platformSitesInstallContentPreset | | `usePlatformSitesInstallMantraMutation` | Mutation | platformSitesInstallMantra | | `usePlatformSitesProvisionStaticSiteMutation` | Mutation | platformSitesProvisionStaticSite | | `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job trigger then enqueues the same storage:provision_bucket job used on INSERT, and repeated requests collapse into one pending job. This is idempotent for an already-reconciled bucket; failures become GraphQL errors. | | `useProvisionSitePreviewMutation` | Mutation | provisionSitePreview | | `useRejectDatabaseTransferMutation` | Mutation | rejectDatabaseTransfer | | `useRequestDatabaseMutation` | Mutation | Requests a database and returns a ticket (database_provision_module row) to poll. Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); | | `useSetFieldOrderMutation` | Mutation | setFieldOrder | | `useSetSitePreviewMutation` | Mutation | setSitePreview | | `useSiteMetadataInstallRobotsMutation` | Mutation | siteMetadataInstallRobots | | `useSitesInstallContentPresetMutation` | Mutation | sitesInstallContentPreset | | `useSitesInstallMantraMutation` | Mutation | sitesInstallMantra | | `useSitesProvisionStaticSiteMutation` | Mutation | sitesProvisionStaticSite | | `useSuspendDatabaseMutation` | Mutation | suspendDatabase | | `useUnsuspendDatabaseMutation` | Mutation | unsuspendDatabase | | `useUpdateFunctionFromSourceMutation` | Mutation | Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged. | ## Table Hooks ### Api ```typescript // List all apis const { data, isLoading } = useApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Get one api const { data: item } = useApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Create a api const { mutate: create } = useCreateApiMutation({ selection: { fields: { id: true } }, }); create({ anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }); ``` ### ApiSchema ```typescript // List all apiSchemas const { data, isLoading } = useApiSchemasQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, id: true, schemaId: true, updatedAt: true } }, }); // Get one apiSchema const { data: item } = useApiSchemaQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, id: true, schemaId: true, updatedAt: true } }, }); // Create a apiSchema const { mutate: create } = useCreateApiSchemaMutation({ selection: { fields: { id: true } }, }); create({ apiId: '', databaseId: '', schemaId: '' }); ``` ### ApiSetting ```typescript // List all apiSettings const { data, isLoading } = useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one apiSetting const { data: item } = useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a apiSetting const { mutate: create } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### AstMigration ```typescript // List all astMigrations const { data, isLoading } = useAstMigrationsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); // Get one astMigration const { data: item } = useAstMigrationQuery({ id: '', selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); ``` ### CheckConstraint ```typescript // List all checkConstraints const { data, isLoading } = useCheckConstraintsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, expr: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true } }, }); // Get one checkConstraint const { data: item } = useCheckConstraintQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, expr: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true } }, }); // Create a checkConstraint const { mutate: create } = useCreateCheckConstraintMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', expr: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '' }); ``` ### CompositeType ```typescript // List all compositeTypes const { data, isLoading } = useCompositeTypesQuery({ selection: { fields: { attributes: true, category: true, databaseId: true, description: true, id: true, label: true, name: true, schemaId: true, smartTags: true, tags: true } }, }); // Get one compositeType const { data: item } = useCompositeTypeQuery({ id: '', selection: { fields: { attributes: true, category: true, databaseId: true, description: true, id: true, label: true, name: true, schemaId: true, smartTags: true, tags: true } }, }); // Create a compositeType const { mutate: create } = useCreateCompositeTypeMutation({ selection: { fields: { id: true } }, }); create({ attributes: '', category: '', databaseId: '', description: '', label: '', name: '', schemaId: '', smartTags: '', tags: '' }); ``` ### CorsSetting ```typescript // List all corsSettings const { data, isLoading } = useCorsSettingsQuery({ selection: { fields: { allowedOrigins: true, apiId: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }, }); // Get one corsSetting const { data: item } = useCorsSettingQuery({ id: '', selection: { fields: { allowedOrigins: true, apiId: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }, }); // Create a corsSetting const { mutate: create } = useCreateCorsSettingMutation({ selection: { fields: { id: true } }, }); create({ allowedOrigins: '', apiId: '', databaseId: '' }); ``` ### Database ```typescript // List all databases const { data, isLoading } = useDatabasesQuery({ selection: { fields: { createdAt: true, hash: true, id: true, label: true, name: true, ownerId: true, platform: true, suspendedAt: true, suspendedReason: true, updatedAt: true } }, }); // Get one database const { data: item } = useDatabaseQuery({ id: '', selection: { fields: { createdAt: true, hash: true, id: true, label: true, name: true, ownerId: true, platform: true, suspendedAt: true, suspendedReason: true, updatedAt: true } }, }); // Create a database const { mutate: create } = useCreateDatabaseMutation({ selection: { fields: { id: true } }, }); create({ hash: '', label: '', name: '', ownerId: '', platform: '' }); ``` ### DatabaseSetting ```typescript // List all databaseSettings const { data, isLoading } = useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one databaseSetting const { data: item } = useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a databaseSetting const { mutate: create } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); create({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### DatabaseTransfer ```typescript // List all databaseTransfers const { data, isLoading } = useDatabaseTransfersQuery({ selection: { fields: { completedAt: true, createdAt: true, databaseId: true, expiresAt: true, id: true, initiatedBy: true, notes: true, sourceApproved: true, sourceApprovedAt: true, status: true, targetApproved: true, targetApprovedAt: true, targetOwnerId: true, updatedAt: true } }, }); // Get one databaseTransfer const { data: item } = useDatabaseTransferQuery({ id: '', selection: { fields: { completedAt: true, createdAt: true, databaseId: true, expiresAt: true, id: true, initiatedBy: true, notes: true, sourceApproved: true, sourceApprovedAt: true, status: true, targetApproved: true, targetApprovedAt: true, targetOwnerId: true, updatedAt: true } }, }); // Create a databaseTransfer const { mutate: create } = useCreateDatabaseTransferMutation({ selection: { fields: { id: true } }, }); create({ completedAt: '', databaseId: '', expiresAt: '', initiatedBy: '', notes: '', sourceApproved: '', sourceApprovedAt: '', status: '', targetApproved: '', targetApprovedAt: '', targetOwnerId: '' }); ``` ### DefaultPrivilege ```typescript // List all defaultPrivileges const { data, isLoading } = useDefaultPrivilegesQuery({ selection: { fields: { databaseId: true, granteeName: true, id: true, isGrant: true, objectType: true, privilege: true, schemaId: true } }, }); // Get one defaultPrivilege const { data: item } = useDefaultPrivilegeQuery({ id: '', selection: { fields: { databaseId: true, granteeName: true, id: true, isGrant: true, objectType: true, privilege: true, schemaId: true } }, }); // Create a defaultPrivilege const { mutate: create } = useCreateDefaultPrivilegeMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', granteeName: '', isGrant: '', objectType: '', privilege: '', schemaId: '' }); ``` ### Derive ```typescript // List all derives const { data, isLoading } = useDerivesQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, }); // Get one derive const { data: item } = useDeriveQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, }); // Create a derive const { mutate: create } = useCreateDeriveMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }); ``` ### Domain ```typescript // List all domains const { data, isLoading } = useDomainsQuery({ selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one domain const { data: item } = useDomainQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a domain const { mutate: create } = useCreateDomainMutation({ selection: { fields: { id: true } }, }); create({ config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### DomainEvent ```typescript // List all domainEvents const { data, isLoading } = useDomainEventsQuery({ selection: { fields: { actorId: true, createdAt: true, databaseId: true, domainId: true, domainVerificationId: true, eventType: true, id: true, managedDomainId: true, message: true, metadata: true, updatedAt: true } }, }); // Get one domainEvent const { data: item } = useDomainEventQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, databaseId: true, domainId: true, domainVerificationId: true, eventType: true, id: true, managedDomainId: true, message: true, metadata: true, updatedAt: true } }, }); // Create a domainEvent const { mutate: create } = useCreateDomainEventMutation({ selection: { fields: { id: true } }, }); create({ actorId: '', databaseId: '', domainId: '', domainVerificationId: '', eventType: '', managedDomainId: '', message: '', metadata: '' }); ``` ### DomainType ```typescript // List all domainTypes const { data, isLoading } = useDomainTypesQuery({ selection: { fields: { baseType: true, category: true, checkExpr: true, databaseId: true, defaultExpr: true, description: true, id: true, label: true, name: true, notNull: true, schemaId: true, smartTags: true, tags: true } }, }); // Get one domainType const { data: item } = useDomainTypeQuery({ id: '', selection: { fields: { baseType: true, category: true, checkExpr: true, databaseId: true, defaultExpr: true, description: true, id: true, label: true, name: true, notNull: true, schemaId: true, smartTags: true, tags: true } }, }); // Create a domainType const { mutate: create } = useCreateDomainTypeMutation({ selection: { fields: { id: true } }, }); create({ baseType: '', category: '', checkExpr: '', databaseId: '', defaultExpr: '', description: '', label: '', name: '', notNull: '', schemaId: '', smartTags: '', tags: '' }); ``` ### DomainVerification ```typescript // List all domainVerifications const { data, isLoading } = useDomainVerificationsQuery({ selection: { fields: { attempts: true, createdAt: true, databaseId: true, domainId: true, error: true, expiresAt: true, id: true, lastCheckedAt: true, managedDomainId: true, method: true, recordName: true, recordType: true, recordValue: true, status: true, updatedAt: true, verifiedAt: true } }, }); // Get one domainVerification const { data: item } = useDomainVerificationQuery({ id: '', selection: { fields: { attempts: true, createdAt: true, databaseId: true, domainId: true, error: true, expiresAt: true, id: true, lastCheckedAt: true, managedDomainId: true, method: true, recordName: true, recordType: true, recordValue: true, status: true, updatedAt: true, verifiedAt: true } }, }); // Create a domainVerification const { mutate: create } = useCreateDomainVerificationMutation({ selection: { fields: { id: true } }, }); create({ attempts: '', databaseId: '', domainId: '', error: '', expiresAt: '', lastCheckedAt: '', managedDomainId: '', method: '', recordName: '', recordType: '', recordValue: '', status: '', verifiedAt: '' }); ``` ### EmailIdentity ```typescript // List all emailIdentities const { data, isLoading } = useEmailIdentitiesQuery({ selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, }); // Get one emailIdentity const { data: item } = useEmailIdentityQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, }); // Create a emailIdentity const { mutate: create } = useCreateEmailIdentityMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }); ``` ### EmailProviderAccount ```typescript // List all emailProviderAccounts const { data, isLoading } = useEmailProviderAccountsQuery({ selection: { fields: { createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, }); // Get one emailProviderAccount const { data: item } = useEmailProviderAccountQuery({ id: '', selection: { fields: { createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, }); // Create a emailProviderAccount const { mutate: create } = useCreateEmailProviderAccountMutation({ selection: { fields: { id: true } }, }); create({ credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }); ``` ### EmailSiteIdentity ```typescript // List all emailSiteIdentities const { data, isLoading } = useEmailSiteIdentitiesQuery({ selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, }); // Get one emailSiteIdentity const { data: item } = useEmailSiteIdentityQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, }); // Create a emailSiteIdentity const { mutate: create } = useCreateEmailSiteIdentityMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', emailIdentityId: '', siteId: '' }); ``` ### EmbeddingChunk ```typescript // List all embeddingChunks const { data, isLoading } = useEmbeddingChunksQuery({ selection: { fields: { chunkOverlap: true, chunkSize: true, chunkStrategy: true, chunkingTaskName: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, createdAt: true, databaseId: true, dimensions: true, embeddingFieldId: true, embeddingModel: true, embeddingProvider: true, enqueueChunkingJob: true, id: true, metadataFields: true, metric: true, parentFkFieldId: true, searchIndexes: true, sourceFields: true, tableId: true, updatedAt: true } }, }); // Get one embeddingChunk const { data: item } = useEmbeddingChunkQuery({ id: '', selection: { fields: { chunkOverlap: true, chunkSize: true, chunkStrategy: true, chunkingTaskName: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, createdAt: true, databaseId: true, dimensions: true, embeddingFieldId: true, embeddingModel: true, embeddingProvider: true, enqueueChunkingJob: true, id: true, metadataFields: true, metric: true, parentFkFieldId: true, searchIndexes: true, sourceFields: true, tableId: true, updatedAt: true } }, }); // Create a embeddingChunk const { mutate: create } = useCreateEmbeddingChunkMutation({ selection: { fields: { id: true } }, }); create({ chunkOverlap: '', chunkSize: '', chunkStrategy: '', chunkingTaskName: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', databaseId: '', dimensions: '', embeddingFieldId: '', embeddingModel: '', embeddingProvider: '', enqueueChunkingJob: '', metadataFields: '', metric: '', parentFkFieldId: '', searchIndexes: '', sourceFields: '', tableId: '' }); ``` ### Enum ```typescript // List all enums const { data, isLoading } = useEnumsQuery({ selection: { fields: { category: true, databaseId: true, description: true, id: true, label: true, name: true, schemaId: true, smartTags: true, tags: true, values: true } }, }); // Get one enum const { data: item } = useEnumQuery({ id: '', selection: { fields: { category: true, databaseId: true, description: true, id: true, label: true, name: true, schemaId: true, smartTags: true, tags: true, values: true } }, }); // Create a enum const { mutate: create } = useCreateEnumMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', description: '', label: '', name: '', schemaId: '', smartTags: '', tags: '', values: '' }); ``` ### ExclusionConstraint ```typescript // List all exclusionConstraints const { data, isLoading } = useExclusionConstraintsQuery({ selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, elementExpr: true, fieldIds: true, id: true, name: true, operators: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, whereClause: true } }, }); // Get one exclusionConstraint const { data: item } = useExclusionConstraintQuery({ id: '', selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, elementExpr: true, fieldIds: true, id: true, name: true, operators: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, whereClause: true } }, }); // Create a exclusionConstraint const { mutate: create } = useCreateExclusionConstraintMutation({ selection: { fields: { id: true } }, }); create({ accessMethod: '', category: '', databaseId: '', elementExpr: '', fieldIds: '', name: '', operators: '', smartTags: '', tableId: '', tags: '', type: '', whereClause: '' }); ``` ### FieldBehavior ```typescript // List all fieldBehaviors const { data, isLoading } = useFieldBehaviorsQuery({ selection: { fields: { createdAt: true, databaseId: true, fieldId: true, id: true, modifier: true, scope: true, sortOrder: true, updatedAt: true } }, }); // Get one fieldBehavior const { data: item } = useFieldBehaviorQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, fieldId: true, id: true, modifier: true, scope: true, sortOrder: true, updatedAt: true } }, }); // Create a fieldBehavior const { mutate: create } = useCreateFieldBehaviorMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', fieldId: '', modifier: '', scope: '', sortOrder: '' }); ``` ### Field ```typescript // List all fields const { data, isLoading } = useFieldsQuery({ selection: { fields: { apiRequired: true, category: true, chk: true, chkExpr: true, createdAt: true, databaseId: true, defaultValue: true, description: true, fieldOrder: true, generationExpression: true, generationType: true, id: true, identityGeneration: true, identityOptions: true, isRequired: true, label: true, max: true, min: true, name: true, regexp: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true } }, }); // Get one field const { data: item } = useFieldQuery({ id: '', selection: { fields: { apiRequired: true, category: true, chk: true, chkExpr: true, createdAt: true, databaseId: true, defaultValue: true, description: true, fieldOrder: true, generationExpression: true, generationType: true, id: true, identityGeneration: true, identityOptions: true, isRequired: true, label: true, max: true, min: true, name: true, regexp: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true } }, }); // Create a field const { mutate: create } = useCreateFieldMutation({ selection: { fields: { id: true } }, }); create({ apiRequired: '', category: '', chk: '', chkExpr: '', databaseId: '', defaultValue: '', description: '', fieldOrder: '', generationExpression: '', generationType: '', identityGeneration: '', identityOptions: '', isRequired: '', label: '', max: '', min: '', name: '', regexp: '', smartTags: '', tableId: '', tags: '', type: '' }); ``` ### ForeignKeyConstraintBehavior ```typescript // List all foreignKeyConstraintBehaviors const { data, isLoading } = useForeignKeyConstraintBehaviorsQuery({ selection: { fields: { createdAt: true, databaseId: true, foreignKeyConstraintId: true, id: true, modifier: true, scope: true, sortOrder: true, updatedAt: true } }, }); // Get one foreignKeyConstraintBehavior const { data: item } = useForeignKeyConstraintBehaviorQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, foreignKeyConstraintId: true, id: true, modifier: true, scope: true, sortOrder: true, updatedAt: true } }, }); // Create a foreignKeyConstraintBehavior const { mutate: create } = useCreateForeignKeyConstraintBehaviorMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', foreignKeyConstraintId: '', modifier: '', scope: '', sortOrder: '' }); ``` ### ForeignKeyConstraint ```typescript // List all foreignKeyConstraints const { data, isLoading } = useForeignKeyConstraintsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, deleteAction: true, deleteSetFieldIds: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, refFieldIds: true, refTableId: true, smartTags: true, tableId: true, tags: true, type: true, updateAction: true, updatedAt: true, withPeriod: true } }, }); // Get one foreignKeyConstraint const { data: item } = useForeignKeyConstraintQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, deleteAction: true, deleteSetFieldIds: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, refFieldIds: true, refTableId: true, smartTags: true, tableId: true, tags: true, type: true, updateAction: true, updatedAt: true, withPeriod: true } }, }); // Create a foreignKeyConstraint const { mutate: create } = useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', deleteAction: '', deleteSetFieldIds: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', refFieldIds: '', refTableId: '', smartTags: '', tableId: '', tags: '', type: '', updateAction: '', withPeriod: '' }); ``` ### FullTextSearch ```typescript // List all fullTextSearches const { data, isLoading } = useFullTextSearchesQuery({ selection: { fields: { createdAt: true, databaseId: true, fieldId: true, fieldIds: true, id: true, langColumn: true, langs: true, tableId: true, updatedAt: true, weights: true } }, }); // Get one fullTextSearch const { data: item } = useFullTextSearchQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, fieldId: true, fieldIds: true, id: true, langColumn: true, langs: true, tableId: true, updatedAt: true, weights: true } }, }); // Create a fullTextSearch const { mutate: create } = useCreateFullTextSearchMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', fieldId: '', fieldIds: '', langColumn: '', langs: '', tableId: '', weights: '' }); ``` ### Function ```typescript // List all functions const { data, isLoading } = useFunctionsQuery({ selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }, }); // Get one function const { data: item } = useFunctionQuery({ id: '', selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }, }); // Create a function const { mutate: create } = useCreateFunctionMutation({ selection: { fields: { id: true } }, }); create({ apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }); ``` ### GetSitePreviewsRecord ```typescript // List all getSitePreviews const { data, isLoading } = useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); ``` ### IdentityProviderRegistry ```typescript // List all identityProviderRegistries const { data, isLoading } = useIdentityProviderRegistriesQuery({ selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }, }); // Get one identityProviderRegistry const { data: item } = useIdentityProviderRegistryQuery({ slug: '', selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }, }); // Create a identityProviderRegistry const { mutate: create } = useCreateIdentityProviderRegistryMutation({ selection: { fields: { slug: true } }, }); create({ authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }); ``` ### Index ```typescript // List all indices const { data, isLoading } = useIndicesQuery({ selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, }); // Get one index const { data: item } = useIndexQuery({ id: '', selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, }); // Create a index const { mutate: create } = useCreateIndexMutation({ selection: { fields: { id: true } }, }); create({ accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }); ``` ### ListSuspendedDatabasesRecord ```typescript // List all listSuspendedDatabases const { data, isLoading } = useListSuspendedDatabasesQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }, }); // Get one listSuspendedDatabasesRecord const { data: item } = useListSuspendedDatabasesRecordQuery({ id: '', selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }, }); ``` ### ManagedDomain ```typescript // List all managedDomains const { data, isLoading } = useManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one managedDomain const { data: item } = useManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a managedDomain const { mutate: create } = useCreateManagedDomainMutation({ selection: { fields: { id: true } }, }); create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### NodeTypeRegistry ```typescript // List all nodeTypeRegistries const { data, isLoading } = useNodeTypeRegistriesQuery({ selection: { fields: { category: true, description: true, displayName: true, name: true, parameterSchema: true, slug: true, tags: true } }, }); // Get one nodeTypeRegistry const { data: item } = useNodeTypeRegistryQuery({ name: '', selection: { fields: { category: true, description: true, displayName: true, name: true, parameterSchema: true, slug: true, tags: true } }, }); // Create a nodeTypeRegistry const { mutate: create } = useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } }, }); create({ category: '', description: '', displayName: '', parameterSchema: '', slug: '', tags: '' }); ``` ### Page ```typescript // List all pages const { data, isLoading } = usePagesQuery({ selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Get one page const { data: item } = usePageQuery({ id: '', selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Create a page const { mutate: create } = useCreatePageMutation({ selection: { fields: { id: true } }, }); create({ commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` ### Partition ```typescript // List all partitions const { data, isLoading } = usePartitionsQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, interval: true, isParented: true, namingPattern: true, partitionKeyId: true, premake: true, retention: true, retentionKeepTable: true, strategy: true, tableId: true, updatedAt: true } }, }); // Get one partition const { data: item } = usePartitionQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, interval: true, isParented: true, namingPattern: true, partitionKeyId: true, premake: true, retention: true, retentionKeepTable: true, strategy: true, tableId: true, updatedAt: true } }, }); // Create a partition const { mutate: create } = useCreatePartitionMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', interval: '', isParented: '', namingPattern: '', partitionKeyId: '', premake: '', retention: '', retentionKeepTable: '', strategy: '', tableId: '' }); ``` ### PlatformApi ```typescript // List all platformApis const { data, isLoading } = usePlatformApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Get one platformApi const { data: item } = usePlatformApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Create a platformApi const { mutate: create } = useCreatePlatformApiMutation({ selection: { fields: { id: true } }, }); create({ anonRole: '', config: '', isPublished: '', name: '', roleName: '' }); ``` ### PlatformApiSchema ```typescript // List all platformApiSchemas const { data, isLoading } = usePlatformApiSchemasQuery({ selection: { fields: { apiId: true, createdAt: true, id: true, schemaId: true, updatedAt: true } }, }); // Get one platformApiSchema const { data: item } = usePlatformApiSchemaQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, id: true, schemaId: true, updatedAt: true } }, }); // Create a platformApiSchema const { mutate: create } = useCreatePlatformApiSchemaMutation({ selection: { fields: { id: true } }, }); create({ apiId: '', schemaId: '' }); ``` ### PlatformApiSetting ```typescript // List all platformApiSettings const { data, isLoading } = usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one platformApiSetting const { data: item } = usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a platformApiSetting const { mutate: create } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### PlatformCorsSetting ```typescript // List all platformCorsSettings const { data, isLoading } = usePlatformCorsSettingsQuery({ selection: { fields: { allowedOrigins: true, apiId: true, createdAt: true, id: true, updatedAt: true } }, }); // Get one platformCorsSetting const { data: item } = usePlatformCorsSettingQuery({ id: '', selection: { fields: { allowedOrigins: true, apiId: true, createdAt: true, id: true, updatedAt: true } }, }); // Create a platformCorsSetting const { mutate: create } = useCreatePlatformCorsSettingMutation({ selection: { fields: { id: true } }, }); create({ allowedOrigins: '', apiId: '' }); ``` ### PlatformDomain ```typescript // List all platformDomains const { data, isLoading } = usePlatformDomainsQuery({ selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one platformDomain const { data: item } = usePlatformDomainQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a platformDomain const { mutate: create } = useCreatePlatformDomainMutation({ selection: { fields: { id: true } }, }); create({ config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### PlatformDomainEvent ```typescript // List all platformDomainEvents const { data, isLoading } = usePlatformDomainEventsQuery({ selection: { fields: { actorId: true, createdAt: true, domainId: true, domainVerificationId: true, eventType: true, id: true, managedDomainId: true, message: true, metadata: true, updatedAt: true } }, }); // Get one platformDomainEvent const { data: item } = usePlatformDomainEventQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, domainId: true, domainVerificationId: true, eventType: true, id: true, managedDomainId: true, message: true, metadata: true, updatedAt: true } }, }); // Create a platformDomainEvent const { mutate: create } = useCreatePlatformDomainEventMutation({ selection: { fields: { id: true } }, }); create({ actorId: '', domainId: '', domainVerificationId: '', eventType: '', managedDomainId: '', message: '', metadata: '' }); ``` ### PlatformDomainVerification ```typescript // List all platformDomainVerifications const { data, isLoading } = usePlatformDomainVerificationsQuery({ selection: { fields: { attempts: true, createdAt: true, domainId: true, error: true, expiresAt: true, id: true, lastCheckedAt: true, managedDomainId: true, method: true, recordName: true, recordType: true, recordValue: true, status: true, updatedAt: true, verifiedAt: true } }, }); // Get one platformDomainVerification const { data: item } = usePlatformDomainVerificationQuery({ id: '', selection: { fields: { attempts: true, createdAt: true, domainId: true, error: true, expiresAt: true, id: true, lastCheckedAt: true, managedDomainId: true, method: true, recordName: true, recordType: true, recordValue: true, status: true, updatedAt: true, verifiedAt: true } }, }); // Create a platformDomainVerification const { mutate: create } = useCreatePlatformDomainVerificationMutation({ selection: { fields: { id: true } }, }); create({ attempts: '', domainId: '', error: '', expiresAt: '', lastCheckedAt: '', managedDomainId: '', method: '', recordName: '', recordType: '', recordValue: '', status: '', verifiedAt: '' }); ``` ### PlatformEmailIdentity ```typescript // List all platformEmailIdentities const { data, isLoading } = usePlatformEmailIdentitiesQuery({ selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, }); // Get one platformEmailIdentity const { data: item } = usePlatformEmailIdentityQuery({ id: '', selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, }); // Create a platformEmailIdentity const { mutate: create } = useCreatePlatformEmailIdentityMutation({ selection: { fields: { id: true } }, }); create({ fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }); ``` ### PlatformEmailProviderAccount ```typescript // List all platformEmailProviderAccounts const { data, isLoading } = usePlatformEmailProviderAccountsQuery({ selection: { fields: { createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, }); // Get one platformEmailProviderAccount const { data: item } = usePlatformEmailProviderAccountQuery({ id: '', selection: { fields: { createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, }); // Create a platformEmailProviderAccount const { mutate: create } = useCreatePlatformEmailProviderAccountMutation({ selection: { fields: { id: true } }, }); create({ credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }); ``` ### PlatformEmailSiteIdentity ```typescript // List all platformEmailSiteIdentities const { data, isLoading } = usePlatformEmailSiteIdentitiesQuery({ selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, }); // Get one platformEmailSiteIdentity const { data: item } = usePlatformEmailSiteIdentityQuery({ id: '', selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, }); // Create a platformEmailSiteIdentity const { mutate: create } = useCreatePlatformEmailSiteIdentityMutation({ selection: { fields: { id: true } }, }); create({ emailIdentityId: '', siteId: '' }); ``` ### PlatformGetSitePreviewsRecord ```typescript // List all platformGetSitePreviews const { data, isLoading } = usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); ``` ### PlatformManagedDomain ```typescript // List all platformManagedDomains const { data, isLoading } = usePlatformManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one platformManagedDomain const { data: item } = usePlatformManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a platformManagedDomain const { mutate: create } = useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } }, }); create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### PlatformPage ```typescript // List all platformPages const { data, isLoading } = usePlatformPagesQuery({ selection: { fields: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Get one platformPage const { data: item } = usePlatformPageQuery({ id: '', selection: { fields: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Create a platformPage const { mutate: create } = useCreatePlatformPageMutation({ selection: { fields: { id: true } }, }); create({ commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` ### PlatformReservedSubdomain ```typescript // List all platformReservedSubdomains const { data, isLoading } = usePlatformReservedSubdomainsQuery({ selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, }); // Get one platformReservedSubdomain const { data: item } = usePlatformReservedSubdomainQuery({ id: '', selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, }); // Create a platformReservedSubdomain const { mutate: create } = useCreatePlatformReservedSubdomainMutation({ selection: { fields: { id: true } }, }); create({ createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }); ``` ### PlatformSiteAppLink ```typescript // List all platformSiteAppLinks const { data, isLoading } = usePlatformSiteAppLinksQuery({ selection: { fields: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Get one platformSiteAppLink const { data: item } = usePlatformSiteAppLinkQuery({ id: '', selection: { fields: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Create a platformSiteAppLink const { mutate: create } = useCreatePlatformSiteAppLinkMutation({ selection: { fields: { id: true } }, }); create({ appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }); ``` ### PlatformSite ```typescript // List all platformSites const { data, isLoading } = usePlatformSitesQuery({ selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); // Get one platformSite const { data: item } = usePlatformSiteQuery({ id: '', selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); // Create a platformSite const { mutate: create } = useCreatePlatformSiteMutation({ selection: { fields: { id: true } }, }); create({ activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }); ``` ### PlatformSiteDeepLink ```typescript // List all platformSiteDeepLinks const { data, isLoading } = usePlatformSiteDeepLinksQuery({ selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Get one platformSiteDeepLink const { data: item } = usePlatformSiteDeepLinkQuery({ id: '', selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Create a platformSiteDeepLink const { mutate: create } = useCreatePlatformSiteDeepLinkMutation({ selection: { fields: { id: true } }, }); create({ appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }); ``` ### PlatformSiteErrorPage ```typescript // List all platformSiteErrorPages const { data, isLoading } = usePlatformSiteErrorPagesQuery({ selection: { fields: { createdAt: true, id: true, objectPath: true, siteId: true, statusCode: true, updatedAt: true } }, }); // Get one platformSiteErrorPage const { data: item } = usePlatformSiteErrorPageQuery({ id: '', selection: { fields: { createdAt: true, id: true, objectPath: true, siteId: true, statusCode: true, updatedAt: true } }, }); // Create a platformSiteErrorPage const { mutate: create } = useCreatePlatformSiteErrorPageMutation({ selection: { fields: { id: true } }, }); create({ objectPath: '', siteId: '', statusCode: '' }); ``` ### PlatformSiteMetadatum ```typescript // List all platformSiteMetadata const { data, isLoading } = usePlatformSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Get one platformSiteMetadatum const { data: item } = usePlatformSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Create a platformSiteMetadatum const { mutate: create } = useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } }, }); create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` ### PlatformSiteModule ```typescript // List all platformSiteModules const { data, isLoading } = usePlatformSiteModulesQuery({ selection: { fields: { createdAt: true, data: true, id: true, isEnabled: true, name: true, position: true, siteId: true, updatedAt: true } }, }); // Get one platformSiteModule const { data: item } = usePlatformSiteModuleQuery({ id: '', selection: { fields: { createdAt: true, data: true, id: true, isEnabled: true, name: true, position: true, siteId: true, updatedAt: true } }, }); // Create a platformSiteModule const { mutate: create } = useCreatePlatformSiteModuleMutation({ selection: { fields: { id: true } }, }); create({ data: '', isEnabled: '', name: '', position: '', siteId: '' }); ``` ### PlatformSiteRelease ```typescript // List all platformSiteReleases const { data, isLoading } = usePlatformSiteReleasesQuery({ selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, }); // Get one platformSiteRelease const { data: item } = usePlatformSiteReleaseQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, }); // Create a platformSiteRelease const { mutate: create } = useCreatePlatformSiteReleaseMutation({ selection: { fields: { id: true } }, }); create({ commitId: '', manifest: '', siteId: '', storeId: '' }); ``` ### PlatformSiteTheme ```typescript // List all platformSiteThemes const { data, isLoading } = usePlatformSiteThemesQuery({ selection: { fields: { commitId: true, createdAt: true, id: true, isActive: true, name: true, siteId: true, storeId: true, theme: true, updatedAt: true } }, }); // Get one platformSiteTheme const { data: item } = usePlatformSiteThemeQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, id: true, isActive: true, name: true, siteId: true, storeId: true, theme: true, updatedAt: true } }, }); // Create a platformSiteTheme const { mutate: create } = useCreatePlatformSiteThemeMutation({ selection: { fields: { id: true } }, }); create({ commitId: '', isActive: '', name: '', siteId: '', storeId: '', theme: '' }); ``` ### PlatformSiteWebConfig ```typescript // List all platformSiteWebConfigs const { data, isLoading } = usePlatformSiteWebConfigsQuery({ selection: { fields: { cleanUrls: true, createdAt: true, id: true, indexDocument: true, metadata: true, siteId: true, spaFallback: true, updatedAt: true } }, }); // Get one platformSiteWebConfig const { data: item } = usePlatformSiteWebConfigQuery({ id: '', selection: { fields: { cleanUrls: true, createdAt: true, id: true, indexDocument: true, metadata: true, siteId: true, spaFallback: true, updatedAt: true } }, }); // Create a platformSiteWebConfig const { mutate: create } = useCreatePlatformSiteWebConfigMutation({ selection: { fields: { id: true } }, }); create({ cleanUrls: '', indexDocument: '', metadata: '', siteId: '', spaFallback: '' }); ``` ### Policy ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, }); // Get one policy const { data: item } = usePolicyQuery({ id: '', selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); create({ category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }); ``` ### PrimaryKeyConstraint ```typescript // List all primaryKeyConstraints const { data, isLoading } = usePrimaryKeyConstraintsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); // Get one primaryKeyConstraint const { data: item } = usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); // Create a primaryKeyConstraint const { mutate: create } = useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }); ``` ### PubkeySetting ```typescript // List all pubkeySettings const { data, isLoading } = usePubkeySettingsQuery({ selection: { fields: { createdAt: true, cryptoNetwork: true, databaseId: true, id: true, schemaId: true, signInRecordFailureFunctionId: true, signInRequestChallengeFunctionId: true, signInWithChallengeFunctionId: true, signUpWithKeyFunctionId: true, updatedAt: true, userField: true } }, }); // Get one pubkeySetting const { data: item } = usePubkeySettingQuery({ id: '', selection: { fields: { createdAt: true, cryptoNetwork: true, databaseId: true, id: true, schemaId: true, signInRecordFailureFunctionId: true, signInRequestChallengeFunctionId: true, signInWithChallengeFunctionId: true, signUpWithKeyFunctionId: true, updatedAt: true, userField: true } }, }); // Create a pubkeySetting const { mutate: create } = useCreatePubkeySettingMutation({ selection: { fields: { id: true } }, }); create({ cryptoNetwork: '', databaseId: '', schemaId: '', signInRecordFailureFunctionId: '', signInRequestChallengeFunctionId: '', signInWithChallengeFunctionId: '', signUpWithKeyFunctionId: '', userField: '' }); ``` ### Redirect ```typescript // List all redirects const { data, isLoading } = useRedirectsQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }, }); // Get one redirect const { data: item } = useRedirectQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }, }); // Create a redirect const { mutate: create } = useCreateRedirectMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }); ``` ### RlsSetting ```typescript // List all rlsSettings const { data, isLoading } = useRlsSettingsQuery({ selection: { fields: { authenticateFunctionId: true, authenticateSchemaId: true, authenticateStrictFunctionId: true, createdAt: true, currentIpAddressFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, databaseId: true, id: true, roleSchemaId: true, updatedAt: true } }, }); // Get one rlsSetting const { data: item } = useRlsSettingQuery({ id: '', selection: { fields: { authenticateFunctionId: true, authenticateSchemaId: true, authenticateStrictFunctionId: true, createdAt: true, currentIpAddressFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, databaseId: true, id: true, roleSchemaId: true, updatedAt: true } }, }); // Create a rlsSetting const { mutate: create } = useCreateRlsSettingMutation({ selection: { fields: { id: true } }, }); create({ authenticateFunctionId: '', authenticateSchemaId: '', authenticateStrictFunctionId: '', currentIpAddressFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', databaseId: '', roleSchemaId: '' }); ``` ### Route ```typescript // List all routes const { data, isLoading } = useRoutesQuery({ selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); // Get one route const { data: item } = useRouteQuery({ id: '', selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); // Create a route const { mutate: create } = useCreateRouteMutation({ selection: { fields: { id: true } }, }); create({ anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` ### Schema ```typescript // List all schemas const { data, isLoading } = useSchemasQuery({ selection: { fields: { apiExposure: true, category: true, createdAt: true, databaseId: true, description: true, id: true, isPublic: true, label: true, name: true, schemaName: true, smartTags: true, tags: true, updatedAt: true } }, }); // Get one schema const { data: item } = useSchemaQuery({ id: '', selection: { fields: { apiExposure: true, category: true, createdAt: true, databaseId: true, description: true, id: true, isPublic: true, label: true, name: true, schemaName: true, smartTags: true, tags: true, updatedAt: true } }, }); // Create a schema const { mutate: create } = useCreateSchemaMutation({ selection: { fields: { id: true } }, }); create({ apiExposure: '', category: '', databaseId: '', description: '', isPublic: '', label: '', name: '', schemaName: '', smartTags: '', tags: '' }); ``` ### SchemaGrant ```typescript // List all schemaGrants const { data, isLoading } = useSchemaGrantsQuery({ selection: { fields: { createdAt: true, databaseId: true, granteeName: true, id: true, schemaId: true, updatedAt: true } }, }); // Get one schemaGrant const { data: item } = useSchemaGrantQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, granteeName: true, id: true, schemaId: true, updatedAt: true } }, }); // Create a schemaGrant const { mutate: create } = useCreateSchemaGrantMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', granteeName: '', schemaId: '' }); ``` ### SiteAppLink ```typescript // List all siteAppLinks const { data, isLoading } = useSiteAppLinksQuery({ selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Get one siteAppLink const { data: item } = useSiteAppLinkQuery({ id: '', selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Create a siteAppLink const { mutate: create } = useCreateSiteAppLinkMutation({ selection: { fields: { id: true } }, }); create({ appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }); ``` ### Site ```typescript // List all sites const { data, isLoading } = useSitesQuery({ selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); // Get one site const { data: item } = useSiteQuery({ id: '', selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); // Create a site const { mutate: create } = useCreateSiteMutation({ selection: { fields: { id: true } }, }); create({ activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }); ``` ### SiteDeepLink ```typescript // List all siteDeepLinks const { data, isLoading } = useSiteDeepLinksQuery({ selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Get one siteDeepLink const { data: item } = useSiteDeepLinkQuery({ id: '', selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Create a siteDeepLink const { mutate: create } = useCreateSiteDeepLinkMutation({ selection: { fields: { id: true } }, }); create({ appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }); ``` ### SiteErrorPage ```typescript // List all siteErrorPages const { data, isLoading } = useSiteErrorPagesQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, objectPath: true, siteId: true, statusCode: true, updatedAt: true } }, }); // Get one siteErrorPage const { data: item } = useSiteErrorPageQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, objectPath: true, siteId: true, statusCode: true, updatedAt: true } }, }); // Create a siteErrorPage const { mutate: create } = useCreateSiteErrorPageMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', objectPath: '', siteId: '', statusCode: '' }); ``` ### SiteMetadatum ```typescript // List all siteMetadata const { data, isLoading } = useSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Get one siteMetadatum const { data: item } = useSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Create a siteMetadatum const { mutate: create } = useCreateSiteMetadatumMutation({ selection: { fields: { id: true } }, }); create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` ### SiteModule ```typescript // List all siteModules const { data, isLoading } = useSiteModulesQuery({ selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, isEnabled: true, name: true, position: true, siteId: true, updatedAt: true } }, }); // Get one siteModule const { data: item } = useSiteModuleQuery({ id: '', selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, isEnabled: true, name: true, position: true, siteId: true, updatedAt: true } }, }); // Create a siteModule const { mutate: create } = useCreateSiteModuleMutation({ selection: { fields: { id: true } }, }); create({ data: '', databaseId: '', isEnabled: '', name: '', position: '', siteId: '' }); ``` ### SiteRelease ```typescript // List all siteReleases const { data, isLoading } = useSiteReleasesQuery({ selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, }); // Get one siteRelease const { data: item } = useSiteReleaseQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, }); // Create a siteRelease const { mutate: create } = useCreateSiteReleaseMutation({ selection: { fields: { id: true } }, }); create({ commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }); ``` ### SiteTheme ```typescript // List all siteThemes const { data, isLoading } = useSiteThemesQuery({ selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, isActive: true, name: true, siteId: true, storeId: true, theme: true, updatedAt: true } }, }); // Get one siteTheme const { data: item } = useSiteThemeQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, isActive: true, name: true, siteId: true, storeId: true, theme: true, updatedAt: true } }, }); // Create a siteTheme const { mutate: create } = useCreateSiteThemeMutation({ selection: { fields: { id: true } }, }); create({ commitId: '', databaseId: '', isActive: '', name: '', siteId: '', storeId: '', theme: '' }); ``` ### SiteWebConfig ```typescript // List all siteWebConfigs const { data, isLoading } = useSiteWebConfigsQuery({ selection: { fields: { cleanUrls: true, createdAt: true, databaseId: true, id: true, indexDocument: true, metadata: true, siteId: true, spaFallback: true, updatedAt: true } }, }); // Get one siteWebConfig const { data: item } = useSiteWebConfigQuery({ id: '', selection: { fields: { cleanUrls: true, createdAt: true, databaseId: true, id: true, indexDocument: true, metadata: true, siteId: true, spaFallback: true, updatedAt: true } }, }); // Create a siteWebConfig const { mutate: create } = useCreateSiteWebConfigMutation({ selection: { fields: { id: true } }, }); create({ cleanUrls: '', databaseId: '', indexDocument: '', metadata: '', siteId: '', spaFallback: '' }); ``` ### SpatialRelation ```typescript // List all spatialRelations const { data, isLoading } = useSpatialRelationsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, fieldId: true, id: true, name: true, operator: true, paramName: true, refFieldId: true, refTableId: true, tableId: true, tags: true, updatedAt: true } }, }); // Get one spatialRelation const { data: item } = useSpatialRelationQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, fieldId: true, id: true, name: true, operator: true, paramName: true, refFieldId: true, refTableId: true, tableId: true, tags: true, updatedAt: true } }, }); // Create a spatialRelation const { mutate: create } = useCreateSpatialRelationMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', fieldId: '', name: '', operator: '', paramName: '', refFieldId: '', refTableId: '', tableId: '', tags: '' }); ``` ### SqlAction ```typescript // List all sqlActions const { data, isLoading } = useSqlActionsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, }); // Get one sqlAction const { data: item } = useSqlActionQuery({ id: '', selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, }); ``` ### TableBehavior ```typescript // List all tableBehaviors const { data, isLoading } = useTableBehaviorsQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, modifier: true, scope: true, sortOrder: true, tableId: true, updatedAt: true } }, }); // Get one tableBehavior const { data: item } = useTableBehaviorQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, modifier: true, scope: true, sortOrder: true, tableId: true, updatedAt: true } }, }); // Create a tableBehavior const { mutate: create } = useCreateTableBehaviorMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', modifier: '', scope: '', sortOrder: '', tableId: '' }); ``` ### Table ```typescript // List all tables const { data, isLoading } = useTablesQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, id: true, inheritsId: true, label: true, name: true, partitionKeyNames: true, partitionKeyTypes: true, partitionStrategy: true, partitioned: true, peoplestamps: true, pluralName: true, principalstamps: true, schemaId: true, singularName: true, smartTags: true, stepUp: true, tags: true, timestamps: true, updatedAt: true, useRls: true } }, }); // Get one table const { data: item } = useTableQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, id: true, inheritsId: true, label: true, name: true, partitionKeyNames: true, partitionKeyTypes: true, partitionStrategy: true, partitioned: true, peoplestamps: true, pluralName: true, principalstamps: true, schemaId: true, singularName: true, smartTags: true, stepUp: true, tags: true, timestamps: true, updatedAt: true, useRls: true } }, }); // Create a table const { mutate: create } = useCreateTableMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', description: '', inheritsId: '', label: '', name: '', partitionKeyNames: '', partitionKeyTypes: '', partitionStrategy: '', partitioned: '', peoplestamps: '', pluralName: '', principalstamps: '', schemaId: '', singularName: '', smartTags: '', stepUp: '', tags: '', timestamps: '', useRls: '' }); ``` ### TableGrant ```typescript // List all tableGrants const { data, isLoading } = useTableGrantsQuery({ selection: { fields: { createdAt: true, databaseId: true, fieldIds: true, granteeName: true, id: true, isGrant: true, privilege: true, tableId: true, updatedAt: true } }, }); // Get one tableGrant const { data: item } = useTableGrantQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, fieldIds: true, granteeName: true, id: true, isGrant: true, privilege: true, tableId: true, updatedAt: true } }, }); // Create a tableGrant const { mutate: create } = useCreateTableGrantMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', fieldIds: '', granteeName: '', isGrant: '', privilege: '', tableId: '' }); ``` ### Trigger ```typescript // List all triggers const { data, isLoading } = useTriggersQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }, }); // Get one trigger const { data: item } = useTriggerQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }, }); // Create a trigger const { mutate: create } = useCreateTriggerMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }); ``` ### TriggerFunction ```typescript // List all triggerFunctions const { data, isLoading } = useTriggerFunctionsQuery({ selection: { fields: { code: true, createdAt: true, databaseId: true, id: true, name: true, updatedAt: true } }, }); // Get one triggerFunction const { data: item } = useTriggerFunctionQuery({ id: '', selection: { fields: { code: true, createdAt: true, databaseId: true, id: true, name: true, updatedAt: true } }, }); // Create a triggerFunction const { mutate: create } = useCreateTriggerFunctionMutation({ selection: { fields: { id: true } }, }); create({ code: '', databaseId: '', name: '' }); ``` ### UniqueConstraintBehavior ```typescript // List all uniqueConstraintBehaviors const { data, isLoading } = useUniqueConstraintBehaviorsQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, modifier: true, scope: true, sortOrder: true, uniqueConstraintId: true, updatedAt: true } }, }); // Get one uniqueConstraintBehavior const { data: item } = useUniqueConstraintBehaviorQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, modifier: true, scope: true, sortOrder: true, uniqueConstraintId: true, updatedAt: true } }, }); // Create a uniqueConstraintBehavior const { mutate: create } = useCreateUniqueConstraintBehaviorMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', modifier: '', scope: '', sortOrder: '', uniqueConstraintId: '' }); ``` ### UniqueConstraint ```typescript // List all uniqueConstraints const { data, isLoading } = useUniqueConstraintsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); // Get one uniqueConstraint const { data: item } = useUniqueConstraintQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); // Create a uniqueConstraint const { mutate: create } = useCreateUniqueConstraintMutation({ selection: { fields: { id: true } }, }); create({ category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }); ``` ### ViewBehavior ```typescript // List all viewBehaviors const { data, isLoading } = useViewBehaviorsQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, modifier: true, scope: true, sortOrder: true, updatedAt: true, viewId: true } }, }); // Get one viewBehavior const { data: item } = useViewBehaviorQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, modifier: true, scope: true, sortOrder: true, updatedAt: true, viewId: true } }, }); // Create a viewBehavior const { mutate: create } = useCreateViewBehaviorMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', modifier: '', scope: '', sortOrder: '', viewId: '' }); ``` ### View ```typescript // List all views const { data, isLoading } = useViewsQuery({ selection: { fields: { category: true, checkOption: true, data: true, databaseId: true, filterData: true, filterType: true, id: true, isReadOnly: true, name: true, schemaId: true, securityBarrier: true, securityInvoker: true, smartTags: true, tableId: true, tags: true, viewType: true } }, }); // Get one view const { data: item } = useViewQuery({ id: '', selection: { fields: { category: true, checkOption: true, data: true, databaseId: true, filterData: true, filterType: true, id: true, isReadOnly: true, name: true, schemaId: true, securityBarrier: true, securityInvoker: true, smartTags: true, tableId: true, tags: true, viewType: true } }, }); // Create a view const { mutate: create } = useCreateViewMutation({ selection: { fields: { id: true } }, }); create({ category: '', checkOption: '', data: '', databaseId: '', filterData: '', filterType: '', isReadOnly: '', name: '', schemaId: '', securityBarrier: '', securityInvoker: '', smartTags: '', tableId: '', tags: '', viewType: '' }); ``` ### ViewGrant ```typescript // List all viewGrants const { data, isLoading } = useViewGrantsQuery({ selection: { fields: { databaseId: true, granteeName: true, id: true, isGrant: true, privilege: true, viewId: true, withGrantOption: true } }, }); // Get one viewGrant const { data: item } = useViewGrantQuery({ id: '', selection: { fields: { databaseId: true, granteeName: true, id: true, isGrant: true, privilege: true, viewId: true, withGrantOption: true } }, }); // Create a viewGrant const { mutate: create } = useCreateViewGrantMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', granteeName: '', isGrant: '', privilege: '', viewId: '', withGrantOption: '' }); ``` ### ViewRule ```typescript // List all viewRules const { data, isLoading } = useViewRulesQuery({ selection: { fields: { action: true, databaseId: true, event: true, id: true, name: true, viewId: true } }, }); // Get one viewRule const { data: item } = useViewRuleQuery({ id: '', selection: { fields: { action: true, databaseId: true, event: true, id: true, name: true, viewId: true } }, }); // Create a viewRule const { mutate: create } = useCreateViewRuleMutation({ selection: { fields: { id: true } }, }); create({ action: '', databaseId: '', event: '', name: '', viewId: '' }); ``` ### ViewTable ```typescript // List all viewTables const { data, isLoading } = useViewTablesQuery({ selection: { fields: { databaseId: true, id: true, joinOrder: true, tableId: true, viewId: true } }, }); // Get one viewTable const { data: item } = useViewTableQuery({ id: '', selection: { fields: { databaseId: true, id: true, joinOrder: true, tableId: true, viewId: true } }, }); // Create a viewTable const { mutate: create } = useCreateViewTableMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', joinOrder: '', tableId: '', viewId: '' }); ``` ### WebauthnSetting ```typescript // List all webauthnSettings const { data, isLoading } = useWebauthnSettingsQuery({ selection: { fields: { attestationType: true, challengeExpirySeconds: true, createdAt: true, credentialsSchemaId: true, credentialsTableId: true, databaseId: true, id: true, originAllowlist: true, requireUserVerification: true, residentKey: true, rpId: true, rpName: true, schemaId: true, sessionCredentialsTableId: true, sessionSecretsSchemaId: true, sessionSecretsTableId: true, sessionsSchemaId: true, sessionsTableId: true, updatedAt: true, userFieldId: true } }, }); // Get one webauthnSetting const { data: item } = useWebauthnSettingQuery({ id: '', selection: { fields: { attestationType: true, challengeExpirySeconds: true, createdAt: true, credentialsSchemaId: true, credentialsTableId: true, databaseId: true, id: true, originAllowlist: true, requireUserVerification: true, residentKey: true, rpId: true, rpName: true, schemaId: true, sessionCredentialsTableId: true, sessionSecretsSchemaId: true, sessionSecretsTableId: true, sessionsSchemaId: true, sessionsTableId: true, updatedAt: true, userFieldId: true } }, }); // Create a webauthnSetting const { mutate: create } = useCreateWebauthnSettingMutation({ selection: { fields: { id: true } }, }); create({ attestationType: '', challengeExpirySeconds: '', credentialsSchemaId: '', credentialsTableId: '', databaseId: '', originAllowlist: '', requireUserVerification: '', residentKey: '', rpId: '', rpName: '', schemaId: '', sessionCredentialsTableId: '', sessionSecretsSchemaId: '', sessionSecretsTableId: '', sessionsSchemaId: '', sessionsTableId: '', userFieldId: '' }); ``` ## Custom Operation Hooks ### `useApplyRegistryDefaultsQuery` applyRegistryDefaults - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `data` | JSON | | `nodeType` | String | ### `useEmailSharedAccountQuery` emailSharedAccount - **Type:** query - **Arguments:** none ### `useGetSitePreviewCommitQuery` getSitePreviewCommit - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `targetName` | String | | `targetSiteId` | UUID | ### `useGetSiteReleaseManifestQuery` getSiteReleaseManifest - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `targetCommitId` | UUID | | `targetSiteId` | UUID | ### `usePagePublishedQuery` pagePublished - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `pageSlug` | String | | `targetSiteId` | UUID | ### `usePlatformGetSitePreviewCommitQuery` platformGetSitePreviewCommit - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `targetName` | String | | `targetSiteId` | UUID | ### `usePlatformGetSiteReleaseManifestQuery` platformGetSiteReleaseManifest - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `targetCommitId` | UUID | | `targetSiteId` | UUID | ### `usePlatformPagePublishedQuery` platformPagePublished - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `pageSlug` | String | | `targetSiteId` | UUID | ### `usePlatformSitesDeepLinkUrlQuery` platformSitesDeepLinkUrl - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `linkSlug` | String | | `targetSiteId` | UUID | ### `usePlatformSitesSiteOriginQuery` platformSitesSiteOrigin - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `targetSiteId` | UUID | ### `usePlatformVerifySitePreviewTokenQuery` platformVerifySitePreviewToken - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `siteId` | UUID | | `token` | String | ### `useSitesDeepLinkUrlQuery` sitesDeepLinkUrl - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `linkSlug` | String | | `targetSiteId` | UUID | ### `useSitesSiteOriginQuery` sitesSiteOrigin - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `targetSiteId` | UUID | ### `useVerifySitePreviewTokenQuery` verifySitePreviewToken - **Type:** query - **Arguments:** | Argument | Type | |----------|------| | `siteId` | UUID | | `token` | String | ### `useAcceptDatabaseTransferMutation` acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | AcceptDatabaseTransferInput (required) | ### `useApplyRlsMutation` applyRls - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | ApplyRlsInput (required) | ### `useCancelDatabaseTransferMutation` cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | CancelDatabaseTransferInput (required) | ### `useCreateFunctionFromSourceMutation` Creates a `Function` from its `CREATE FUNCTION` source text. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | CreateFunctionFromSourceInput (required) | ### `useDeleteSitePreviewMutation` deleteSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | DeleteSitePreviewInput (required) | ### `useDomainsAssignSubdomainMutation` domainsAssignSubdomain - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | DomainsAssignSubdomainInput (required) | ### `useMintSitePreviewTokenMutation` mintSitePreviewToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | MintSitePreviewTokenInput (required) | ### `usePagesInstallPagesMutation` pagesInstallPages - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PagesInstallPagesInput (required) | ### `usePlatformDeleteSitePreviewMutation` platformDeleteSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformDeleteSitePreviewInput (required) | ### `usePlatformDomainsAssignSubdomainMutation` platformDomainsAssignSubdomain - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformDomainsAssignSubdomainInput (required) | ### `usePlatformMintSitePreviewTokenMutation` platformMintSitePreviewToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformMintSitePreviewTokenInput (required) | ### `usePlatformPagesInstallPagesMutation` platformPagesInstallPages - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformPagesInstallPagesInput (required) | ### `usePlatformProvisionSitePreviewMutation` platformProvisionSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformProvisionSitePreviewInput (required) | ### `usePlatformSetSitePreviewMutation` platformSetSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformSetSitePreviewInput (required) | ### `usePlatformSiteMetadataInstallRobotsMutation` platformSiteMetadataInstallRobots - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformSiteMetadataInstallRobotsInput (required) | ### `usePlatformSitesInstallContentPresetMutation` platformSitesInstallContentPreset - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformSitesInstallContentPresetInput (required) | ### `usePlatformSitesInstallMantraMutation` platformSitesInstallMantra - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformSitesInstallMantraInput (required) | ### `usePlatformSitesProvisionStaticSiteMutation` platformSitesProvisionStaticSite - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | PlatformSitesProvisionStaticSiteInput (required) | ### `useProvisionBucketMutation` Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job trigger then enqueues the same storage:provision_bucket job used on INSERT, and repeated requests collapse into one pending job. This is idempotent for an already-reconciled bucket; failures become GraphQL errors. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | ProvisionBucketInput (required) | ### `useProvisionSitePreviewMutation` provisionSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | ProvisionSitePreviewInput (required) | ### `useRejectDatabaseTransferMutation` rejectDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | RejectDatabaseTransferInput (required) | ### `useRequestDatabaseMutation` Requests a database and returns a ticket (database_provision_module row) to poll. Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | RequestDatabaseInput (required) | ### `useSetFieldOrderMutation` setFieldOrder - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SetFieldOrderInput (required) | ### `useSetSitePreviewMutation` setSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SetSitePreviewInput (required) | ### `useSiteMetadataInstallRobotsMutation` siteMetadataInstallRobots - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SiteMetadataInstallRobotsInput (required) | ### `useSitesInstallContentPresetMutation` sitesInstallContentPreset - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SitesInstallContentPresetInput (required) | ### `useSitesInstallMantraMutation` sitesInstallMantra - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SitesInstallMantraInput (required) | ### `useSitesProvisionStaticSiteMutation` sitesProvisionStaticSite - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SitesProvisionStaticSiteInput (required) | ### `useSuspendDatabaseMutation` suspendDatabase - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | SuspendDatabaseInput (required) | ### `useUnsuspendDatabaseMutation` unsuspendDatabase - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | UnsuspendDatabaseInput (required) | ### `useUpdateFunctionFromSourceMutation` Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| | `input` | UpdateFunctionFromSourceInput (required) |